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

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: SynchronizeCommandBuffer() -> EnsureWorkVisible() 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..a8b4ba0fe0b34abb87d65a56fecf28e532600773 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);
+ EnsureWorkVisible();
sync_token.SetVerifyFlush();
gpu_memory_buffer_manager->SetDestructionSyncToken(gpu_memory_buffer,
@@ -514,6 +514,10 @@ bool CommandBufferProxyImpl::IsGpuChannelLost() {
return !channel_ || channel_->IsLost();
}
+void CommandBufferProxyImpl::EnsureWorkVisible() {
+ channel_->ValidateFlushIDReachedServer(stream_id_, true);
+}
+
gpu::CommandBufferNamespace CommandBufferProxyImpl::GetNamespaceID() const {
return gpu::CommandBufferNamespace::GPU_IO;
}
« no previous file with comments | « content/common/gpu/client/command_buffer_proxy_impl.h ('k') | gpu/command_buffer/client/client_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698