Lines Matching refs:record

34     SkRecord record;
35 SkRecorder recorder(&record, W, H);
37 REPORTER_ASSERT(r, 0 == record.count());
39 REPORTER_ASSERT(r, 0 == record.count()); // the save was not recorded (yet)
41 REPORTER_ASSERT(r, 1 == record.count());
43 REPORTER_ASSERT(r, 3 == record.count()); // now we see the save
45 REPORTER_ASSERT(r, 4 == record.count());
47 assert_type<SkRecords::DrawPaint>(r, record, 0);
48 assert_type<SkRecords::Save> (r, record, 1);
49 assert_type<SkRecords::Scale> (r, record, 2);
50 assert_type<SkRecords::Restore> (r, record, 3);
56 REPORTER_ASSERT(r, 4 == record.count());
61 SkRecord record;
62 SkRecorder recorder(&record, W, H);
70 SkRecordDraw(record, &canvas, nullptr, nullptr, 0, nullptr/*bbh*/, &callback);
77 SkRecord record;
78 SkRecorder recorder(&record, W, H);
84 SkRecordDraw(record, &canvas, nullptr, nullptr, 0, nullptr/*bbh*/, nullptr/*callback*/);
136 SkRecord record;
137 SkRecorder recorder(&record, W, H);
144 SkAutoTMalloc<SkRect> bounds(record.count());
145 SkRecordFillBounds(SkRect::MakeWH(SkIntToScalar(W), SkIntToScalar(H)), record, bounds);
147 for (int i = 0; i < record.count(); i++) {
162 SkRecord record;
163 SkRecorder recorder(&record, kWidth, kHeight);
170 SkRecordPartialDraw(record, &canvas, nullptr, 0, 1, 2, SkM44()); // replay just drawRect of r2
184 SkRecord record;
185 SkRecorder recorder(&record, 50, 50);
207 SkAutoTMalloc<SkRect> bounds(record.count());
208 SkAutoTMalloc<SkBBoxHierarchy::Metadata> meta(record.count());
209 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds, meta);
217 SkRecord record;
218 SkRecorder recorder(&record, 50, 50);
232 SkAutoTMalloc<SkRect> bounds(record.count());
233 SkAutoTMalloc<SkBBoxHierarchy::Metadata> meta(record.count());
234 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds, meta);
251 SkRecord record;
252 SkRecorder recorder(&record, 50, 50);
262 SkAutoTMalloc<SkRect> bounds(record.count());
263 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds);