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

Unified Diff: src/gpu/GrPathRenderer.h

Issue 2126083002: Remove fColor from PathRenderer DrawPathArgs struct (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months 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/GrPathRenderer.h
diff --git a/src/gpu/GrPathRenderer.h b/src/gpu/GrPathRenderer.h
index 96e603f07526267979809833dea7cb385bdb63a5..3b677acff3d23b895f56d19a808bd9aad0727c90 100644
--- a/src/gpu/GrPathRenderer.h
+++ b/src/gpu/GrPathRenderer.h
@@ -130,7 +130,6 @@ public:
GrDrawContext* fDrawContext;
const GrClip* fClip;
- GrColor fColor;
const SkMatrix* fViewMatrix;
const GrShape* fShape;
bool fAntiAlias;
@@ -275,13 +274,13 @@ private:
);
GrPaint paint;
+ paint.setColor4f(GrColor4f(1.0f, 1.0f, 1.0f, 1.0f));
DrawPathArgs drawArgs;
drawArgs.fResourceProvider = args.fResourceProvider;
drawArgs.fPaint = &paint;
drawArgs.fUserStencilSettings = &kIncrementStencil;
drawArgs.fDrawContext = args.fDrawContext;
- drawArgs.fColor = GrColor_WHITE;
drawArgs.fViewMatrix = args.fViewMatrix;
drawArgs.fShape = args.fShape;
drawArgs.fAntiAlias = false; // In this case the MSAA handles the AA so we want to draw BW

Powered by Google App Engine
This is Rietveld 408576698