Skip to content

Commit

Permalink
Add glBlendEquation to skia GL bindings
Browse files Browse the repository at this point in the history
BUG=

Review URL: https://codereview.chromium.org/1105633002

Cr-Commit-Position: refs/heads/master@{#326673}
  • Loading branch information
cdalton authored and Commit bot committed Apr 23, 2015
1 parent ca924dc commit 3c807e8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ GrGLInterface* CreateCommandBufferSkiaGLBinding() {
functions->fBindTexture = glBindTexture;
functions->fBindVertexArray = glBindVertexArrayOES;
functions->fBlendColor = glBlendColor;
functions->fBlendEquation = glBlendEquation;
functions->fBlendFunc = glBlendFunc;
functions->fBufferData = glBufferData;
functions->fBufferSubData = glBufferSubData;
Expand Down
5 changes: 5 additions & 0 deletions ui/gl/gl_bindings_skia_in_process.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -670,6 +674,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fBindTexture = StubGLBindTexture;
functions->fBindVertexArray = StubGLBindVertexArray;
functions->fBlendColor = StubGLBlendColor;
functions->fBlendEquation = StubGLBlendEquation;
functions->fBlendFunc = StubGLBlendFunc;
functions->fBufferData = StubGLBufferData;
functions->fBufferSubData = StubGLBufferSubData;
Expand Down

0 comments on commit 3c807e8

Please sign in to comment.