diff options
Diffstat (limited to 'include/core/SkDraw.h')
-rw-r--r-- | include/core/SkDraw.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/include/core/SkDraw.h b/include/core/SkDraw.h index a86ef67..fb2f292 100644 --- a/include/core/SkDraw.h +++ b/include/core/SkDraw.h @@ -33,12 +33,12 @@ struct SkDrawProcs; class SkDraw { public: - SkDraw() : fDevice(NULL), fBounder(NULL), fProcs(NULL) {} + SkDraw(); SkDraw(const SkDraw& src); void drawPaint(const SkPaint&) const; void drawPoints(SkCanvas::PointMode, size_t count, const SkPoint[], - const SkPaint&) const; + const SkPaint&, bool forceUseDevice = false) const; void drawRect(const SkRect&, const SkPaint&) const; /* To save on mallocs, we allow a flag that tells us that srcPath is mutable, so that we don't have to make copies of it as we transform it. @@ -86,12 +86,18 @@ public: const SkBitmap* fBitmap; // required const SkMatrix* fMatrix; // required const SkRegion* fClip; // required + SkDevice* fDevice; // optional SkBounder* fBounder; // optional SkDrawProcs* fProcs; // optional + const SkMatrix* fMVMatrix; // optional + const SkMatrix* fExtMatrix; // optional + #ifdef SK_DEBUG - void validate() const; + void validate() const; +#else + void validate() const {} #endif }; |