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

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

Issue 433603002: FBFetch refactor + arm support (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | src/gpu/gl/GrGLShaderBuilder.cpp » ('J')
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 ccf04fd7ba5a3d668ef5d2671d0defc5af6ea6b6..bddc4d53f383af8e7421e4dd42f4ad51debf419a 100644
--- a/src/gpu/gl/GrGLCaps.h
+++ b/src/gpu/gl/GrGLCaps.h
@@ -74,8 +74,10 @@ public:
kEXT_FBFetchType,
/** GL_NV_shader_framebuffer_fetch */
kNV_FBFetchType,
+ /** GL_ARM_shader_framebuffer_fetch */
+ kARM_FBFetchType,
- kLast_FBFetchType = kNV_FBFetchType
+ kLast_FBFetchType = kARM_FBFetchType
};
enum InvalidateFBType {
@@ -174,8 +176,17 @@ public:
kES_EXT_MsToTexture_MSFBOType == fMSFBOType;
}
+ /**
+ * Some helper functions for encapsulating various extensions to read FB Buffer on openglES
+ *
+ * TODO On desktop opengl 4.2+ we can achieve something similar to this effect
+ */
FBFetchType fbFetchType() const { return fFBFetchType; }
+ const char* fbFetchColorName() const { return fFBFetchColorName; }
+
+ const char* fbFetchExtensionString() const { return fFBFetchExtensionString; }
+
InvalidateFBType invalidateFBType() const { return fInvalidateFBType; }
/// What type of buffer mapping is supported?
@@ -341,6 +352,8 @@ private:
MSFBOType fMSFBOType;
FBFetchType fFBFetchType;
+ const char* fFBFetchColorName;
+ const char* fFBFetchExtensionString;
InvalidateFBType fInvalidateFBType;
MapBufferType fMapBufferType;
LATCAlias fLATCAlias;
« no previous file with comments | « no previous file | src/gpu/gl/GrGLCaps.cpp » ('j') | src/gpu/gl/GrGLShaderBuilder.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698