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

Unified Diff: ui/gl/gl_bindings_skia_in_process.cc

Issue 952893003: Update from https://crrev.com/317530 (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix gn for nacl 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
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.cc ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings_skia_in_process.cc
diff --git a/ui/gl/gl_bindings_skia_in_process.cc b/ui/gl/gl_bindings_skia_in_process.cc
index 91d0b0f99bc40077cabed0ea63fee212bd6a104a..25dd698efdf994e6ac7d3da24a91e85cba0dcbb8 100644
--- a/ui/gl/gl_bindings_skia_in_process.cc
+++ b/ui/gl/gl_bindings_skia_in_process.cc
@@ -229,6 +229,11 @@ GLvoid StubGLFlush() {
glFlush();
}
+GLvoid StubGLFlushMappedBufferRange(GLenum target, GLintptr offset,
+ GLsizeiptr length) {
+ glFlushMappedBufferRange(target, offset, length);
+}
+
GLvoid StubGLFramebufferRenderbuffer(GLenum target, GLenum attachment,
GLenum renderbuffertarget,
GLuint renderbuffer) {
@@ -331,6 +336,10 @@ const GLubyte* StubGLGetString(GLenum name) {
return glGetString(name);
}
+const GLubyte* StubGLGetStringi(GLenum name, GLuint index) {
+ return glGetStringi(name, index);
+}
+
GLvoid StubGLGetQueryiv(GLenum target, GLenum pname, GLint* params) {
glGetQueryiv(target, pname, params);
}
@@ -364,6 +373,20 @@ GLvoid StubGLInsertEventMarker(GLsizei length, const char* marker) {
glInsertEventMarkerEXT(length, marker);
}
+GLvoid StubGLInvalidateFramebuffer(GLenum target, GLsizei numAttachments,
+ const GLenum* attachments) {
+ glInvalidateFramebuffer(target, numAttachments, attachments);
+}
+
+GLvoid StubGLInvalidateSubFramebuffer(GLenum target,
+ GLsizei numAttachments,
+ const GLenum* attachments,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height) {
+ glInvalidateSubFramebuffer(target, numAttachments, attachments,
+ x, y, width, height);
+}
+
GLvoid StubGLLineWidth(GLfloat width) {
glLineWidth(width);
}
@@ -376,6 +399,11 @@ void* StubGLMapBuffer(GLenum target, GLenum access) {
return glMapBuffer(target, access);
}
+void* StubGLMapBufferRange(GLenum target, GLintptr offset, GLsizeiptr length,
+ GLbitfield access) {
+ return glMapBufferRange(target, offset, length, access);
+}
+
GLvoid StubGLPixelStorei(GLenum pname, GLint param) {
glPixelStorei(pname, param);
}
@@ -589,6 +617,13 @@ GLvoid StubGLVertexAttribPointer(GLuint indx, GLint size, GLenum type,
GLvoid StubGLViewport(GLint x, GLint y, GLsizei width, GLsizei height) {
glViewport(x, y, width, height);
}
+
+GLint StubGLGetProgramResourceLocation(GLuint program,
+ GLenum programInterface,
+ const char* name) {
+ return glGetProgramResourceLocation(program, programInterface, name);
+}
+
} // extern "C"
} // namespace
@@ -622,7 +657,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
interface->fStandard = standard;
interface->fExtensions.init(standard,
StubGLGetString,
- NULL,
+ StubGLGetStringi,
StubGLGetIntegerv);
GrGLInterface::Functions* functions = &interface->fFunctions;
@@ -667,6 +702,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fEndQuery = StubGLEndQuery;
functions->fFinish = StubGLFinish;
functions->fFlush = StubGLFlush;
+ functions->fFlushMappedBufferRange = StubGLFlushMappedBufferRange;
functions->fFrontFace = StubGLFrontFace;
functions->fGenBuffers = StubGLGenBuffers;
functions->fGenQueries = StubGLGenQueries;
@@ -687,11 +723,15 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fGetShaderiv = StubGLGetShaderiv;
functions->fGetShaderPrecisionFormat = StubGLGetShaderPrecisionFormat;
functions->fGetString = StubGLGetString;
+ functions->fGetStringi = StubGLGetStringi;
functions->fGetTexLevelParameteriv = StubGLGetTexLevelParameteriv;
functions->fGetUniformLocation = StubGLGetUniformLocation;
functions->fInsertEventMarker = StubGLInsertEventMarker;
+ functions->fInvalidateFramebuffer = StubGLInvalidateFramebuffer;
+ functions->fInvalidateSubFramebuffer = StubGLInvalidateSubFramebuffer;
functions->fLineWidth = StubGLLineWidth;
functions->fLinkProgram = StubGLLinkProgram;
+ functions->fMapBufferRange = StubGLMapBufferRange;
functions->fPixelStorei = StubGLPixelStorei;
functions->fPopGroupMarker = StubGLPopGroupMarker;
functions->fPushGroupMarker = StubGLPushGroupMarker;
@@ -754,11 +794,14 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fRenderbufferStorage = StubGLRenderbufferStorage;
functions->fRenderbufferStorageMultisample =
StubGLRenderbufferStorageMultisample;
+ functions->fRenderbufferStorageMultisampleES2EXT =
+ StubGLRenderbufferStorageMultisample;
functions->fBlitFramebuffer = StubGLBlitFramebuffer;
functions->fMapBuffer = StubGLMapBuffer;
functions->fUnmapBuffer = StubGLUnmapBuffer;
functions->fBindFragDataLocationIndexed =
StubGLBindFragDataLocationIndexed;
+ functions->fGetProgramResourceLocation = StubGLGetProgramResourceLocation;
return interface;
}
« no previous file with comments | « ui/gl/gl_bindings_autogen_mock.cc ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698