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); |