Index: include/core/SkDevice.h |
diff --git a/include/core/SkDevice.h b/include/core/SkDevice.h |
index 55b08a762c46dcbbad4f63b1b3aea1769cd64fb9..c15aeccf82dc52786b6899cfcdbfabc885fe9e36 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 |