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

Unified Diff: gm/beziereffects.cpp

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: bug fix 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
« no previous file with comments | « no previous file | gm/convexpolyeffect.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/beziereffects.cpp
diff --git a/gm/beziereffects.cpp b/gm/beziereffects.cpp
index f87560779266a334d443abe90b5c3a9ad090ff79..6f19ac93e7c25d1fd6c0ee2a5f6a4ee1f8ea4772 100644
--- a/gm/beziereffects.cpp
+++ b/gm/beziereffects.cpp
@@ -92,7 +92,7 @@ protected:
continue;
}
GrPrimitiveEdgeType et = (GrPrimitiveEdgeType)edgeType;
- gp.reset(GrCubicEffect::Create(et, *tt.target()->caps()));
+ gp.reset(GrCubicEffect::Create(0xff000000, et, *tt.target()->caps()));
if (!gp) {
continue;
}
@@ -166,7 +166,6 @@ protected:
ds.setGeometryProcessor(gp);
ds.setRenderTarget(rt);
- ds.setColor(0xff000000);
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer());
tt.target()->drawIndexed(&ds, kTriangleFan_GrPrimitiveType, 0, 0, 4, 6);
@@ -252,7 +251,7 @@ protected:
continue;
}
GrPrimitiveEdgeType et = (GrPrimitiveEdgeType)edgeType;
- gp.reset(GrConicEffect::Create(et, *tt.target()->caps()));
+ gp.reset(GrConicEffect::Create(0xff000000, et, *tt.target()->caps()));
if (!gp) {
continue;
}
@@ -323,7 +322,6 @@ protected:
ds.setGeometryProcessor(gp);
ds.setRenderTarget(rt);
- ds.setColor(0xff000000);
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer());
tt.target()->drawIndexed(&ds, kTriangleFan_GrPrimitiveType, 0, 0, 4, 6);
@@ -443,7 +441,7 @@ protected:
continue;
}
GrPrimitiveEdgeType et = (GrPrimitiveEdgeType)edgeType;
- gp.reset(GrQuadEffect::Create(et, *tt.target()->caps()));
+ gp.reset(GrQuadEffect::Create(0xff000000, et, *tt.target()->caps()));
if (!gp) {
continue;
}
@@ -509,7 +507,6 @@ protected:
ds.setGeometryProcessor(gp);
ds.setRenderTarget(rt);
- ds.setColor(0xff000000);
tt.target()->setIndexSourceToBuffer(context->getQuadIndexBuffer());
tt.target()->drawIndexed(&ds, kTriangles_GrPrimitiveType, 0, 0, 4, 6);
« no previous file with comments | « no previous file | gm/convexpolyeffect.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698