aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/gl/GrGLCaps.h
diff options
context:
space:
mode:
authorGravatar bsalomon <bsalomon@google.com>2015-05-18 06:26:15 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-05-18 06:26:15 -0700
commit5df6fee929823f50c55cc50f7c882a309c1b1de9 (patch)
tree1c5f6de7d6d3f2978db4a9b9d5365700891f6765 /src/gpu/gl/GrGLCaps.h
parent5b5ddd73b4baf22752924bf20d097e96236c36f8 (diff)
Move copy-surface-as-draw fallback to GrGLGpu.
Diffstat (limited to 'src/gpu/gl/GrGLCaps.h')
-rw-r--r--src/gpu/gl/GrGLCaps.h9
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;