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

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

Issue 786123002: Update from https://crrev.com/307330 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b8e3b66d1b7fcb43f250c9949e58feb4bd4f7a13..dc43a41a7e31a10e374a9c21ea72c430a21171c7 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -813,6 +813,36 @@ void Hint(GLenum target, GLenum mode) {
}
}
+void InvalidateFramebufferImmediate(GLenum target,
+ GLsizei count,
+ const GLenum* attachments) {
+ const uint32_t size =
+ gles2::cmds::InvalidateFramebufferImmediate::ComputeSize(count);
+ gles2::cmds::InvalidateFramebufferImmediate* c =
+ GetImmediateCmdSpaceTotalSize<
+ gles2::cmds::InvalidateFramebufferImmediate>(size);
+ if (c) {
+ c->Init(target, count, attachments);
+ }
+}
+
+void InvalidateSubFramebufferImmediate(GLenum target,
+ GLsizei count,
+ const GLenum* attachments,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) {
+ const uint32_t size =
+ gles2::cmds::InvalidateSubFramebufferImmediate::ComputeSize(count);
+ gles2::cmds::InvalidateSubFramebufferImmediate* c =
+ GetImmediateCmdSpaceTotalSize<
+ gles2::cmds::InvalidateSubFramebufferImmediate>(size);
+ if (c) {
+ c->Init(target, count, attachments, x, y, width, height);
+ }
+}
+
void IsBuffer(GLuint buffer,
uint32_t result_shm_id,
uint32_t result_shm_offset) {
@@ -902,6 +932,13 @@ void PolygonOffset(GLfloat factor, GLfloat units) {
}
}
+void ReadBuffer(GLenum src) {
+ gles2::cmds::ReadBuffer* c = GetCmdSpace<gles2::cmds::ReadBuffer>();
+ if (c) {
+ c->Init(src);
+ }
+}
+
void ReadPixels(GLint x,
GLint y,
GLsizei width,
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698