diff options
Diffstat (limited to 'include/core/SkDevice.h')
-rw-r--r-- | include/core/SkDevice.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h index 55b08a762c..c15aeccf82 100644 --- a/include/core/SkDevice.h +++ b/include/core/SkDevice.h @@ -41,6 +41,13 @@ public: virtual SkImageInfo imageInfo() const; /** + * Return SurfaceProps for this device. + */ + const SkSurfaceProps& surfaceProps() const { + return fSurfaceProps; + } + + /** * Return the bounds of the device in the coordinate space of the root * canvas. The root device will have its top-left at 0,0, but other devices * such as those associated with saveLayer may have a non-zero origin. @@ -317,10 +324,6 @@ protected: virtual bool onAccessPixels(SkPixmap*) { return false; } - const SkSurfaceProps& surfaceProps() const { - return fSurfaceProps; - } - /** * PRIVATE / EXPERIMENTAL -- do not call * This entry point gives the backend an opportunity to take over the rendering |