Index: samplecode/SampleLayerMask.cpp |
diff --git a/samplecode/SampleLayerMask.cpp b/samplecode/SampleLayerMask.cpp |
index 2e70833e0bebf5a21551fdf9c5d9420122f04f0e..33c06d1cb2c770d63753ad04b337e736c8e1c7d9 100644 |
--- a/samplecode/SampleLayerMask.cpp |
+++ b/samplecode/SampleLayerMask.cpp |
@@ -34,8 +34,8 @@ protected: |
if (true) { |
SkBitmap mask; |
- int w = SkScalarRound(r.width()); |
- int h = SkScalarRound(r.height()); |
+ int w = SkScalarRoundToInt(r.width()); |
+ int h = SkScalarRoundToInt(r.height()); |
mask.setConfig(SkBitmap::kARGB_8888_Config, w, h); |
mask.allocPixels(); |
mask.eraseColor(SK_ColorTRANSPARENT); |