| Index: src/gpu/glsl/GrGLSLCaps.h
|
| diff --git a/src/gpu/glsl/GrGLSLCaps.h b/src/gpu/glsl/GrGLSLCaps.h
|
| index 1c799454a7c31f3d1aefd7daf05fb59398d50acc..f907be2b8d6c7819c19de1db5140359e1c02634e 100755
|
| --- a/src/gpu/glsl/GrGLSLCaps.h
|
| +++ b/src/gpu/glsl/GrGLSLCaps.h
|
| @@ -64,6 +64,8 @@ public:
|
|
|
| bool sampleMaskOverrideCoverageSupport() const { return fSampleMaskOverrideCoverageSupport; }
|
|
|
| + bool externalTextureSupport() const { return fExternalTextureSupport; }
|
| +
|
| AdvBlendEqInteraction advBlendEqInteraction() const { return fAdvBlendEqInteraction; }
|
|
|
| bool mustEnableAdvBlendEqs() const {
|
| @@ -112,6 +114,7 @@ public:
|
| }
|
|
|
| const char* externalTextureExtensionString() const {
|
| + SkASSERT(this->externalTextureSupport());
|
| return fExternalTextureExtensionString;
|
| }
|
|
|
| @@ -130,6 +133,14 @@ public:
|
| return fSampleVariablesExtensionString;
|
| }
|
|
|
| + int maxVertexSamplers() const { return fMaxVertexSamplers; }
|
| +
|
| + int maxGeometrySamplers() const { return fMaxGeometrySamplers; }
|
| +
|
| + int maxFragmentSamplers() const { return fMaxFragmentSamplers; }
|
| +
|
| + int maxCombinedSamplers() const { return fMaxCombinedSamplers; }
|
| +
|
| /**
|
| * Given a texture's config, this determines what swizzle must be appended to accesses to the
|
| * texture in generated shader code. Swizzling may be implemented in texture parameters or a
|
| @@ -167,6 +178,7 @@ private:
|
| bool fMultisampleInterpolationSupport : 1;
|
| bool fSampleVariablesSupport : 1;
|
| bool fSampleMaskOverrideCoverageSupport : 1;
|
| + bool fExternalTextureSupport : 1;
|
|
|
| // Used for specific driver bug work arounds
|
| bool fCanUseMinAndAbsTogether : 1;
|
| @@ -185,6 +197,11 @@ private:
|
| const char* fFBFetchColorName;
|
| const char* fFBFetchExtensionString;
|
|
|
| + uint8_t fMaxVertexSamplers;
|
| + uint8_t fMaxGeometrySamplers;
|
| + uint8_t fMaxFragmentSamplers;
|
| + uint8_t fMaxCombinedSamplers;
|
| +
|
| AdvBlendEqInteraction fAdvBlendEqInteraction;
|
|
|
| GrSwizzle fConfigTextureSwizzle[kGrPixelConfigCnt];
|
|
|