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

Unified Diff: content/common/gpu/client/command_buffer_proxy_impl.cc

Issue 1559893003: Added method to synchronize command buffers within GpuControl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation errors Created 4 years, 12 months 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: content/common/gpu/client/command_buffer_proxy_impl.cc
diff --git a/content/common/gpu/client/command_buffer_proxy_impl.cc b/content/common/gpu/client/command_buffer_proxy_impl.cc
index 1a604959312899cb42c0fc5e52b12531125444f1..7e760bc00ce1096e286a010ffd0aa78652200041 100644
--- a/content/common/gpu/client/command_buffer_proxy_impl.cc
+++ b/content/common/gpu/client/command_buffer_proxy_impl.cc
@@ -455,7 +455,7 @@ int32_t CommandBufferProxyImpl::CreateImage(ClientBuffer buffer,
GetCommandBufferID(), image_fence_sync);
// Force a synchronous IPC to validate sync token.
- channel_->ValidateFlushIDReachedServer(stream_id_, true);
+ SynchronizeCommandBuffer();
sync_token.SetVerifyFlush();
gpu_memory_buffer_manager->SetDestructionSyncToken(gpu_memory_buffer,
@@ -514,6 +514,10 @@ bool CommandBufferProxyImpl::IsGpuChannelLost() {
return !channel_ || channel_->IsLost();
}
+void CommandBufferProxyImpl::SynchronizeCommandBuffer() {
+ channel_->ValidateFlushIDReachedServer(stream_id_, true);
+}
+
gpu::CommandBufferNamespace CommandBufferProxyImpl::GetNamespaceID() const {
return gpu::CommandBufferNamespace::GPU_IO;
}

Powered by Google App Engine
This is Rietveld 408576698