OLD | NEW |
1 #ifndef SkRecorder_DEFINED | 1 #ifndef SkRecorder_DEFINED |
2 #define SkRecorder_DEFINED | 2 #define SkRecorder_DEFINED |
3 | 3 |
4 #include "SkCanvas.h" | 4 #include "SkCanvas.h" |
5 #include "SkRecord.h" | 5 #include "SkRecord.h" |
6 #include "SkRecords.h" | 6 #include "SkRecords.h" |
7 | 7 |
8 // SkRecorder provides an SkCanvas interface for recording into an SkRecord. | 8 // SkRecorder provides an SkCanvas interface for recording into an SkRecord. |
9 | 9 |
10 class SkRecorder : public SkCanvas { | 10 class SkRecorder : public SkCanvas { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 | 50 |
51 void didConcat(const SkMatrix&); | 51 void didConcat(const SkMatrix&); |
52 void didSetMatrix(const SkMatrix&); | 52 void didSetMatrix(const SkMatrix&); |
53 | 53 |
54 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); | 54 void onDrawDRRect(const SkRRect&, const SkRRect&, const SkPaint&); |
55 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
); | 55 void onClipRect(const SkRect& rect, SkRegion::Op op, ClipEdgeStyle edgeStyle
); |
56 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle); | 56 void onClipRRect(const SkRRect& rrect, SkRegion::Op op, ClipEdgeStyle edgeSt
yle); |
57 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
); | 57 void onClipPath(const SkPath& path, SkRegion::Op op, ClipEdgeStyle edgeStyle
); |
58 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op); | 58 void onClipRegion(const SkRegion& deviceRgn, SkRegion::Op op); |
59 | 59 |
| 60 void onPushCull(const SkRect& cullRect); |
| 61 void onPopCull(); |
| 62 |
60 private: | 63 private: |
61 template <typename T> | 64 template <typename T> |
62 T* copy(const T*); | 65 T* copy(const T*); |
63 | 66 |
64 template <typename T> | 67 template <typename T> |
65 T* copy(const T[], unsigned count); | 68 T* copy(const T[], unsigned count); |
66 | 69 |
67 SkRecord* fRecord; | 70 SkRecord* fRecord; |
68 }; | 71 }; |
69 | 72 |
70 #endif//SkRecorder_DEFINED | 73 #endif//SkRecorder_DEFINED |
OLD | NEW |