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

Unified Diff: gm/imageblur2.cpp

Issue 1257773002: rename portable_typeface_always to portable_typeface (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove unncessary change to path test 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/gm.cpp ('k') | gm/pixelsnap.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/imageblur2.cpp
diff --git a/gm/imageblur2.cpp b/gm/imageblur2.cpp
index 480f09390f27bd5ac999e279793bd960bbcf16a2..58e40961e4b9355f3c7360c4e4788d9be7671e5d 100644
--- a/gm/imageblur2.cpp
+++ b/gm/imageblur2.cpp
@@ -64,7 +64,8 @@ protected:
SkRandom rand;
SkPaint textPaint;
textPaint.setAntiAlias(false);
- textPaint.setColor(rand.nextBits(24) | 0xFF000000);
+ textPaint.setColor(sk_tool_utils::color_to_565(rand.nextBits(24) | 0xFF000000));
+ sk_tool_utils::set_portable_typeface(&textPaint);
textPaint.setTextSize(textSize);
for (int i = 0; i < testStringCount; i++) {
« no previous file with comments | « gm/gm.cpp ('k') | gm/pixelsnap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698