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

Unified Diff: src/gpu/gl/GrGLCaps.h

Issue 218763006: Use glInvalidateFramebuffer() when it is supported. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
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 | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/gpu/gl/GrGLCaps.h
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h
index 21176d16dd80458278c1deb663885373d89af501..4cde2bd5f7317b8902a4a68e9ae6ac3f1991293e 100644
--- a/src/gpu/gl/GrGLCaps.h
+++ b/src/gpu/gl/GrGLCaps.h
@@ -75,7 +75,15 @@ public:
/** GL_NV_shader_framebuffer_fetch */
kNV_FBFetchType,
- kLast_FBFetchType = kNV_FBFetchType,
+ kLast_FBFetchType = kNV_FBFetchType
+ };
+
+ enum InvalidateFBType {
+ kNone_InvalidateFBType,
+ kDiscard_InvalidateFBType, //<! glDiscardFramebuffer()
+ kInvalidate_InvalidateFBType, //<! glInvalidateFramebuffer()
+
+ kLast_InvalidateFBType = kInvalidate_InvalidateFBType
};
/**
@@ -159,6 +167,8 @@ public:
FBFetchType fbFetchType() const { return fFBFetchType; }
+ InvalidateFBType invalidateFBType() const { return fInvalidateFBType; }
+
/**
* Returs a string containeng the caps info.
*/
@@ -307,9 +317,9 @@ private:
int fMaxFragmentTextureUnits;
int fMaxFixedFunctionTextureCoords;
- MSFBOType fMSFBOType;
-
- FBFetchType fFBFetchType;
+ MSFBOType fMSFBOType;
+ FBFetchType fFBFetchType;
+ InvalidateFBType fInvalidateFBType;
bool fRGBA8RenderbufferSupport : 1;
bool fBGRAFormatSupport : 1;
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698