Index: experimental/PdfViewer/src/SkPdfRenderer.cpp |
diff --git a/experimental/PdfViewer/src/SkPdfRenderer.cpp b/experimental/PdfViewer/src/SkPdfRenderer.cpp |
index 6a9fd74aba343f30630ca57e3d4bd2b9050b1bbe..b77a43ee3c7e5efbceb5c4ee320980f1f29bf300 100644 |
--- a/experimental/PdfViewer/src/SkPdfRenderer.cpp |
+++ b/experimental/PdfViewer/src/SkPdfRenderer.cpp |
@@ -7,7 +7,6 @@ |
#include "SkPdfRenderer.h" |
-#include "SkBitmapDevice.h" |
#include "SkCanvas.h" |
#include "SkColorPriv.h" |
#include "SkDevice.h" |
@@ -2910,8 +2909,7 @@ bool SkPDFNativeRenderToBitmap(SkStream* stream, |
setup_bitmap(output, SkScalarCeilToInt(width), SkScalarCeilToInt(height)); |
- SkAutoTUnref<SkBaseDevice> device(SkNEW_ARGS(SkBitmapDevice, (*output))); |
- SkCanvas canvas(device); |
+ SkCanvas canvas(*output); |
return renderer->renderPage(page, &canvas, rect); |
} |