Chromium Code Reviews| Index: content/renderer/pepper/ppb_graphics_3d_impl.cc |
| diff --git a/content/renderer/pepper/ppb_graphics_3d_impl.cc b/content/renderer/pepper/ppb_graphics_3d_impl.cc |
| index f143968c34d229f765915e5110f7ab80b6c3b188..8292f189dfe18ca3846c2a0bdbd475dcecb1c623 100644 |
| --- a/content/renderer/pepper/ppb_graphics_3d_impl.cc |
| +++ b/content/renderer/pepper/ppb_graphics_3d_impl.cc |
| @@ -185,6 +185,10 @@ int32 PPB_Graphics3D_Impl::DoSwapBuffers() { |
| if (gles2_impl()) |
| gles2_impl()->SwapBuffers(); |
| + // Since the backing texture has been updated, a new sync point should be |
| + // inserted. |
| + platform_context_->InsertSyncPointForBackingMailbox(); |
| + |
| if (bound_to_instance_) { |
| // If we are bound to the instance, we need to ask the compositor |
| // to commit our backing texture so that the graphics appears on the page. |
| @@ -193,7 +197,8 @@ int32 PPB_Graphics3D_Impl::DoSwapBuffers() { |
| // |
| // Don't need to check for NULL from GetPluginInstance since when we're |
| // bound, we know our instance is valid. |
| - HostGlobals::Get()->GetInstance(pp_instance())->CommitBackingTexture(); |
| + HostGlobals::Get()->GetInstance(pp_instance())->CommitBackingTexture( |
| + InsertSyncPoint()); |
|
danakj
2014/03/03 23:31:42
Oops, this gotta go.
danakj
2014/03/03 23:33:16
Fixed.
|
| commit_pending_ = true; |
| } else { |
| // Wait for the command to complete on the GPU to allow for throttling. |