diff options
author | boliu <boliu@chromium.org> | 2016-02-02 17:36:57 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-03 01:38:27 +0000 |
commit | dbac4f1359cde9641dcc72a54be88c624fc32e61 (patch) | |
tree | 5aef8a79d50fc9ece5ce8577b7092e4a01ef231e /gpu | |
parent | 758c356a7f3021aa0657e04c8cd60e8067c47038 (diff) | |
download | chromium_src-dbac4f1359cde9641dcc72a54be88c624fc32e61.zip chromium_src-dbac4f1359cde9641dcc72a54be88c624fc32e61.tar.gz chromium_src-dbac4f1359cde9641dcc72a54be88c624fc32e61.tar.bz2 |
Implement in-proc VerifySyncTokens and use for android video
In Android WebView, video still uses InProcessCommandBuffer.
So the video sync tokens cannot be verified by the compositor
using CommandBufferProxyImpl. This breaks verification of
all sync tokens, and causes corruption when video is present.
Fix by implementing verifying the token immediately with
the InProcessCommandBuffer. And this should be ok as the
parent compositor also uses InProcessCommandBuffer on the
same thread as video InProcessCommandBuffer.
Review URL: https://codereview.chromium.org/1663503002
Cr-Commit-Position: refs/heads/master@{#373122}
Diffstat (limited to 'gpu')
-rw-r--r-- | gpu/command_buffer/service/in_process_command_buffer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc index df7923c..516e5c1 100644 --- a/gpu/command_buffer/service/in_process_command_buffer.cc +++ b/gpu/command_buffer/service/in_process_command_buffer.cc @@ -958,7 +958,7 @@ void InProcessCommandBuffer::SignalSyncToken(const SyncToken& sync_token, bool InProcessCommandBuffer::CanWaitUnverifiedSyncToken( const SyncToken* sync_token) { - return false; + return sync_token->namespace_id() == GetNamespaceID(); } uint32_t InProcessCommandBuffer::CreateStreamTextureOnGpuThread( |