diff options
-rw-r--r-- | webkit/glue/plugins/webplugin_delegate_impl_mac.mm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/webkit/glue/plugins/webplugin_delegate_impl_mac.mm b/webkit/glue/plugins/webplugin_delegate_impl_mac.mm index cca8695..33747d9 100644 --- a/webkit/glue/plugins/webplugin_delegate_impl_mac.mm +++ b/webkit/glue/plugins/webplugin_delegate_impl_mac.mm @@ -981,14 +981,15 @@ void WebPluginDelegateImpl::DrawLayerInSurface() { if (!windowed_handle()) return; - surface_->StartDrawing(); - [renderer_ beginFrameAtTime:CACurrentMediaTime() timeStamp:NULL]; if (CGRectIsEmpty([renderer_ updateBounds])) { // If nothing has changed, we are done. [renderer_ endFrame]; return; } + + surface_->StartDrawing(); + CGRect layerRect = [layer_ bounds]; [renderer_ addUpdateRect:layerRect]; [renderer_ render]; |