Index: tests/ImageFilterTest.cpp |
diff --git a/tests/ImageFilterTest.cpp b/tests/ImageFilterTest.cpp |
index 59504cf702882168605b38bd667282fc361afab1..41af2437826b2181adf34c0d853c2e97dd9104da 100644 |
--- a/tests/ImageFilterTest.cpp |
+++ b/tests/ImageFilterTest.cpp |
@@ -296,7 +296,9 @@ DEF_TEST(ImageFilterMatrixTest, reporter) { |
#if SK_SUPPORT_GPU |
DEF_GPUTEST(ImageFilterCropRectGPU, reporter, factory) { |
GrContext* context = factory->get(static_cast<GrContextFactory::GLContextType>(0)); |
- SkGpuDevice device(context, SkBitmap::kARGB_8888_Config, 100, 100); |
- test_crop_rects(&device, reporter); |
+ SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(context, |
+ SkImageInfo::MakeN32Premul(100, 100), |
+ 0)); |
+ test_crop_rects(device, reporter); |
} |
#endif |