diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index 94801842f4..45db96f045 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -106,12 +106,6 @@ public: */ SkDevice* getTopDevice(bool updateMatrixClip = false) const; - /** - * Create a new raster device and make it current. This also returns - * the new device. - */ - SkDevice* setBitmapDevice(const SkBitmap& bitmap); - /** * Shortcut for getDevice()->createCompatibleDevice(...). * If getDevice() == NULL, this method does nothing, and returns NULL. diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp index 1f8d6af10f..1cd29f3d6a 100644 --- a/src/core/SkCanvas.cpp +++ b/src/core/SkCanvas.cpp @@ -614,12 +614,6 @@ SkDevice* SkCanvas::setDevice(SkDevice* device) { return device; } -SkDevice* SkCanvas::setBitmapDevice(const SkBitmap& bitmap) { - SkDevice* device = this->setDevice(SkNEW_ARGS(SkDevice, (bitmap))); - device->unref(); - return device; -} - bool SkCanvas::readPixels(SkBitmap* bitmap, int x, int y, Config8888 config8888) {