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

Unified Diff: gm/color4f.cpp

Issue 2093763003: Change SkColor4f to RGBA channel order (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Reorder Pin arguments, too Created 4 years, 6 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 | include/core/SkColor.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/color4f.cpp
diff --git a/gm/color4f.cpp b/gm/color4f.cpp
index 5a516a569b640a4119faef643b877ac11b86c1fe..b3be57bdf9d0525e3b805391bfdbd09c94d22ffd 100644
--- a/gm/color4f.cpp
+++ b/gm/color4f.cpp
@@ -99,10 +99,10 @@ DEF_SIMPLE_GM(color4shader, canvas, 1024, 260) {
mat.set3x3(0, 1, 0, 0, 0, 1, 1, 0, 0);
const SkColor4f colors[] {
- { 1, 1, 0, 0 },
- { 1, 0, 1, 0 },
{ 1, 0, 0, 1 },
- { 1, 0.5, 0.5, 0.5 },
+ { 0, 1, 0, 1 },
+ { 0, 0, 1, 1 },
+ { 0.5, 0.5, 0.5, 1 },
};
SkPaint paint;
« no previous file with comments | « no previous file | include/core/SkColor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698