Index: gm/gmmain.cpp |
=================================================================== |
--- gm/gmmain.cpp (revision 10994) |
+++ gm/gmmain.cpp (working copy) |
@@ -536,7 +536,7 @@ |
SkAutoTUnref<SkCanvas> canvas; |
if (gRec.fBackend == kRaster_Backend) { |
- SkAutoTUnref<SkDevice> device(SkNEW_ARGS(SkDevice, (*bitmap))); |
+ SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (*bitmap))); |
if (deferred) { |
canvas.reset(SkDeferredCanvas::Create(device)); |
} else { |
@@ -547,7 +547,7 @@ |
} |
#if SK_SUPPORT_GPU |
else { // GPU |
- SkAutoTUnref<SkDevice> device(SkGpuDevice::Create(gpuTarget)); |
+ SkAutoTUnref<SkBaseDevice> device(SkGpuDevice::Create(gpuTarget)); |
if (deferred) { |
canvas.reset(SkDeferredCanvas::Create(device)); |
} else { |