Index: tests/ReadWriteAlphaTest.cpp |
diff --git a/tests/ReadWriteAlphaTest.cpp b/tests/ReadWriteAlphaTest.cpp |
index 6bcc51faf206afc12e420b82540949bafd8f5dc0..966bc7f901f120dd2ea756dc97663154ec44a09a 100644 |
--- a/tests/ReadWriteAlphaTest.cpp |
+++ b/tests/ReadWriteAlphaTest.cpp |
@@ -82,8 +82,8 @@ DEF_GPUTEST(ReadWriteAlpha, reporter, factory) { |
REPORTER_ASSERT(reporter, match); |
// Now try writing on the single channel texture |
- SkAutoTUnref<SkBaseDevice> device(SkGpuDevice::Create(texture->asRenderTarget(), |
- SkSurfaceProps(SkSurfaceProps::kLegacyFontHost_InitType))); |
+ SkSurfaceProps props(SkSurfaceProps::kLegacyFontHost_InitType); |
+ SkAutoTUnref<SkBaseDevice> device(SkGpuDevice::Create(texture->asRenderTarget(), &props)); |
SkCanvas canvas(device); |
SkPaint paint; |