diff options
author | 2015-05-18 06:26:15 -0700 | |
---|---|---|
committer | 2015-05-18 06:26:15 -0700 | |
commit | 5df6fee929823f50c55cc50f7c882a309c1b1de9 (patch) | |
tree | 1c5f6de7d6d3f2978db4a9b9d5365700891f6765 /src/gpu/gl/GrGLCaps.h | |
parent | 5b5ddd73b4baf22752924bf20d097e96236c36f8 (diff) |
Move copy-surface-as-draw fallback to GrGLGpu.
Review URL: https://codereview.chromium.org/1144433002
Diffstat (limited to 'src/gpu/gl/GrGLCaps.h')
-rw-r--r-- | src/gpu/gl/GrGLCaps.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gpu/gl/GrGLCaps.h b/src/gpu/gl/GrGLCaps.h index 25c7889b97..dfc6233b6b 100644 --- a/src/gpu/gl/GrGLCaps.h +++ b/src/gpu/gl/GrGLCaps.h @@ -374,6 +374,7 @@ private: typedef GrDrawTargetCaps INHERITED; }; +#include "GrGLSL.h" class GrGLSLCaps : public GrShaderCaps { public: @@ -438,6 +439,12 @@ public: bool mustEnableSpecificAdvBlendEqs() const { return fAdvBlendEqInteraction == kSpecificEnables_AdvBlendEqInteraction; } + + bool mustDeclareFragmentShaderOutput() const { + return fGLSLGeneration > k110_GrGLSLGeneration; + } + + GrGLSLGeneration generation() const { return fGLSLGeneration; } /** * Returns a string containing the caps info. @@ -448,6 +455,8 @@ private: // Must be called after fGeometryShaderSupport is initialized. void initShaderPrecisionTable(const GrGLContextInfo&, const GrGLInterface*); + GrGLSLGeneration fGLSLGeneration; + bool fDropsTileOnZeroDivide : 1; bool fFBFetchSupport : 1; bool fFBFetchNeedsCustomOutput : 1; |