OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2006 The Android Open Source Project | 3 * Copyright 2006 The Android Open Source Project |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 #ifndef SkDraw_DEFINED | 10 #ifndef SkDraw_DEFINED |
(...skipping 12 matching lines...) Expand all Loading... |
23 class SkPath; | 23 class SkPath; |
24 class SkRegion; | 24 class SkRegion; |
25 class SkRasterClip; | 25 class SkRasterClip; |
26 struct SkDrawProcs; | 26 struct SkDrawProcs; |
27 struct SkRect; | 27 struct SkRect; |
28 class SkRRect; | 28 class SkRRect; |
29 | 29 |
30 class SkDraw { | 30 class SkDraw { |
31 public: | 31 public: |
32 SkDraw(); | 32 SkDraw(); |
33 SkDraw(const SkDraw& src); | |
34 | 33 |
35 void drawPaint(const SkPaint&) const; | 34 void drawPaint(const SkPaint&) const; |
36 void drawPoints(SkCanvas::PointMode, size_t count, const SkPoint[], | 35 void drawPoints(SkCanvas::PointMode, size_t count, const SkPoint[], |
37 const SkPaint&, bool forceUseDevice = false) const; | 36 const SkPaint&, bool forceUseDevice = false) const; |
38 void drawRect(const SkRect& prePaintRect, const SkPaint&, const SkMatrix*
paintMatrix, | 37 void drawRect(const SkRect& prePaintRect, const SkPaint&, const SkMatrix*
paintMatrix, |
39 const SkRect* postPaintRect) const; | 38 const SkRect* postPaintRect) const; |
40 void drawRect(const SkRect& rect, const SkPaint& paint) const { | 39 void drawRect(const SkRect& rect, const SkPaint& paint) const { |
41 this->drawRect(rect, paint, NULL, NULL); | 40 this->drawRect(rect, paint, NULL, NULL); |
42 } | 41 } |
43 void drawRRect(const SkRRect&, const SkPaint&) const; | 42 void drawRRect(const SkRRect&, const SkPaint&) const; |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
155 SkBaseDevice* fDevice; // optional, may be null | 154 SkBaseDevice* fDevice; // optional, may be null |
156 | 155 |
157 #ifdef SK_DEBUG | 156 #ifdef SK_DEBUG |
158 void validate() const; | 157 void validate() const; |
159 #else | 158 #else |
160 void validate() const {} | 159 void validate() const {} |
161 #endif | 160 #endif |
162 }; | 161 }; |
163 | 162 |
164 #endif | 163 #endif |
OLD | NEW |