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

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

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Some fixes Created 5 years, 3 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/gles2_cmd_helper_autogen.h
diff --git a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
index d31d0d85d8b0dbffe9bdc7a66b64a8190615edc1..bbaf1a82c59449bf2fccf01364c3bc1ebe14456a 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2757,6 +2757,34 @@ void WaitSyncPointCHROMIUM(GLuint sync_point) {
}
}
+void InsertFenceSyncCHROMIUM(GLuint release_count) {
+ gles2::cmds::InsertFenceSyncCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::InsertFenceSyncCHROMIUM>();
+ if (c) {
+ c->Init(release_count);
+ }
+}
+
+void GenSyncTokenCHROMIUMImmediate(GLuint fence_sync) {
+ const uint32_t s = 0; // TODO(gman): compute correct size
+ gles2::cmds::GenSyncTokenCHROMIUMImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenSyncTokenCHROMIUMImmediate>(
+ s);
+ if (c) {
+ c->Init(fence_sync);
+ }
+}
+
+void WaitSyncTokenCHROMIUM(GLint channel_id,
+ GLuint routing_id,
+ GLuint release_count) {
+ gles2::cmds::WaitSyncTokenCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::WaitSyncTokenCHROMIUM>();
+ if (c) {
+ c->Init(channel_id, routing_id, release_count);
+ }
+}
+
void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) {
const uint32_t size =
gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count);

Powered by Google App Engine
This is Rietveld 408576698