aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkCanvas.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/core/SkCanvas.h')
-rw-r--r--include/core/SkCanvas.h9
1 files changed, 2 insertions, 7 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
index 9445f1736a..058979d0f7 100644
--- a/include/core/SkCanvas.h
+++ b/include/core/SkCanvas.h
@@ -283,7 +283,7 @@ public:
/** Returns the number of matrix/clip states on the SkCanvas' private stack.
This will equal # save() calls - # restore() calls.
*/
- int getSaveCount() const;
+ virtual int getSaveCount() const;
/** Efficient way to pop any calls to save() that happened after the save
count reached saveCount. It is an error for saveCount to be less than
@@ -850,7 +850,7 @@ public:
This does not account for the translate in any of the devices.
@return The current matrix on the canvas.
*/
- const SkMatrix& getTotalMatrix() const;
+ virtual const SkMatrix& getTotalMatrix() const;
enum ClipType {
kEmpty_ClipType = 0,
@@ -936,11 +936,6 @@ protected:
virtual void commonDrawBitmap(const SkBitmap&, const SkIRect*,
const SkMatrix&, const SkPaint& paint);
- // Clip rectangle bounds. Used internally by saveLayer.
- // returns false if the entire rectangle is clipped out
- bool clipRectBounds(const SkRect* bounds, SaveFlags flags,
- SkIRect* intersection);
-
private:
class MCRec;