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

Unified Diff: ui/gl/gl_bindings_skia_in_process.cc

Issue 1236953002: Roll Skia to 7b971f0152299ae9a924252a9bfd220318497bdd (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: now with less crash on startup Created 5 years, 5 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 | « sky/shell/gpu/ganesh_surface.cc ('k') | no next file » | 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 d6a8baf2a0f32737c8181d50a07f9df1c66b2514..709c37fa9efc24fa4b62f600000ddee5f5143eaa 100644
--- a/ui/gl/gl_bindings_skia_in_process.cc
+++ b/ui/gl/gl_bindings_skia_in_process.cc
@@ -69,6 +69,10 @@ GLvoid StubGLBlendColor(GLclampf red, GLclampf green, GLclampf blue,
glBlendColor(red, green, blue, alpha);
}
+GLvoid StubGLBlendEquation(GLenum mode) {
+ glBlendEquation(mode);
+}
+
GLvoid StubGLBlendFunc(GLenum sfactor, GLenum dfactor) {
glBlendFunc(sfactor, dfactor);
}
@@ -196,6 +200,12 @@ GLvoid StubGLDrawArrays(GLenum mode, GLint first, GLsizei count) {
glDrawArrays(mode, first, count);
}
+GLvoid StubGLDrawArraysInstanced(GLenum mode, GLint first, GLsizei count,
+ GLsizei instanceCount) {
+ glDrawArraysInstancedANGLE(mode, first, count, instanceCount);
+}
+
+
GLvoid StubGLDrawBuffer(GLenum mode) {
glDrawBuffer(mode);
}
@@ -209,6 +219,13 @@ GLvoid StubGLDrawElements(GLenum mode, GLsizei count, GLenum type,
glDrawElements(mode, count, type, indices);
}
+GLvoid StubGLDrawElementsInstanced(GLenum mode, GLsizei count, GLenum type,
+ const GLvoid *indices,
+ GLsizei instanceCount) {
+ glDrawElementsInstancedANGLE(mode, count, type, indices, instanceCount);
+}
+
+
GLvoid StubGLEnable(GLenum cap) {
glEnable(cap);
}
@@ -620,6 +637,10 @@ GLvoid StubGLVertexAttrib4fv(GLuint indx, const GLfloat* values) {
glVertexAttrib4fv(indx, values);
}
+GLvoid StubGLVertexAttribDivisor(GLuint index, GLuint divisor) {
+ glVertexAttribDivisorANGLE(index, divisor);
+}
+
GLvoid StubGLVertexAttribPointer(GLuint indx, GLint size, GLenum type,
GLboolean normalized, GLsizei stride,
const void* ptr) {
@@ -686,6 +707,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fBindTexture = StubGLBindTexture;
functions->fBindVertexArray = StubGLBindVertexArray;
functions->fBlendColor = StubGLBlendColor;
+ functions->fBlendEquation = StubGLBlendEquation;
functions->fBlendFunc = StubGLBlendFunc;
functions->fBufferData = StubGLBufferData;
functions->fBufferSubData = StubGLBufferSubData;
@@ -710,9 +732,11 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fDisableVertexAttribArray = StubGLDisableVertexAttribArray;
functions->fDiscardFramebuffer = StubGLDiscardFramebuffer;
functions->fDrawArrays = StubGLDrawArrays;
+ functions->fDrawArraysInstanced = StubGLDrawArraysInstanced;
functions->fDrawBuffer = StubGLDrawBuffer;
functions->fDrawBuffers = StubGLDrawBuffers;
functions->fDrawElements = StubGLDrawElements;
+ functions->fDrawElementsInstanced = StubGLDrawElementsInstanced;
functions->fEnable = StubGLEnable;
functions->fEnableVertexAttribArray = StubGLEnableVertexAttribArray;
functions->fEndQuery = StubGLEndQuery;
@@ -791,6 +815,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fVertexAttrib2fv = StubGLVertexAttrib2fv;
functions->fVertexAttrib3fv = StubGLVertexAttrib3fv;
functions->fVertexAttrib4fv = StubGLVertexAttrib4fv;
+ functions->fVertexAttribDivisor = StubGLVertexAttribDivisor;
functions->fVertexAttribPointer = StubGLVertexAttribPointer;
functions->fViewport = StubGLViewport;
functions->fBindFramebuffer = StubGLBindFramebuffer;
« no previous file with comments | « sky/shell/gpu/ganesh_surface.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698