aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkDevice.h
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2014-11-19 08:04:34 -0800
committerGravatar Commit bot <commit-bot@chromium.org>2014-11-19 08:04:34 -0800
commit78e276889795454891cbba48ab11927968114953 (patch)
tree4ac8a8bdbe12d1fb3a63a37746cb00edd40bc38d /include/core/SkDevice.h
parent7c4cdd2c5b7b6c71fa0e7612594f7885f2dbf264 (diff)
Allow pictures to have a full bounds
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r--include/core/SkDevice.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h
index 471a76be8e..3c26baca5b 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;