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

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

Issue 229523002: SkRecord: make culling work if SkRecordAnnotateCullingPairs is called. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: rebase 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/SkRecorder.cpp ('k') | tests/RecordCullingTest.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 SkRecords_DEFINED 1 #ifndef SkRecords_DEFINED
2 #define SkRecords_DEFINED 2 #define SkRecords_DEFINED
3 3
4 #include "SkCanvas.h" 4 #include "SkCanvas.h"
5 5
6 namespace SkRecords { 6 namespace SkRecords {
7 7
8 // A list of all the types of canvas calls we can record. 8 // A list of all the types of canvas calls we can record.
9 // Each of these is reified into a struct below. 9 // Each of these is reified into a struct below.
10 // 10 //
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 }; 120 };
121 121
122 // Pointers here represent either an optional value or an array if accompanied b y a count. 122 // Pointers here represent either an optional value or an array if accompanied b y a count.
123 // None of these records manages the lifetimes of pointers, except for DrawVerti ces handling its 123 // None of these records manages the lifetimes of pointers, except for DrawVerti ces handling its
124 // Xfermode specially. 124 // Xfermode specially.
125 125
126 RECORD0(Restore); 126 RECORD0(Restore);
127 RECORD1(Save, SkCanvas::SaveFlags, flags); 127 RECORD1(Save, SkCanvas::SaveFlags, flags);
128 RECORD3(SaveLayer, SkRect*, bounds, SkPaint*, paint, SkCanvas::SaveFlags, flags) ; 128 RECORD3(SaveLayer, SkRect*, bounds, SkPaint*, paint, SkCanvas::SaveFlags, flags) ;
129 129
130 RECORD1(PushCull, SkRect, rect); 130 static const unsigned kUnsetPopOffset = 0;
131 RECORD2(PushCull, SkRect, rect, unsigned, popOffset);
131 RECORD0(PopCull); 132 RECORD0(PopCull);
132 133
133 RECORD1(Concat, SkMatrix, matrix); 134 RECORD1(Concat, SkMatrix, matrix);
134 RECORD1(SetMatrix, SkMatrix, matrix); 135 RECORD1(SetMatrix, SkMatrix, matrix);
135 136
136 RECORD3(ClipPath, SkPath, path, SkRegion::Op, op, bool, doAA); 137 RECORD3(ClipPath, SkPath, path, SkRegion::Op, op, bool, doAA);
137 RECORD3(ClipRRect, SkRRect, rrect, SkRegion::Op, op, bool, doAA); 138 RECORD3(ClipRRect, SkRRect, rrect, SkRegion::Op, op, bool, doAA);
138 RECORD3(ClipRect, SkRect, rect, SkRegion::Op, op, bool, doAA); 139 RECORD3(ClipRect, SkRect, rect, SkRegion::Op, op, bool, doAA);
139 RECORD2(ClipRegion, SkRegion, region, SkRegion::Op, op); 140 RECORD2(ClipRegion, SkRegion, region, SkRegion::Op, op);
140 141
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 #undef RECORD0 206 #undef RECORD0
206 #undef RECORD1 207 #undef RECORD1
207 #undef RECORD2 208 #undef RECORD2
208 #undef RECORD3 209 #undef RECORD3
209 #undef RECORD4 210 #undef RECORD4
210 #undef RECORD5 211 #undef RECORD5
211 212
212 } // namespace SkRecords 213 } // namespace SkRecords
213 214
214 #endif//SkRecords_DEFINED 215 #endif//SkRecords_DEFINED
OLDNEW
« no previous file with comments | « src/record/SkRecorder.cpp ('k') | tests/RecordCullingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698