Index: src/gpu/gl/GrGpuGL.h |
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h |
index 65e82077bc74eb3dbcc52dac47bb442131a9b283..5ff34aec2265510c30201cb7f6cd1edcb9ff91ff 100644 |
--- a/src/gpu/gl/GrGpuGL.h |
+++ b/src/gpu/gl/GrGpuGL.h |
@@ -50,6 +50,10 @@ public: |
void enableTexGen(int unitIdx, TexGenComponents, const GrGLfloat* coefficients); |
void enableTexGen(int unitIdx, TexGenComponents, const SkMatrix& matrix); |
void disableUnusedTexGen(int numUsedTexCoordSets); |
+ bool shouldUseFixedFunctionTexturing() const { |
+ return this->glCaps().fixedFunctionSupport() && |
+ this->glCaps().pathRenderingSupport(); |
+ } |
bool programUnitTest(int maxStages); |