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

Unified Diff: src/gpu/gl/GrGLInterface.cpp

Issue 14461006: Plumbed in discard_framebuffer extension (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: Fixed other issues Created 7 years, 8 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
Index: src/gpu/gl/GrGLInterface.cpp
===================================================================
--- src/gpu/gl/GrGLInterface.cpp (revision 8892)
+++ src/gpu/gl/GrGLInterface.cpp (working copy)
@@ -295,6 +295,12 @@
}
}
+ if (extensions.has("GL_EXT_discard_framebuffer")) {
bsalomon 2013/04/29 14:42:15 Might be worth checking if Chrome passes along thi
robertphillips 2013/04/29 15:25:39 Done.
+ if (NULL == fDiscardFramebuffer) {
+ return false;
+ }
+ }
+
// FBO MSAA
if (kDesktop_GrGLBinding == binding) {
// GL 3.0 and the ARB extension have multisample + blit

Powered by Google App Engine
This is Rietveld 408576698