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 = { ...@@ -29,7 +29,7 @@ vars = {
"libvpx_revision": "97420", "libvpx_revision": "97420",
"ffmpeg_revision": "99115", "ffmpeg_revision": "99115",
"sfntly_revision": "54", "sfntly_revision": "54",
"skia_revision": "2291", "skia_revision": "2303",
"v8_revision": "9288", "v8_revision": "9288",
"webrtc_revision": "634", "webrtc_revision": "634",
......
...@@ -28,6 +28,9 @@ class MockGLInterface : public GLInterface { ...@@ -28,6 +28,9 @@ class MockGLInterface : public GLInterface {
MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer)); 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, MOCK_METHOD4(BindFragDataLocationIndexedARB, void(GLuint program,
GLuint colorNumber, GLuint index, const char* name)); GLuint colorNumber, GLuint index, const char* name));
......
...@@ -16,6 +16,8 @@ GL_FUNCTIONS = [ ...@@ -16,6 +16,8 @@ GL_FUNCTIONS = [
['void', ['glBindAttribLocation'], ['void', ['glBindAttribLocation'],
'GLuint program, GLuint index, const char* name'], 'GLuint program, GLuint index, const char* name'],
['void', ['glBindBuffer'], 'GLenum target, GLuint buffer'], ['void', ['glBindBuffer'], 'GLenum target, GLuint buffer'],
['void', ['glBindFragDataLocation'],
'GLuint program, GLuint colorNumber, const char* name'],
['void', ['glBindFragDataLocationIndexedARB'], ['void', ['glBindFragDataLocationIndexedARB'],
'GLuint program, GLuint colorNumber, GLuint index, const char* name'], 'GLuint program, GLuint colorNumber, GLuint index, const char* name'],
['void', ['glBindFramebufferEXT', 'glBindFramebuffer'], ['void', ['glBindFramebufferEXT', 'glBindFramebuffer'],
......
...@@ -35,8 +35,13 @@ GLvoid StubGLBindBuffer(GLenum target, GLuint buffer) { ...@@ -35,8 +35,13 @@ GLvoid StubGLBindBuffer(GLenum target, GLuint buffer) {
glBindBuffer(target, buffer); glBindBuffer(target, buffer);
} }
GLvoid StubBindFragDataLocationIndexedARB(GLuint program, GLuint colorNumber, GLvoid StubGLBindFragDataLocation(GLuint program, GLuint colorNumber,
GLuint index, const GLchar * name) { const GLchar * name) {
glBindFragDataLocation(program, colorNumber, name);
}
GLvoid StubGLBindFragDataLocationIndexedARB(GLuint program, GLuint colorNumber,
GLuint index, const GLchar * name) {
glBindFragDataLocationIndexedARB(program, colorNumber, index, name); glBindFragDataLocationIndexedARB(program, colorNumber, index, name);
} }
...@@ -499,6 +504,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() { ...@@ -499,6 +504,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
interface->fAttachShader = StubGLAttachShader; interface->fAttachShader = StubGLAttachShader;
interface->fBindAttribLocation = StubGLBindAttribLocation; interface->fBindAttribLocation = StubGLBindAttribLocation;
interface->fBindBuffer = StubGLBindBuffer; interface->fBindBuffer = StubGLBindBuffer;
interface->fBindFragDataLocation = StubGLBindFragDataLocation;
interface->fBindTexture = StubGLBindTexture; interface->fBindTexture = StubGLBindTexture;
interface->fBlendColor = StubGLBlendColor; interface->fBlendColor = StubGLBlendColor;
interface->fBlendFunc = StubGLBlendFunc; interface->fBlendFunc = StubGLBlendFunc;
...@@ -597,7 +603,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() { ...@@ -597,7 +603,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
interface->fMapBuffer = StubGLMapBuffer; interface->fMapBuffer = StubGLMapBuffer;
interface->fUnmapBuffer = StubGLUnmapBuffer; interface->fUnmapBuffer = StubGLUnmapBuffer;
interface->fBindFragDataLocationIndexed = interface->fBindFragDataLocationIndexed =
StubBindFragDataLocationIndexedARB; StubGLBindFragDataLocationIndexedARB;
return interface; return interface;
} }
......
...@@ -39,6 +39,10 @@ class GL_EXPORT GLInterface { ...@@ -39,6 +39,10 @@ class GL_EXPORT GLInterface {
GLuint index, GLuint index,
const char* name) = 0; 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 BindFramebufferEXT(GLenum target, GLuint framebuffer) = 0;
virtual void BindRenderbufferEXT(GLenum target, GLuint renderbuffer) = 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