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

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: Fixed memory leak 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 fb77fa29a5b867a9350ed8442769055ab7fd10aa..b722d6e7f3e573dce8e1abec72e88bed619ad092 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(GLuint64 release_count) {
+ gles2::cmds::InsertFenceSyncCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::InsertFenceSyncCHROMIUM>();
+ if (c) {
+ c->Init(release_count);
+ }
+}
+
+void GenSyncTokenCHROMIUMImmediate(GLuint64 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(GLuint namespace_id,
+ GLuint64 command_buffer_id,
+ GLuint64 release_count) {
+ gles2::cmds::WaitSyncTokenCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::WaitSyncTokenCHROMIUM>();
+ if (c) {
+ c->Init(namespace_id, command_buffer_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