Commit 5d4e7891 authored by bsalomon@google.com's avatar bsalomon@google.com

Roll skia to 2303

Review URL: http://codereview.chromium.org/7977031

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@102366 0039d316-1c4b-4281-b951-d872f2087c98
parent 60cbde46
......@@ -29,7 +29,7 @@ vars = {
"libvpx_revision": "97420",
"ffmpeg_revision": "99115",
"sfntly_revision": "54",
"skia_revision": "2291",
"skia_revision": "2303",
"v8_revision": "9288",
"webrtc_revision": "634",
......
......@@ -28,6 +28,9 @@ class MockGLInterface : public GLInterface {
MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer));
MOCK_METHOD3(BindFragDataLocation, void(GLuint program, GLuint colorNumber,
const char* name));
MOCK_METHOD4(BindFragDataLocationIndexedARB, void(GLuint program,
GLuint colorNumber, GLuint index, const char* name));
......
......@@ -16,6 +16,8 @@ GL_FUNCTIONS = [
['void', ['glBindAttribLocation'],
'GLuint program, GLuint index, const char* name'],
['void', ['glBindBuffer'], 'GLenum target, GLuint buffer'],
['void', ['glBindFragDataLocation'],
'GLuint program, GLuint colorNumber, const char* name'],
['void', ['glBindFragDataLocationIndexedARB'],
'GLuint program, GLuint colorNumber, GLuint index, const char* name'],
['void', ['glBindFramebufferEXT', 'glBindFramebuffer'],
......
......@@ -35,7 +35,12 @@ GLvoid StubGLBindBuffer(GLenum target, GLuint buffer) {
glBindBuffer(target, buffer);
}
GLvoid StubBindFragDataLocationIndexedARB(GLuint program, GLuint colorNumber,
GLvoid StubGLBindFragDataLocation(GLuint program, GLuint colorNumber,
const GLchar * name) {
glBindFragDataLocation(program, colorNumber, name);
}
GLvoid StubGLBindFragDataLocationIndexedARB(GLuint program, GLuint colorNumber,
GLuint index, const GLchar * name) {
glBindFragDataLocationIndexedARB(program, colorNumber, index, name);
}
......@@ -499,6 +504,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
interface->fAttachShader = StubGLAttachShader;
interface->fBindAttribLocation = StubGLBindAttribLocation;
interface->fBindBuffer = StubGLBindBuffer;
interface->fBindFragDataLocation = StubGLBindFragDataLocation;
interface->fBindTexture = StubGLBindTexture;
interface->fBlendColor = StubGLBlendColor;
interface->fBlendFunc = StubGLBlendFunc;
......@@ -597,7 +603,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
interface->fMapBuffer = StubGLMapBuffer;
interface->fUnmapBuffer = StubGLUnmapBuffer;
interface->fBindFragDataLocationIndexed =
StubBindFragDataLocationIndexedARB;
StubGLBindFragDataLocationIndexedARB;
return interface;
}
......
......@@ -39,6 +39,10 @@ class GL_EXPORT GLInterface {
GLuint index,
const char* name) = 0;
virtual void BindFragDataLocation(GLuint program,
GLuint colorNumber,
const char* name) = 0;
virtual void BindFramebufferEXT(GLenum target, GLuint framebuffer) = 0;
virtual void BindRenderbufferEXT(GLenum target, GLuint renderbuffer) = 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment