Index: samplecode/SampleApp.cpp |
diff --git a/samplecode/SampleApp.cpp b/samplecode/SampleApp.cpp |
index 29233d03910448e72a8572dfd482e9dd613e88f0..34d1b9736047807fbe671b2a7d53eca88aea7835 100644 |
--- a/samplecode/SampleApp.cpp |
+++ b/samplecode/SampleApp.cpp |
@@ -275,7 +275,7 @@ public: |
SampleWindow* win) { |
#if SK_SUPPORT_GPU |
if (IsGpuDeviceType(dType) && NULL != fCurContext) { |
- SkAutoTUnref<SkBaseDevice> device(new SkGpuDevice(fCurContext, fCurRenderTarget)); |
+ SkAutoTUnref<SkBaseDevice> device(SkGpuDevice::Create(fCurRenderTarget)); |
return new SkCanvas(device); |
} else |
#endif |