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

Unified Diff: gpu/command_buffer/client/gpu_control.h

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: gpu/command_buffer/client/gpu_control.h
diff --git a/gpu/command_buffer/client/gpu_control.h b/gpu/command_buffer/client/gpu_control.h
index d637a1ddcb8c28254d3c64499636c2eaa8698168..c8d20be02aa643f5d3739811114cea90b94d3504 100644
--- a/gpu/command_buffer/client/gpu_control.h
+++ b/gpu/command_buffer/client/gpu_control.h
@@ -86,6 +86,13 @@ class GPU_EXPORT GpuControl {
// should be considered as lost.
virtual bool IsGpuChannelLost() = 0;
+ // When this function returns it ensures all previously flushed work is
+ // visible by the service. This command does this by sending a synchronous
+ // IPC. Note just because the work is visible to the server does not mean
+ // that it has been processed. This is only relevant for out of process
+ // services and will be treated as a NOP for in process command buffers.
+ virtual void EnsureWorkVisible() = 0;
+
// The namespace and command buffer ID forms a unique pair for all existing
// GpuControl (on client) and matches for the corresponding command buffer
// (on server) in a single server process. The extra command buffer data can
« no previous file with comments | « gpu/command_buffer/client/client_test_helper.h ('k') | gpu/command_buffer/service/in_process_command_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698