aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/DrawPathTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/DrawPathTest.cpp')
-rw-r--r--tests/DrawPathTest.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/DrawPathTest.cpp b/tests/DrawPathTest.cpp
index 9f440f6231..40f4a047b2 100644
--- a/tests/DrawPathTest.cpp
+++ b/tests/DrawPathTest.cpp
@@ -36,10 +36,7 @@ static void test_big_aa_rect(skiatest::Reporter* reporter) {
output.setConfig(SkBitmap::kARGB_8888_Config, 1, 1, 4);
output.setPixels(pixel);
- SkImage::Info info = {
- 300, 33300, SkImage::kPMColor_ColorType, SkImage::kPremul_AlphaType
- };
- SkSurface* surf = SkSurface::NewRaster(info);
+ SkSurface* surf = SkSurface::NewRasterPMColor(300, 33300);
SkCanvas* canvas = surf->getCanvas();
SkRect r = { 0, 33000, 300, 33300 };