Lines Matching refs:record
33 // Record two commands.
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::Concat> (r, record, 2);
50 assert_type<SkRecords::Restore> (r, record, 3);
56 REPORTER_ASSERT(r, 4 == record.count());
60 // Record two commands.
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, SkMatrix::I()); // replay just drawRect of r2
184 SkRecord record;
185 SkRecorder recorder(&record, 50, 50);
205 SkAutoTMalloc<SkRect> bounds(record.count());
206 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds);
219 SkRecord record;
220 SkRecorder recorder(&record, 50, 50);
230 SkAutoTMalloc<SkRect> bounds(record.count());
231 SkRecordFillBounds(SkRect::MakeWH(50, 50), record, bounds);
270 SkRecord record;
271 SkRecorder recorder(&record, 10, 10);
273 SkRecordDraw(record, &canvas, nullptr, nullptr, 0, nullptr, nullptr);
279 SkRecord record;
280 SkRecorder recorder(&record, 10, 10);
282 SkRecordDraw(record, &canvas, nullptr, nullptr, 0, nullptr, nullptr);