Index: gpu/command_buffer/service/in_process_command_buffer.cc |
diff --git a/gpu/command_buffer/service/in_process_command_buffer.cc b/gpu/command_buffer/service/in_process_command_buffer.cc |
index 4931e30cfab679f34012213040cc783afc133885..12b0d15b98a6f2f2433d08497eaed0cea973997c 100644 |
--- a/gpu/command_buffer/service/in_process_command_buffer.cc |
+++ b/gpu/command_buffer/service/in_process_command_buffer.cc |
@@ -706,7 +706,8 @@ int32 InProcessCommandBuffer::CreateImage(ClientBuffer buffer, |
if (fence_sync) { |
flushed_fence_sync_release_ = fence_sync; |
- SyncToken sync_token(GetNamespaceID(), GetCommandBufferID(), fence_sync); |
+ SyncToken sync_token(GetNamespaceID(), GetExtraCommandBufferData(), |
+ GetCommandBufferID(), fence_sync); |
sync_token.SetVerifyFlush(); |
gpu_memory_buffer_manager_->SetDestructionSyncToken(gpu_memory_buffer, |
sync_token); |
@@ -852,7 +853,8 @@ void InProcessCommandBuffer::RetireSyncPointOnGpuThread(uint32 sync_point) { |
// We can simply use the GPUIO namespace with 0 for the command buffer ID |
// (under normal circumstances 0 is invalid so will not be used) until |
// the old sync points are replaced. |
- SyncToken sync_token(gpu::CommandBufferNamespace::GPU_IO, 0, sync_point); |
+ SyncToken sync_token(gpu::CommandBufferNamespace::GPU_IO, 0, 0, |
+ sync_point); |
mailbox_manager->PushTextureUpdates(sync_token); |
} |
} |
@@ -873,7 +875,7 @@ bool InProcessCommandBuffer::WaitSyncPointOnGpuThread(unsigned sync_point) { |
// We can simply use the GPUIO namespace with 0 for the command buffer ID |
// (under normal circumstances 0 is invalid so will not be used) until |
// the old sync points are replaced. |
- SyncToken sync_token(gpu::CommandBufferNamespace::GPU_IO, 0, sync_point); |
+ SyncToken sync_token(gpu::CommandBufferNamespace::GPU_IO, 0, 0, sync_point); |
mailbox_manager->PullTextureUpdates(sync_token); |
return true; |
} |
@@ -889,7 +891,8 @@ void InProcessCommandBuffer::FenceSyncReleaseOnGpuThread(uint64_t release) { |
make_current_success = MakeCurrent(); |
} |
if (make_current_success) { |
- SyncToken sync_token(GetNamespaceID(), GetCommandBufferID(), release); |
+ SyncToken sync_token(GetNamespaceID(), GetExtraCommandBufferData(), |
+ GetCommandBufferID(), release); |
mailbox_manager->PushTextureUpdates(sync_token); |
} |
} |
@@ -922,7 +925,7 @@ bool InProcessCommandBuffer::WaitFenceSyncOnGpuThread( |
gles2::MailboxManager* mailbox_manager = |
decoder_->GetContextGroup()->mailbox_manager(); |
- SyncToken sync_token(namespace_id, command_buffer_id, release); |
+ SyncToken sync_token(namespace_id, 0, command_buffer_id, release); |
mailbox_manager->PullTextureUpdates(sync_token); |
return true; |
} |
@@ -984,6 +987,10 @@ uint64_t InProcessCommandBuffer::GetCommandBufferID() const { |
return command_buffer_id_; |
} |
+int32_t InProcessCommandBuffer::GetExtraCommandBufferData() const { |
+ return 0; |
+} |
+ |
uint64_t InProcessCommandBuffer::GenerateFenceSyncRelease() { |
return next_fence_sync_release_++; |
} |