diff options
author | reed <reed@google.com> | 2014-11-19 08:04:34 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2014-11-19 08:04:34 -0800 |
commit | 78e276889795454891cbba48ab11927968114953 (patch) | |
tree | 4ac8a8bdbe12d1fb3a63a37746cb00edd40bc38d /include/core/SkDevice.h | |
parent | 7c4cdd2c5b7b6c71fa0e7612594f7885f2dbf264 (diff) |
Allow pictures to have a full bounds
This reverts commit 7c4cdd2c5b7b6c71fa0e7612594f7885f2dbf264.
BUG=skia:
Review URL: https://codereview.chromium.org/738083002
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r-- | include/core/SkDevice.h | 7 |
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; |