Commit 549080a1 authored by dyen's avatar dyen Committed by Commit bot

Make sure Ppapi compositor layer resources are synchronized.

BUG=514815, 581951

Review URL: https://codereview.chromium.org/1641323002

Cr-Commit-Position: refs/heads/master@{#372232}
parent d881bd25
...@@ -178,9 +178,8 @@ int32_t CompositorLayerResource::SetTexture( ...@@ -178,9 +178,8 @@ int32_t CompositorLayerResource::SetTexture(
data_.texture->source_rect.size = source_size_; data_.texture->source_rect.size = source_size_;
const GLuint64 fence_sync = gl->InsertFenceSyncCHROMIUM(); const GLuint64 fence_sync = gl->InsertFenceSyncCHROMIUM();
gl->OrderingBarrierCHROMIUM(); gl->ShallowFlushCHROMIUM();
gl->GenUnverifiedSyncTokenCHROMIUM(fence_sync, gl->GenSyncTokenCHROMIUM(fence_sync, data_.texture->sync_token.GetData());
data_.texture->sync_token.GetData());
// If the PP_Resource of this layer is released by the plugin, the // If the PP_Resource of this layer is released by the plugin, the
// release_callback will be aborted immediately, but the texture or image // release_callback will be aborted immediately, but the texture or image
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment