diff options
author | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-23 22:39:18 +0000 |
---|---|---|
committer | reed@google.com <reed@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-02-23 22:39:18 +0000 |
commit | 7d7ca79c3e6e6be7b7849b0d9a7fe26effb89c38 (patch) | |
tree | 969719eac27d43e12078dbf7f13a70959d242469 /include/core | |
parent | dca7acb2fe2df8db7b1e665f9e49677cb96e9c9c (diff) |
add fClipStack optional field to SkDraw (it is always set by canvas)
git-svn-id: http://skia.googlecode.com/svn/trunk@844 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkCanvas.h | 6 | ||||
-rw-r--r-- | include/core/SkDraw.h | 4 |
2 files changed, 9 insertions, 1 deletions
diff --git a/include/core/SkCanvas.h b/include/core/SkCanvas.h index c19fd2f463..1e153078c7 100644 --- a/include/core/SkCanvas.h +++ b/include/core/SkCanvas.h @@ -727,6 +727,12 @@ public: */ const SkRegion& getTotalClip() const; + /** + * Return the current clipstack. This mirrors the result in getTotalClip() + * but is represented as a stack of geometric clips + region-ops. + */ + const SkClipStack& getTotalClipStack() const; + void setExternalMatrix(const SkMatrix* = NULL); /////////////////////////////////////////////////////////////////////////// diff --git a/include/core/SkDraw.h b/include/core/SkDraw.h index 2c0fa491c3..1c4a621378 100644 --- a/include/core/SkDraw.h +++ b/include/core/SkDraw.h @@ -26,6 +26,7 @@ #include "SkAutoKern.h" class SkBounder; +class SkClipStack; class SkDevice; class SkPath; class SkRegion; @@ -59,7 +60,7 @@ public: const SkColor colors[], SkXfermode* xmode, const uint16_t indices[], int ptCount, const SkPaint& paint) const; - + void drawPath(const SkPath& src, const SkPaint& paint) const { this->drawPath(src, paint, NULL, false); } @@ -84,6 +85,7 @@ public: const SkMatrix* fMatrix; // required const SkRegion* fClip; // required + const SkClipStack* fClipStack; // optional SkDevice* fDevice; // optional SkBounder* fBounder; // optional SkDrawProcs* fProcs; // optional |