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

Unified Diff: gm/imageblur.cpp

Issue 1243493003: make glyph_pos imageblur* largeglyphblur portable (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove unused field 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/glyph_pos.cpp ('k') | gm/imageblurtiled.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imageblur.cpp
diff --git a/gm/imageblur.cpp b/gm/imageblur.cpp
index c7139b4f65b054fc96b05863282d5c751ecc0ecd..d0f1fd1803ebc5cdea9a5aae9b890740029bdad9 100644
--- a/gm/imageblur.cpp
+++ b/gm/imageblur.cpp
@@ -41,11 +41,11 @@ protected:
SkRandom rand;
SkPaint textPaint;
textPaint.setAntiAlias(true);
- sk_tool_utils::set_portable_typeface(&textPaint);
+ sk_tool_utils::set_portable_typeface_always(&textPaint);
for (int i = 0; i < 25; ++i) {
int x = rand.nextULessThan(WIDTH);
int y = rand.nextULessThan(HEIGHT);
- textPaint.setColor(rand.nextBits(24) | 0xFF000000);
+ textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000));
reed1 2015/07/16 21:14:04 Does this actually result in zero-diffs, given tha
caryclark 2015/07/17 12:42:30 No, but it reduces the number of diffs. I've large
textPaint.setTextSize(rand.nextRangeScalar(0, 300));
canvas->drawText(str, strlen(str), SkIntToScalar(x),
SkIntToScalar(y), textPaint);
« no previous file with comments | « gm/glyph_pos.cpp ('k') | gm/imageblurtiled.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698