aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/animatedGif.cpp
diff options
context:
space:
mode:
authorGravatar Jim Van Verth <jvanverth@google.com>2016-10-26 09:45:23 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2016-10-26 14:16:28 +0000
commit3cfdf6c8b1f0c6ebe59ddd0d2750976c2dd1921d (patch)
treea9da426b3cf45907ce948eaef085ac0d0780473e /gm/animatedGif.cpp
parentf2361d2d93c200cd4555b5e8ecea4531801abaaa (diff)
Fix some Windows warnings
BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=3980 Change-Id: Icfc5dfb985b966c625d9bc81f61719ac5549085e Reviewed-on: https://skia-review.googlesource.com/3980 Reviewed-by: Matt Sarett <msarett@google.com> Commit-Queue: Jim Van Verth <jvanverth@google.com>
Diffstat (limited to 'gm/animatedGif.cpp')
-rw-r--r--gm/animatedGif.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/gm/animatedGif.cpp b/gm/animatedGif.cpp
index 6f7f0ddd1b..03bf66c526 100644
--- a/gm/animatedGif.cpp
+++ b/gm/animatedGif.cpp
@@ -103,7 +103,7 @@ private:
SkAutoCanvasRestore acr(canvas, true);
for (size_t frameIndex = 0; frameIndex < fTotalFrames; frameIndex++) {
this->drawFrame(canvas, frameIndex);
- canvas->translate(fCodec->getInfo().width(), 0);
+ canvas->translate(SkIntToScalar(fCodec->getInfo().width()), 0);
}
}
}
@@ -142,7 +142,7 @@ private:
}
SkAutoCanvasRestore acr(canvas, true);
- canvas->translate(0, fCodec->getInfo().height());
+ canvas->translate(0, SkIntToScalar(fCodec->getInfo().height()));
this->drawFrame(canvas, fFrame);
}