From 78e276889795454891cbba48ab11927968114953 Mon Sep 17 00:00:00 2001 From: reed Date: Wed, 19 Nov 2014 08:04:34 -0800 Subject: Allow pictures to have a full bounds This reverts commit 7c4cdd2c5b7b6c71fa0e7612594f7885f2dbf264. BUG=skia: Review URL: https://codereview.chromium.org/738083002 --- include/core/SkDevice.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/core/SkDevice.h') 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; -- cgit v1.2.3