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

Unified Diff: gm/circulararcs.cpp

Issue 2265643002: Rename circular_arcs_circular_arcs_fill to circular_arcs_fill (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Also fix issue with second paint's alpha Created 4 years, 4 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/circulararcs.cpp
diff --git a/gm/circulararcs.cpp b/gm/circulararcs.cpp
index 7bc40de3faecf02ffd5eb27aa1dbba6d702f4554..7214b7d84663189b8f3e46703bd9e62731e22016 100644
--- a/gm/circulararcs.cpp
+++ b/gm/circulararcs.cpp
@@ -26,10 +26,11 @@ void draw_arcs(SkCanvas* canvas, std::function<void(SkPaint*)> configureStyle) {
p0.setAntiAlias(aa);
// Set a reasonable stroke width that configureStyle can override.
p0.setStrokeWidth(15.f);
- // Use alpha so we see magenta on overlap between arc and its complement.
- p0.setAlpha(100);
SkPaint p1 = p0;
p1.setColor(SK_ColorBLUE);
+ // Use alpha so we see magenta on overlap between arc and its complement.
+ p0.setAlpha(100);
+ p1.setAlpha(100);
configureStyle(&p0);
configureStyle(&p1);
@@ -64,7 +65,7 @@ void draw_arcs(SkCanvas* canvas, std::function<void(SkPaint*)> configureStyle) {
#define DEF_ARC_GM(name) DEF_SIMPLE_GM(circular_arcs_##name, canvas, kW, kH)
-DEF_ARC_GM(circular_arcs_fill) {
+DEF_ARC_GM(fill) {
auto setFill = [] (SkPaint*p) { p->setStyle(SkPaint::kFill_Style); };
draw_arcs(canvas, setFill);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698