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

Unified Diff: tests/CanvasStateTest.cpp

Issue 23539005: fix windows test error for CanvasStateTest.cpp (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/CanvasStateTest.cpp
diff --git a/tests/CanvasStateTest.cpp b/tests/CanvasStateTest.cpp
index bb7d9e2b07d3a38d39daef8aa863cc7f06ebda79..c6756a732e9c3adb4579b96d69a88124b0747eaa 100644
--- a/tests/CanvasStateTest.cpp
+++ b/tests/CanvasStateTest.cpp
@@ -21,7 +21,9 @@ static void test_complex_layers(skiatest::Reporter* reporter) {
const int HEIGHT = 400;
const int SPACER = 10;
- SkRect rect = SkRect::MakeXYWH(SPACER, SPACER, WIDTH-(2*SPACER), (HEIGHT-(2*SPACER)) / 7);
+ SkRect rect = SkRect::MakeXYWH(SkIntToScalar(SPACER), SkIntToScalar(SPACER),
+ SkIntToScalar(WIDTH-(2*SPACER)),
+ SkIntToScalar((HEIGHT-(2*SPACER)) / 7));
const SkBitmap::Config configs[] = { SkBitmap::kRGB_565_Config,
SkBitmap::kARGB_8888_Config
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698