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

Unified Diff: ui/gl/gl_bindings_skia_in_process.cc

Issue 216833005: Wire glDiscardFramebuffer up to Skia. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « gpu/skia_bindings/gl_bindings_skia_cmd_buffer.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 28da2c722c794d241fde5f71df5d199ce297ad80..0e2dfe56ba4e8c19daa659d5fa6592d33801edf4 100644
--- a/ui/gl/gl_bindings_skia_in_process.cc
+++ b/ui/gl/gl_bindings_skia_in_process.cc
@@ -187,6 +187,11 @@ GLvoid StubGLDisableVertexAttribArray(GLuint index) {
glDisableVertexAttribArray(index);
}
+GLvoid StubGLDiscardFramebuffer(GLenum target, GLsizei numAttachments,
+ const GLenum *attachments) {
+ glDiscardFramebufferEXT(target, numAttachments, attachments);
+}
+
GLvoid StubGLDrawArrays(GLenum mode, GLint first, GLsizei count) {
glDrawArrays(mode, first, count);
}
@@ -631,6 +636,7 @@ GrGLInterface* CreateInProcessSkiaGLBinding() {
functions->fDepthMask = StubGLDepthMask;
functions->fDisable = StubGLDisable;
functions->fDisableVertexAttribArray = StubGLDisableVertexAttribArray;
+ functions->fDiscardFramebuffer = StubGLDiscardFramebuffer;
functions->fDrawArrays = StubGLDrawArrays;
functions->fDrawBuffer = StubGLDrawBuffer;
functions->fDrawBuffers = StubGLDrawBuffers;
« no previous file with comments | « gpu/skia_bindings/gl_bindings_skia_cmd_buffer.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698