Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(848)

Unified Diff: gpu/command_buffer/service/in_process_command_buffer.cc

Issue 1495893005: Revert of Added an extra sync token field for extra command buffer identification. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 12b0d15b98a6f2f2433d08497eaed0cea973997c..4931e30cfab679f34012213040cc783afc133885 100644
--- a/gpu/command_buffer/service/in_process_command_buffer.cc
+++ b/gpu/command_buffer/service/in_process_command_buffer.cc
@@ -706,8 +706,7 @@
if (fence_sync) {
flushed_fence_sync_release_ = fence_sync;
- SyncToken sync_token(GetNamespaceID(), GetExtraCommandBufferData(),
- GetCommandBufferID(), fence_sync);
+ SyncToken sync_token(GetNamespaceID(), GetCommandBufferID(), fence_sync);
sync_token.SetVerifyFlush();
gpu_memory_buffer_manager_->SetDestructionSyncToken(gpu_memory_buffer,
sync_token);
@@ -853,8 +852,7 @@
// 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, 0,
- sync_point);
+ SyncToken sync_token(gpu::CommandBufferNamespace::GPU_IO, 0, sync_point);
mailbox_manager->PushTextureUpdates(sync_token);
}
}
@@ -875,7 +873,7 @@
// 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, 0, sync_point);
+ SyncToken sync_token(gpu::CommandBufferNamespace::GPU_IO, 0, sync_point);
mailbox_manager->PullTextureUpdates(sync_token);
return true;
}
@@ -891,8 +889,7 @@
make_current_success = MakeCurrent();
}
if (make_current_success) {
- SyncToken sync_token(GetNamespaceID(), GetExtraCommandBufferData(),
- GetCommandBufferID(), release);
+ SyncToken sync_token(GetNamespaceID(), GetCommandBufferID(), release);
mailbox_manager->PushTextureUpdates(sync_token);
}
}
@@ -925,7 +922,7 @@
gles2::MailboxManager* mailbox_manager =
decoder_->GetContextGroup()->mailbox_manager();
- SyncToken sync_token(namespace_id, 0, command_buffer_id, release);
+ SyncToken sync_token(namespace_id, command_buffer_id, release);
mailbox_manager->PullTextureUpdates(sync_token);
return true;
}
@@ -985,10 +982,6 @@
uint64_t InProcessCommandBuffer::GetCommandBufferID() const {
return command_buffer_id_;
-}
-
-int32_t InProcessCommandBuffer::GetExtraCommandBufferData() const {
- return 0;
}
uint64_t InProcessCommandBuffer::GenerateFenceSyncRelease() {
« no previous file with comments | « gpu/command_buffer/service/in_process_command_buffer.h ('k') | gpu/command_buffer/service/mailbox_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698