Index: include/gpu/GrCaps.h |
diff --git a/include/gpu/GrCaps.h b/include/gpu/GrCaps.h |
index 679777f9ddc74caab3c3820d4258e371a0eeb003..5fbd869c019bbd489eeb6a49395fcea5053f48ad 100644 |
--- a/include/gpu/GrCaps.h |
+++ b/include/gpu/GrCaps.h |
@@ -81,6 +81,8 @@ public: |
*/ |
bool floatPrecisionVaries() const { return fShaderPrecisionVaries; } |
+ int pixelLocalStorageSize() const { return fPixelLocalStorageSize; } |
bsalomon
2016/01/13 19:15:33
Maybe a comment that if > 0 then PLS is supported
|
+ |
protected: |
/** Subclasses must call this after initialization in order to apply caps overrides requested by |
the client. Note that overrides will only reduce the caps never expand them. */ |
@@ -94,6 +96,7 @@ protected: |
bool fShaderPrecisionVaries; |
PrecisionInfo fFloatPrecisions[kGrShaderTypeCount][kGrSLPrecisionCount]; |
+ int fPixelLocalStorageSize; |
private: |
virtual void onApplyOptionsOverrides(const GrContextOptions&) {}; |