Index: src/gpu/gl/GrGpuGL.h |
diff --git a/src/gpu/gl/GrGpuGL.h b/src/gpu/gl/GrGpuGL.h |
index d75c36601c141850617b5ccbb4304810ac7771a5..f548af5f6aabd4cecd853f1c6af289287e478b46 100644 |
--- a/src/gpu/gl/GrGpuGL.h |
+++ b/src/gpu/gl/GrGpuGL.h |
@@ -42,22 +42,22 @@ public: |
virtual void discard(GrRenderTarget*) SK_OVERRIDE; |
- // Used by GrGLProgram and GrGLTexGenProgramEffects to configure OpenGL state. |
+ // Used by GrGLProgram and GrGLPathTexGenProgramEffects to configure OpenGL |
+ // state. |
void bindTexture(int unitIdx, const GrTextureParams& params, GrGLTexture* texture); |
void setProjectionMatrix(const SkMatrix& matrix, |
const SkISize& renderTargetSize, |
GrSurfaceOrigin renderTargetOrigin); |
- enum TexGenComponents { |
- kS_TexGenComponents = 1, |
- kST_TexGenComponents = 2, |
- kSTR_TexGenComponents = 3 |
+ enum PathTexGenComponents { |
+ kS_PathTexGenComponents = 1, |
+ kST_PathTexGenComponents = 2, |
+ kSTR_PathTexGenComponents = 3 |
}; |
- void enableTexGen(int unitIdx, TexGenComponents, const GrGLfloat* coefficients); |
- void enableTexGen(int unitIdx, TexGenComponents, const SkMatrix& matrix); |
- void flushTexGenSettings(int numUsedTexCoordSets); |
+ void enablePathTexGen(int unitIdx, PathTexGenComponents, const GrGLfloat* coefficients); |
+ void enablePathTexGen(int unitIdx, PathTexGenComponents, const SkMatrix& matrix); |
+ void flushPathTexGenSettings(int numUsedTexCoordSets); |
bool shouldUseFixedFunctionTexturing() const { |
- return this->glCaps().fixedFunctionSupport() && |
- this->glCaps().pathRenderingSupport(); |
+ return this->glCaps().pathRenderingSupport(); |
} |
bool programUnitTest(int maxStages); |
@@ -446,13 +446,13 @@ private: |
GrRenderTarget* fHWBoundRenderTarget; |
SkTArray<GrTexture*, true> fHWBoundTextures; |
- struct TexGenData { |
+ struct PathTexGenData { |
GrGLenum fMode; |
GrGLint fNumComponents; |
GrGLfloat fCoefficients[3 * 3]; |
}; |
- int fHWActiveTexGenSets; |
- SkTArray<TexGenData, true> fHWTexGenSettings; |
+ int fHWActivePathTexGenSets; |
+ SkTArray<PathTexGenData, true> fHWPathTexGenSettings; |
///@} |
// we record what stencil format worked last time to hopefully exit early |