aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-10 21:09:33 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-04-10 21:09:33 +0000
commit55c9b4e9f645bba196b142ae7783ac61822adfd7 (patch)
treeacb31c139b301e4541e114ecab216de3d454d3b6
parent6573ce70e609f19923cea401d4ca3ea1528a78f1 (diff)
Cast int to float.
Get rid of warning->error. TBR=reed@google.com NOTRY=true NOTREECHECKS=true Author: scroggo@google.com Review URL: https://codereview.chromium.org/233883002 git-svn-id: http://skia.googlecode.com/svn/trunk@14140 2bbb7eff-a529-9590-31e7-b0007b416f81
-rw-r--r--tests/LayerRasterizerTest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/LayerRasterizerTest.cpp b/tests/LayerRasterizerTest.cpp
index b393525fe1..8e6b64c207 100644
--- a/tests/LayerRasterizerTest.cpp
+++ b/tests/LayerRasterizerTest.cpp
@@ -85,7 +85,7 @@ DEF_TEST(LayerRasterizer_copy, reporter) {
// Create a bunch of paints with different flags.
for (uint32_t flags = 0x01; flags < SkPaint::kAllFlags; flags <<= 1) {
paint.setFlags(flags);
- builder.addLayer(paint, flags, flags);
+ builder.addLayer(paint, static_cast<SkScalar>(flags), static_cast<SkScalar>(flags));
}
// Create a layer rasterizer with all the existing layers.