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:
parent
ffad46b264
commit
dde646afb5
@ -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.
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user