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

Unified Diff: gm/lighting.cpp

Issue 1262703002: make tests portable by using 565 compatible colors (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix dstreadshuffle text portable gm Created 5 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
« no previous file with comments | « gm/imagefilterscropped.cpp ('k') | gm/matriximagefilter.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/lighting.cpp
diff --git a/gm/lighting.cpp b/gm/lighting.cpp
index 6df58516b2b5f4f7118e3e24513be926ddfa065e..b721fef6c3aef2c2ed396d46cc9cf8a345503bf2 100644
--- a/gm/lighting.cpp
+++ b/gm/lighting.cpp
@@ -58,9 +58,9 @@ protected:
make_bitmap();
fInitialized = true;
}
- canvas->clear(0xFF101010);
+ canvas->clear(sk_tool_utils::color_to_565(0xFF101010));
SkPaint checkPaint;
- checkPaint.setColor(0xFF202020);
+ checkPaint.setColor(sk_tool_utils::color_to_565(0xFF202020));
for (int y = 0; y < HEIGHT; y += 16) {
for (int x = 0; x < WIDTH; x += 16) {
canvas->save();
« no previous file with comments | « gm/imagefilterscropped.cpp ('k') | gm/matriximagefilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698