Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(940)

Side by Side Diff: src/record/SkRecorder.h

Issue 224723026: Add push/pop cull to SkRecord. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/record/SkRecordDraw.h ('k') | src/record/SkRecorder.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « src/record/SkRecordDraw.h ('k') | src/record/SkRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698