re-land removal of setBitmapDevice

git-svn-id: http://skia.googlecode.com/svn/trunk@5746 2bbb7eff-a529-9590-31e7-b0007b416f81
This commit is contained in:
reed@google.com 2012-10-01 14:58:57 +00:00
parent ffad46b264
commit dde646afb5
2 changed files with 0 additions and 12 deletions

View File

@ -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.

View File

@ -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) {