Lines Matching refs:draw
18 // overall structure, bodies that draw something and model/clip state changes.
26 // Body methods only directly emit draw ops and saveLayer/restore pairs but call
28 // be collapsed (i.e., draw ops, saveLayer/restore) they also generate the
64 input.draw(&debugCanvas);
98 // TODO: implement the rest of the draw ops
134 // saveLayer's have to handled apart from the other draw operations
142 DrawOpType draw, SkTDArray<DrawType>* expected,
145 ClipType clip, DrawOpType draw,
148 ClipType clip, PFEmitBody emitBody, DrawOpType draw,
283 static void emit_draw(SkCanvas* canvas, DrawOpType draw, SkTDArray<DrawType>* expected) {
284 switch (draw) {
326 DrawOpType draw, SkTDArray<DrawType>* expected,
331 if (kNone_DrawOpType == draw) {
347 DrawOpType draw, SkTDArray<DrawType>* expected,
352 if (kNone_DrawOpType == draw) {
370 DrawOpType draw, SkTDArray<DrawType>* expected,
377 if (kNone_DrawOpType == draw) {
395 DrawOpType draw, SkTDArray<DrawType>* expected,
401 if (kNone_DrawOpType == draw) {
416 // draw op
418 ClipType clip, DrawOpType draw,
420 bool needsSaveRestore = kNone_DrawOpType != draw &&
426 (*emitMC)(canvas, mat, clip, draw, expected, accumulatedClips+1);
427 emit_draw(canvas, draw, expected);
435 // draw op
437 // draw op
439 ClipType clip, DrawOpType draw,
441 bool needsSaveRestore = kNone_DrawOpType != draw &&
447 (*emitMC)(canvas, mat, clip, draw, expected, accumulatedClips+1);
448 emit_draw(canvas, draw, expected);
453 (*emitMC)(canvas, mat, clip, draw, expected, accumulatedClips+2);
454 emit_draw(canvas, draw, expected);
464 // draw op
467 ClipType clip, DrawOpType draw,
469 bool needsSaveRestore = kNone_DrawOpType != draw &&
482 (*emitMC)(canvas, mat, clip, draw, expected, 1);
483 emit_draw(canvas, draw, expected);
500 // draw op
505 ClipType clip, DrawOpType draw,
507 bool needsSaveRestore = kNone_DrawOpType != draw &&
527 (*emitMC)(canvas, mat, clip, draw, expected, 1);
528 emit_draw(canvas, draw, expected);
554 PFEmitBody emitBody, DrawOpType draw,
556 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 0);
570 PFEmitBody emitBody, DrawOpType draw,
572 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these get fused into later ops
574 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1);
576 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these will get removed
593 PFEmitBody emitBody, DrawOpType draw,
595 (*emitMC)(canvas, mat, clip, draw, nullptr, 1); // these will get fused into later ops
597 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1);
600 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1);
602 (*emitMC)(canvas, mat, clip, draw, nullptr, 1); // these will get removed
622 PFEmitBody emitBody, DrawOpType draw,
624 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these will get fused into later ops
626 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1);
629 (*emitMC)(canvas, mat, clip, draw, nullptr, 1); // these will get fused into later ops
631 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 2);
634 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these will get removed