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

Unified Diff: gm/avoidxfermode.cpp

Issue 1658623002: Add gpu implementation of SkAvoidXfermode (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Address comments Created 4 years, 11 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 | gm/avoidxfermode2.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/avoidxfermode.cpp
diff --git a/gm/avoidxfermode.cpp b/gm/avoidxfermode.cpp
index 0d681cb143c61554959f465cb15d770262411dec..a015b6bbe7085e8c01fcf3719ce06523dfe29bb2 100644
--- a/gm/avoidxfermode.cpp
+++ b/gm/avoidxfermode.cpp
@@ -67,9 +67,9 @@ protected:
r.offsetTo(0.0f, 64);
- // LL corner: replace red with blue with a loose tolerance
+ // LL corner: replace red with transparent blue with a loose tolerance
SkPaint p3;
- p3.setColor(SK_ColorBLUE);
+ p3.setColor(0x7F0000FF);
p3.setXfermode(SkAvoidXfermode::Create(SK_ColorRED,
250,
SkAvoidXfermode::kTargetColor_Mode))->unref();
« no previous file with comments | « no previous file | gm/avoidxfermode2.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698