aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/gpu/GrEffect.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/gpu/GrEffect.h')
-rw-r--r--include/gpu/GrEffect.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/include/gpu/GrEffect.h b/include/gpu/GrEffect.h
index 4734c7c377..09d716f80a 100644
--- a/include/gpu/GrEffect.h
+++ b/include/gpu/GrEffect.h
@@ -114,10 +114,10 @@ public:
/** Will this effect emit custom vertex shader code?
(To set this value the effect must inherit from GrEffect.) */
- bool hasVertexCode() const { return fHasVertexCode; }
+ bool requiresVertexShader() const { return fRequiresVertexShader; }
int numVertexAttribs() const {
- SkASSERT(0 == fVertexAttribTypes.count() || fHasVertexCode);
+ SkASSERT(0 == fVertexAttribTypes.count() || fRequiresVertexShader);
return fVertexAttribTypes.count();
}
@@ -166,7 +166,7 @@ protected:
: fWillReadDstColor(false)
, fWillReadFragmentPosition(false)
, fWillUseInputColor(true)
- , fHasVertexCode(false) {}
+ , fRequiresVertexShader(false) {}
/**
* Helper for down-casting to a GrEffect subclass
@@ -204,7 +204,7 @@ private:
getFactory()).*/
virtual bool onIsEqual(const GrEffect& other) const = 0;
- friend class GrVertexEffect; // to set fHasVertexCode and build fVertexAttribTypes.
+ friend class GrVertexEffect; // to set fRequiresVertexShader and build fVertexAttribTypes.
SkSTArray<4, const GrCoordTransform*, true> fCoordTransforms;
SkSTArray<4, const GrTextureAccess*, true> fTextureAccesses;
@@ -212,7 +212,7 @@ private:
bool fWillReadDstColor;
bool fWillReadFragmentPosition;
bool fWillUseInputColor;
- bool fHasVertexCode;
+ bool fRequiresVertexShader;
typedef SkRefCnt INHERITED;
};