Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(319)

Unified Diff: src/gpu/effects/GrCustomCoordsTextureEffect.h

Issue 783763002: Initial CL to move color / coverage off of drawstate (Closed) Base URL: https://skia.googlesource.com/skia.git@no-static-gp
Patch Set: todo added Created 6 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/gpu/effects/GrCustomCoordsTextureEffect.h
diff --git a/src/gpu/effects/GrCustomCoordsTextureEffect.h b/src/gpu/effects/GrCustomCoordsTextureEffect.h
index a2b62ed3b80f3bb0c002ba80105a90e28db65f6a..77524c8f424af12e72c087de90029a1c7757d652 100644
--- a/src/gpu/effects/GrCustomCoordsTextureEffect.h
+++ b/src/gpu/effects/GrCustomCoordsTextureEffect.h
@@ -21,8 +21,9 @@ class GrInvariantOutput;
*/
class GrCustomCoordsTextureEffect : public GrGeometryProcessor {
public:
- static GrGeometryProcessor* Create(GrTexture* tex, const GrTextureParams& p, bool hasColor) {
- return SkNEW_ARGS(GrCustomCoordsTextureEffect, (tex, p, hasColor));
+ static GrGeometryProcessor* Create(GrColor color, GrTexture* tex, const GrTextureParams& p,
+ bool hasColor) {
+ return SkNEW_ARGS(GrCustomCoordsTextureEffect, (color, tex, p, hasColor));
}
virtual ~GrCustomCoordsTextureEffect() {}
@@ -40,7 +41,8 @@ public:
virtual GrGLGeometryProcessor* createGLInstance(const GrBatchTracker& bt) const SK_OVERRIDE;
private:
- GrCustomCoordsTextureEffect(GrTexture* texture, const GrTextureParams& params, bool hasColor);
+ GrCustomCoordsTextureEffect(GrColor, GrTexture* texture, const GrTextureParams& params,
+ bool hasColor);
virtual bool onIsEqual(const GrGeometryProcessor& other) const SK_OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698