diff options
Diffstat (limited to 'src/pipe/utils/SamplePipeControllers.cpp')
-rw-r--r-- | src/pipe/utils/SamplePipeControllers.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/pipe/utils/SamplePipeControllers.cpp b/src/pipe/utils/SamplePipeControllers.cpp index ea2c39cff0..b85ceb6790 100644 --- a/src/pipe/utils/SamplePipeControllers.cpp +++ b/src/pipe/utils/SamplePipeControllers.cpp @@ -7,7 +7,6 @@ #include "SamplePipeControllers.h" -#include "SkBitmapDevice.h" #include "SkCanvas.h" #include "SkGPipe.h" #include "SkMatrix.h" @@ -55,9 +54,7 @@ TiledPipeController::TiledPipeController(const SkBitmap& bitmap, SkDEBUGCODE(bool extracted = )bitmap.extractSubset(&fBitmaps[i], rect); SkASSERT(extracted); - SkBaseDevice* device = new SkBitmapDevice(fBitmaps[i]); - SkCanvas* canvas = new SkCanvas(device); - device->unref(); + SkCanvas* canvas = new SkCanvas(fBitmaps[i]); if (initial != NULL) { canvas->setMatrix(*initial); } |