aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar Mike Reed <reed@google.com>2017-08-06 22:29:57 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-07 02:49:29 +0000
commit35ee0e09b4966bd087147e2c9b4c3177e9737d3b (patch)
treeed5b262a1dd16a47c0bb6f000635ba2fdb1cd9cb /gm
parentb2a5973d0248bcf810ce7f1a6f93a209af7a0348 (diff)
clean up useage of SkFloatBits
Bug: skia: Change-Id: I6d3a0019f2fcf11feca69123e4ce6eb35de43613 Reviewed-on: https://skia-review.googlesource.com/31222 Commit-Queue: Mike Reed <reed@google.com> Reviewed-by: Florin Malita <fmalita@chromium.org>
Diffstat (limited to 'gm')
-rw-r--r--gm/gamut.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/gamut.cpp b/gm/gamut.cpp
index 9339aa8274..abb7735138 100644
--- a/gm/gamut.cpp
+++ b/gm/gamut.cpp
@@ -41,7 +41,7 @@ protected:
struct BitmapCellRenderer : public CellRenderer {
BitmapCellRenderer(SkColor color, SkFilterQuality quality, float scale = 1.0f)
: fQuality(quality) {
- int scaledSize = SkFloatToIntRound(scale * gRectSize);
+ int scaledSize = sk_float_round2int(scale * gRectSize);
fBitmap.allocPixels(SkImageInfo::MakeS32(scaledSize, scaledSize, kPremul_SkAlphaType));
fBitmap.eraseColor(color);
const char* qualityNames[] = { "None", "Low", "Medium", "High" };