Lines Matching refs:mat
141 typedef void (*PFEmitMC)(SkCanvas* canvas, MatType mat, ClipType clip,
144 typedef void (*PFEmitBody)(SkCanvas* canvas, PFEmitMC emitMC, MatType mat,
147 typedef void (*PFEmitStruct)(SkCanvas* canvas, PFEmitMC emitMC, MatType mat,
194 static void add_clip(ClipType clip, MatType mat, SkTDArray<DrawType>* expected) { in add_clip() argument
224 static void emit_mat(SkCanvas* canvas, MatType mat) { in emit_mat() argument
225 switch (mat) { in emit_mat()
257 static void add_mat(MatType mat, SkTDArray<DrawType>* expected) { in add_mat() argument
263 switch (mat) { in add_mat()
325 static void emit_clip_and_mat(SkCanvas* canvas, MatType mat, ClipType clip, in emit_clip_and_mat() argument
329 emit_mat(canvas, mat); in emit_clip_and_mat()
336 add_clip(clip, mat, expected); in emit_clip_and_mat()
338 add_mat(mat, expected); in emit_clip_and_mat()
346 static void emit_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, in emit_mat_and_clip() argument
349 emit_mat(canvas, mat); in emit_mat_and_clip()
358 add_clip(clip, mat, expected); in emit_mat_and_clip()
360 add_mat(mat, expected); in emit_mat_and_clip()
369 static void emit_double_mat_and_clip(SkCanvas* canvas, MatType mat, ClipType clip, in emit_double_mat_and_clip() argument
372 emit_mat(canvas, mat); in emit_double_mat_and_clip()
374 emit_mat(canvas, mat); in emit_double_mat_and_clip()
382 add_clip(clip, mat, expected); in emit_double_mat_and_clip()
383 add_clip(clip, mat, expected); in emit_double_mat_and_clip()
385 add_mat(mat, expected); in emit_double_mat_and_clip()
394 static void emit_mat_clip_clip(SkCanvas* canvas, MatType mat, ClipType clip, in emit_mat_clip_clip() argument
397 emit_mat(canvas, mat); in emit_mat_clip_clip()
406 add_clip(clip, mat, expected); in emit_mat_clip_clip()
407 add_clip(clip, mat, expected); in emit_mat_clip_clip()
409 add_mat(mat, expected); in emit_mat_clip_clip()
417 static void emit_body0(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, in emit_body0() argument
421 (kNone_MatType != mat || kNone_ClipType != clip); in emit_body0()
426 (*emitMC)(canvas, mat, clip, draw, expected, accumulatedClips+1); in emit_body0()
438 static void emit_body1(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, in emit_body1() argument
442 (kNone_MatType != mat || kNone_ClipType != clip); in emit_body1()
447 (*emitMC)(canvas, mat, clip, draw, expected, accumulatedClips+1); in emit_body1()
453 (*emitMC)(canvas, mat, clip, draw, expected, accumulatedClips+2); in emit_body1()
466 static void emit_body2(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, in emit_body2() argument
470 (kNone_MatType != mat || kNone_ClipType != clip); in emit_body2()
472 if (kNone_MatType != mat || kNone_ClipType != clip) { in emit_body2()
475 (*emitMC)(canvas, mat, clip, kSaveLayer_DrawOpType, expected, accumulatedClips+1); in emit_body2()
482 (*emitMC)(canvas, mat, clip, draw, expected, 1); in emit_body2()
489 if (kNone_MatType != mat || kNone_ClipType != clip) { in emit_body2()
504 static void emit_body3(SkCanvas* canvas, PFEmitMC emitMC, MatType mat, in emit_body3() argument
508 (kNone_MatType != mat || kNone_ClipType != clip); in emit_body3()
510 if (kNone_MatType != mat || kNone_ClipType != clip) { in emit_body3()
513 (*emitMC)(canvas, mat, clip, kSaveLayer_DrawOpType, expected, accumulatedClips+1); in emit_body3()
517 (*emitMC)(canvas, mat, clip, kSaveLayer_DrawOpType, expected, 1); in emit_body3()
518 if (kNone_MatType != mat || kNone_ClipType != clip) { in emit_body3()
527 (*emitMC)(canvas, mat, clip, draw, expected, 1); in emit_body3()
534 if (kNone_MatType != mat || kNone_ClipType != clip) { in emit_body3()
540 if (kNone_MatType != mat || kNone_ClipType != clip) { in emit_body3()
553 PFEmitMC emitMC, MatType mat, ClipType clip, in emit_struct0() argument
556 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 0); in emit_struct0()
569 PFEmitMC emitMC, MatType mat, ClipType clip, in emit_struct1() argument
572 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these get fused into later ops in emit_struct1()
574 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1); in emit_struct1()
576 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these will get removed in emit_struct1()
592 PFEmitMC emitMC, MatType mat, ClipType clip, in emit_struct2() argument
595 (*emitMC)(canvas, mat, clip, draw, nullptr, 1); // these will get fused into later ops in emit_struct2()
597 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1); in emit_struct2()
600 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1); in emit_struct2()
602 (*emitMC)(canvas, mat, clip, draw, nullptr, 1); // these will get removed in emit_struct2()
621 PFEmitMC emitMC, MatType mat, ClipType clip, in emit_struct3() argument
624 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these will get fused into later ops in emit_struct3()
626 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 1); in emit_struct3()
629 (*emitMC)(canvas, mat, clip, draw, nullptr, 1); // these will get fused into later ops in emit_struct3()
631 (*emitBody)(canvas, emitMC, mat, clip, draw, expected, 2); in emit_struct3()
634 (*emitMC)(canvas, mat, clip, draw, nullptr, 0); // these will get removed in emit_struct3()