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

Unified Diff: gpu/command_buffer/common/command_buffer.h

Issue 896723008: Add OrderingBarrierCHROMIUM API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update unit test classes. Created 5 years, 10 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/common/command_buffer.h
diff --git a/gpu/command_buffer/common/command_buffer.h b/gpu/command_buffer/common/command_buffer.h
index d846ec11a634c1f7bade9440d0a830c1327ce21f..931ea5b7da3d028b509462d51be2104562dfeb6c 100644
--- a/gpu/command_buffer/common/command_buffer.h
+++ b/gpu/command_buffer/common/command_buffer.h
@@ -90,6 +90,11 @@ class GPU_EXPORT CommandBuffer {
// subsequent Flushes on the same GpuChannel.
virtual void Flush(int32 put_offset) = 0;
+ // As Flush, ensuress that on the service side, commands up to put_offset
piman 2015/02/05 01:14:15 typo: ensuress
piman 2015/02/06 03:37:48 Still here in PS#7...
vmiura 2015/02/06 05:15:22 Done.
+ // are processed but before subsequent Flushes on the GpuChannel, however
+ // the reader may not see the latest commands until Flushes on the channel.
+ virtual void ShallowFlush(int32 put_offset) = 0;
+
// The writer calls this to wait until the current token is within a
// specific range, inclusive. Can return early if an error is generated.
virtual void WaitForTokenInRange(int32 start, int32 end) = 0;

Powered by Google App Engine
This is Rietveld 408576698