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

Unified Diff: gm/transparency.cpp

Issue 1263553002: make pixelsnap textblob* etc gm portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add more 565 compatibility 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/textblobshader.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/transparency.cpp
diff --git a/gm/transparency.cpp b/gm/transparency.cpp
index 1a6275e2a22a249da8d31defe06cc2d9672d1ef2..62c277a691c7fedef6c2ebc29206e71571229846 100644
--- a/gm/transparency.cpp
+++ b/gm/transparency.cpp
@@ -63,7 +63,8 @@ static void checkerboard(SkCanvas* canvas, SkColor c1, SkColor c2, int size) {
* checkerboard pattern looks correct.
*/
DEF_SIMPLE_GM(transparency_check, canvas, 1792, 1080) {
- checkerboard(canvas, 0xFF999999, 0xFF666666, 8);
+ checkerboard(canvas, sk_tool_utils::color_to_565(0xFF999999),
+ sk_tool_utils::color_to_565(0xFF666666), 8);
{
SkAutoCanvasRestore autoCanvasRestore(canvas, true);
SkAutoTUnref<SkSurface> surface(SkSurface::NewRasterN32Premul(256, 9));
« no previous file with comments | « gm/textblobshader.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698