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

Unified Diff: ui/gl/gl_bindings_autogen_mock.cc

Issue 2826143003: Passthrough CmdDecoder: Use robust CompressedTex(Sub)Image (Closed)
Patch Set: Manually add glCompressedTexSubImage3DRobustANGLE to gl_mack.h because it has more than the 10 args… Created 3 years, 8 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
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.h ('k') | ui/gl/gl_enums_implementation_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings_autogen_mock.cc
diff --git a/ui/gl/gl_bindings_autogen_mock.cc b/ui/gl/gl_bindings_autogen_mock.cc
index de274b3c349203733b6b59ddde1df345b12c7fcf..616ac6918c8a47592119d11a589079e3375e9011 100644
--- a/ui/gl/gl_bindings_autogen_mock.cc
+++ b/ui/gl/gl_bindings_autogen_mock.cc
@@ -462,6 +462,22 @@ MockGLInterface::Mock_glCompressedTexImage2D(GLenum target,
}
void GL_BINDING_CALL
+MockGLInterface::Mock_glCompressedTexImage2DRobustANGLE(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLsizei imageSize,
+ GLsizei dataSize,
+ const void* data) {
+ MakeFunctionUnique("glCompressedTexImage2DRobustANGLE");
+ interface_->CompressedTexImage2DRobustANGLE(target, level, internalformat,
+ width, height, border, imageSize,
+ dataSize, data);
+}
+
+void GL_BINDING_CALL
MockGLInterface::Mock_glCompressedTexImage3D(GLenum target,
GLint level,
GLenum internalformat,
@@ -477,6 +493,23 @@ MockGLInterface::Mock_glCompressedTexImage3D(GLenum target,
}
void GL_BINDING_CALL
+MockGLInterface::Mock_glCompressedTexImage3DRobustANGLE(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLint border,
+ GLsizei imageSize,
+ GLsizei dataSize,
+ const void* data) {
+ MakeFunctionUnique("glCompressedTexImage3DRobustANGLE");
+ interface_->CompressedTexImage3DRobustANGLE(target, level, internalformat,
+ width, height, depth, border,
+ imageSize, dataSize, data);
+}
+
+void GL_BINDING_CALL
MockGLInterface::Mock_glCompressedTexSubImage2D(GLenum target,
GLint level,
GLint xoffset,
@@ -492,6 +525,23 @@ MockGLInterface::Mock_glCompressedTexSubImage2D(GLenum target,
}
void GL_BINDING_CALL
+MockGLInterface::Mock_glCompressedTexSubImage2DRobustANGLE(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLsizei imageSize,
+ GLsizei dataSize,
+ const void* data) {
+ MakeFunctionUnique("glCompressedTexSubImage2DRobustANGLE");
+ interface_->CompressedTexSubImage2DRobustANGLE(target, level, xoffset,
+ yoffset, width, height, format,
+ imageSize, dataSize, data);
+}
+
+void GL_BINDING_CALL
MockGLInterface::Mock_glCompressedTexSubImage3D(GLenum target,
GLint level,
GLint xoffset,
@@ -510,6 +560,25 @@ MockGLInterface::Mock_glCompressedTexSubImage3D(GLenum target,
}
void GL_BINDING_CALL
+MockGLInterface::Mock_glCompressedTexSubImage3DRobustANGLE(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint zoffset,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLenum format,
+ GLsizei imageSize,
+ GLsizei dataSize,
+ const void* data) {
+ MakeFunctionUnique("glCompressedTexSubImage3DRobustANGLE");
+ interface_->CompressedTexSubImage3DRobustANGLE(
+ target, level, xoffset, yoffset, zoffset, width, height, depth, format,
+ imageSize, dataSize, data);
+}
+
+void GL_BINDING_CALL
MockGLInterface::Mock_glCopyBufferSubData(GLenum readTarget,
GLenum writeTarget,
GLintptr readOffset,
@@ -4014,14 +4083,26 @@ MockGLInterface::GetGLProcAddress(const char* name) {
Mock_glCompressedCopyTextureCHROMIUM);
if (strcmp(name, "glCompressedTexImage2D") == 0)
return reinterpret_cast<GLFunctionPointerType>(Mock_glCompressedTexImage2D);
+ if (strcmp(name, "glCompressedTexImage2DRobustANGLE") == 0)
+ return reinterpret_cast<GLFunctionPointerType>(
+ Mock_glCompressedTexImage2DRobustANGLE);
if (strcmp(name, "glCompressedTexImage3D") == 0)
return reinterpret_cast<GLFunctionPointerType>(Mock_glCompressedTexImage3D);
+ if (strcmp(name, "glCompressedTexImage3DRobustANGLE") == 0)
+ return reinterpret_cast<GLFunctionPointerType>(
+ Mock_glCompressedTexImage3DRobustANGLE);
if (strcmp(name, "glCompressedTexSubImage2D") == 0)
return reinterpret_cast<GLFunctionPointerType>(
Mock_glCompressedTexSubImage2D);
+ if (strcmp(name, "glCompressedTexSubImage2DRobustANGLE") == 0)
+ return reinterpret_cast<GLFunctionPointerType>(
+ Mock_glCompressedTexSubImage2DRobustANGLE);
if (strcmp(name, "glCompressedTexSubImage3D") == 0)
return reinterpret_cast<GLFunctionPointerType>(
Mock_glCompressedTexSubImage3D);
+ if (strcmp(name, "glCompressedTexSubImage3DRobustANGLE") == 0)
+ return reinterpret_cast<GLFunctionPointerType>(
+ Mock_glCompressedTexSubImage3DRobustANGLE);
if (strcmp(name, "glCopyBufferSubData") == 0)
return reinterpret_cast<GLFunctionPointerType>(Mock_glCopyBufferSubData);
if (strcmp(name, "glCopySubTextureCHROMIUM") == 0)
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.h ('k') | ui/gl/gl_enums_implementation_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698