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

Unified Diff: ui/gfx/gl/gl_bindings_skia_in_process.cc

Issue 7564013: Roll skia to r2034 (and add new gl bindings) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 | « ui/gfx/gl/generate_bindings.py ('k') | ui/gfx/gl/gl_interface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/gl/gl_bindings_skia_in_process.cc
===================================================================
--- ui/gfx/gl/gl_bindings_skia_in_process.cc (revision 95237)
+++ ui/gfx/gl/gl_bindings_skia_in_process.cc (working copy)
@@ -164,6 +164,14 @@
glDrawArrays(mode, first, count);
}
+GLvoid StubGLDrawBuffer(GLenum mode) {
+ glDrawBuffer(mode);
+}
+
+GLvoid StubGLDrawBuffers(GLsizei n, const GLenum* bufs) {
+ glDrawBuffersARB(n, bufs);
+}
+
GLvoid StubGLDrawElements(GLenum mode, GLsizei count, GLenum type,
const void* indices) {
glDrawElements(mode, count, type, indices);
@@ -280,6 +288,10 @@
glPixelStorei(pname, param);
}
+GLvoid StubGLReadBuffer(GLenum src) {
+ glReadBuffer(src);
+}
+
GLvoid StubGLReadPixels(GLint x, GLint y, GLsizei width, GLsizei height,
GLenum format, GLenum type, void* pixels) {
glReadPixels(x, y, width, height, format, type, pixels);
@@ -519,6 +531,8 @@
NULL, // glDisableClientState
StubGLDisableVertexAttribArray,
StubGLDrawArrays,
+ StubGLDrawBuffer,
+ StubGLDrawBuffers,
StubGLDrawElements,
StubGLEnable,
NULL, // glEnableClientState
@@ -542,6 +556,7 @@
NULL, // glMatrixMode
StubGLPixelStorei,
NULL, // glPointSize
+ StubGLReadBuffer,
StubGLReadPixels,
StubGLScissor,
NULL, // glShadeModel
« no previous file with comments | « ui/gfx/gl/generate_bindings.py ('k') | ui/gfx/gl/gl_interface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698