Index: experimental/PdfViewer/SkPdfRenderer.cpp |
=================================================================== |
--- experimental/PdfViewer/SkPdfRenderer.cpp (revision 10994) |
+++ experimental/PdfViewer/SkPdfRenderer.cpp (working copy) |
@@ -352,7 +352,7 @@ |
memcpy(bitmap.getPixels(), gDumpBitmap->getPixels(), gDumpBitmap->getSize()); |
- SkAutoTUnref<SkDevice> device(SkNEW_ARGS(SkDevice, (bitmap))); |
+ SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (bitmap))); |
SkCanvas canvas(device); |
// draw context stuff here |
@@ -2909,7 +2909,7 @@ |
setup_bitmap(output, (int)SkScalarToDouble(width), (int)SkScalarToDouble(height)); |
- SkAutoTUnref<SkDevice> device(SkNEW_ARGS(SkDevice, (*output))); |
+ SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (*output))); |
SkCanvas canvas(device); |
return renderer.renderPage(page, &canvas, rect); |