| Index: include/core/SkDevice.h
|
| diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
|
| index 471a76be8eaa82b22992a6e2de4fd58c538ac2e9..3c26baca5b012da04a84b38b470f926e6bb279dc 100644
|
| --- a/include/core/SkDevice.h
|
| +++ b/include/core/SkDevice.h
|
| @@ -53,6 +53,12 @@ public:
|
| bounds->setXYWH(origin.x(), origin.y(), this->width(), this->height());
|
| }
|
|
|
| + SkIRect getGlobalBounds() const {
|
| + SkIRect bounds;
|
| + this->getGlobalBounds(&bounds);
|
| + return bounds;
|
| + }
|
| +
|
| int width() const {
|
| return this->imageInfo().width();
|
| }
|
| @@ -366,6 +372,7 @@ private:
|
| friend class SkDeviceFilteredPaint;
|
| friend class SkDeviceImageFilterProxy;
|
| friend class SkDeferredDevice; // for newSurface
|
| + friend class SkNoPixelsBitmapDevice;
|
|
|
| friend class SkSurface_Raster;
|
|
|
|
|