| Index: include/core/SkCanvas.h
|
| diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h
|
| index ec14829ca85296d12d79d27a04073c6ee587c20e..c1134aca4ddbaf4464b78b40f22b168b07efd990 100644
|
| --- a/include/core/SkCanvas.h
|
| +++ b/include/core/SkCanvas.h
|
| @@ -444,6 +444,17 @@ public:
|
| */
|
| void resetMatrix();
|
|
|
| + /** Set the current draw depth of the canvas.
|
| + @param z The SkScalar depth; it's tracked in the save/restore stack.
|
| + Negative into screen, positive out of screen.
|
| + Defaults to 0.
|
| + */
|
| + void setZ(SkScalar z);
|
| +
|
| + /** Returns the current draw depth of the canvas.
|
| + */
|
| + SkScalar getZ() const;
|
| +
|
| /**
|
| * Modify the current clip with the specified rectangle.
|
| * @param rect The rect to combine with the current clip
|
| @@ -1307,6 +1318,7 @@ protected:
|
| virtual void didRestore() {}
|
| virtual void didConcat(const SkMatrix&) {}
|
| virtual void didSetMatrix(const SkMatrix&) {}
|
| + virtual void didSetZ(SkScalar) {}
|
|
|
| virtual void onDrawAnnotation(const SkRect&, const char key[], SkData* value);
|
| virtual void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&);
|
|
|