diff options
author | dyen <dyen@chromium.org> | 2015-11-04 19:49:25 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-11-05 03:50:11 +0000 |
commit | c7aff68a0c11820cc2b8d488851c682c0d32cd2b (patch) | |
tree | 78819208e3f1532e4dcf42c43bfcef9ba7c3d9b2 /gpu/command_buffer/client/gles2_implementation.cc | |
parent | 67d14d4249ec9be027df91655d301872e75d493a (diff) | |
download | chromium_src-c7aff68a0c11820cc2b8d488851c682c0d32cd2b.zip chromium_src-c7aff68a0c11820cc2b8d488851c682c0d32cd2b.tar.gz chromium_src-c7aff68a0c11820cc2b8d488851c682c0d32cd2b.tar.bz2 |
Converted video frame and image callbacks to use new sync tokens.
As an incremental step towards utilizing the new sync tokens, this
CL converts existing video frame and image sync points to use
sync tokens instead.
In order to accomplish this, the GpuCommandBufferMsg_CreateImage
IPC message has been modified to accept a fence_release parameter
so that it can act as a sync token IPC.
A new SyncPointClientWaiter concept has also added which can wait
on other sync point clients without an associated order number.
This only works because the SyncPointClientWaiter cannot be waited
on so no deadlocks can occur.
BUG=514815
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Review URL: https://codereview.chromium.org/1429213002
Cr-Commit-Position: refs/heads/master@{#357997}
Diffstat (limited to 'gpu/command_buffer/client/gles2_implementation.cc')
-rw-r--r-- | gpu/command_buffer/client/gles2_implementation.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc index 4fcb0b3..d1258e87 100644 --- a/gpu/command_buffer/client/gles2_implementation.cc +++ b/gpu/command_buffer/client/gles2_implementation.cc @@ -5522,6 +5522,7 @@ GLuint GLES2Implementation::CreateImageCHROMIUMHelper(ClientBuffer buffer, return 0; } + ShallowFlushCHROMIUM(); int32_t image_id = gpu_control_->CreateImage(buffer, width, height, internalformat); if (image_id < 0) { |