Index: include/core/SkCanvas.h |
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h |
index 5088d7ded5268b9e86808c3c7d0148c7bcc891a4..5542dd49c1e66e3ec0e904d3ecf93a1f47ba1cf1 100644 |
--- a/include/core/SkCanvas.h |
+++ b/include/core/SkCanvas.h |
@@ -16,6 +16,7 @@ |
#include "SkRefCnt.h" |
#include "SkPath.h" |
#include "SkRegion.h" |
+#include "SkSurfaceProps.h" |
#include "SkXfermode.h" |
#ifdef SK_SUPPORT_LEGACY_DRAWTEXT_VIRTUAL |
@@ -135,7 +136,7 @@ public: |
@param bitmap Specifies a bitmap for the canvas to draw into. Its |
structure are copied to the canvas. |
*/ |
- explicit SkCanvas(const SkBitmap& bitmap); |
+ SkCanvas(const SkBitmap& bitmap, const SkSurfaceProps* = NULL); |
virtual ~SkCanvas(); |
SkMetaData& getMetaData(); |
@@ -1282,6 +1283,8 @@ private: |
// the first N recs that can fit here mean we won't call malloc |
uint32_t fMCRecStorage[32]; |
+ const SkSurfaceProps fProps; |
+ |
int fSaveLayerCount; // number of successful saveLayer calls |
int fCullCount; // number of active culls |