Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 91952c3050002d8d4ee35d59546786a8452fe223..8e675b42fc49c738d808f27e101fdf9257e66375 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -122,6 +122,13 @@ public: |
*/ |
SkImageInfo imageInfo() const; |
+ /** |
+ * If the canvas is backed by pixels (cpu or gpu), this writes a copy of the SurfaceProps |
+ * for the canvas to the location supplied by the caller, and returns true. Otherwise, |
+ * return false and leave the supplied props unchanged. |
+ */ |
+ bool getProps(SkSurfaceProps*) const; |
+ |
/////////////////////////////////////////////////////////////////////////// |
/** |