Index: src/gpu/glsl/GrGLSLCaps.h |
diff --git a/src/gpu/glsl/GrGLSLCaps.h b/src/gpu/glsl/GrGLSLCaps.h |
index f93ef2766d18f376a0e65c1399ebf6151fbb4502..fb626abe9864fe321dbf4a7a6edc08e51b9a359d 100755 |
--- a/src/gpu/glsl/GrGLSLCaps.h |
+++ b/src/gpu/glsl/GrGLSLCaps.h |
@@ -82,6 +82,13 @@ public: |
return fShaderDerivativeExtensionString; |
} |
+ bool mustSwizzleInShader() const { return fMustSwizzleInShader; } |
+ /* |
bsalomon
2015/11/02 20:44:59
/**
egdaniel
2015/11/02 22:14:11
Done.
|
+ * Returns a string which represents how the mapping from an internal GrPixelConfig to a |
bsalomon
2015/11/02 20:44:59
incomplete sentence?
egdaniel
2015/11/02 22:14:11
Done.
|
+ * GL Format. A draw side swizzle will then use this mapping to correctly set components. |
+ */ |
+ const char* getSwizzleMap(GrPixelConfig config) const { return fConfigSwizzle[config]; } |
+ |
GrGLSLGeneration generation() const { return fGLSLGeneration; } |
/** |
@@ -90,6 +97,8 @@ public: |
SkString dump() const override; |
private: |
+ void onApplyOptionsOverrides(const GrContextOptions& options) override; |
+ |
GrGLSLGeneration fGLSLGeneration; |
bool fDropsTileOnZeroDivide : 1; |
@@ -109,6 +118,9 @@ private: |
AdvBlendEqInteraction fAdvBlendEqInteraction; |
+ bool fMustSwizzleInShader; |
+ const char* fConfigSwizzle[kGrPixelConfigCnt]; |
+ |
friend class GrGLCaps; // For initialization. |
typedef GrShaderCaps INHERITED; |