Index: include/utils/SkDeferredCanvas.h |
diff --git a/include/utils/SkDeferredCanvas.h b/include/utils/SkDeferredCanvas.h |
index 31ebce48b3720cae5b644edfeadf7d379e8da877..526bec1a4323202ec63f7cfbc5f8bbad02e20a5d 100644 |
--- a/include/utils/SkDeferredCanvas.h |
+++ b/include/utils/SkDeferredCanvas.h |
@@ -131,6 +131,7 @@ public: |
* rendered using the deferred canvas. |
*/ |
void setBitmapSizeThreshold(size_t sizeThreshold); |
+ size_t getBitmapSizeThreshold() const { return fBitmapSizeThreshold; } |
/** |
* Executes all pending commands without drawing |
@@ -240,7 +241,9 @@ private: |
bool isFullFrame(const SkRect*, const SkPaint*) const; |
void validate() const; |
void init(); |
- bool fDeferredDrawing; |
+ |
+ size_t fBitmapSizeThreshold; |
+ bool fDeferredDrawing; |
friend class SkDeferredCanvasTester; // for unit testing |
typedef SkCanvas INHERITED; |