257 {
"Save(Layer)+Restore",
270 r.drawRect({5, 5, 15, 15});
271 r.drawRect({10, 10, 20, 20});
278 r.drawRect({5, 5, 15, 15});
279 r.drawRect({10, 10, 20, 20});
286 r.drawRect({5, 5, 15, 15});
287 r.drawRect({10, 10, 20, 20});
294 r.drawRect({5, 5, 15, 15});
295 r.drawRect({10, 10, 20, 20});
302 r.drawRect({5, 5, 15, 15});
303 r.drawRect({10, 10, 20, 20});
311 r.drawRect({5, 5, 15, 15});
312 r.drawRect({10, 10, 20, 20});
320 r.drawRect({5, 5, 15, 15});
321 r.drawRect({10, 10, 20, 20});
329 r.drawRect({5, 5, 15, 15});
330 r.drawRect({10, 10, 20, 20});
338 r.drawRect({5, 5, 15, 15});
339 r.drawRect({10, 10, 20, 20});
350 {1, 16, 0, [](
DlOpReceiver& r) { r.translate(10, 10); }},
351 {1, 16, 0, [](
DlOpReceiver& r) { r.translate(10, 15); }},
352 {1, 16, 0, [](
DlOpReceiver& r) { r.translate(15, 10); }},
376 {
"Transform2DAffine",
379 [](
DlOpReceiver& r) { r.transform2DAffine(0, 1, 12, 1, 0, 33); }},
382 [](
DlOpReceiver& r) { r.transform2DAffine(1, 0, 0, 0, 1, 0); }},
384 {
"TransformFullPerspective",
388 r.transformFullPerspective(0, 1, 0, 12, 1, 0, 0, 33, 3, 2, 5, 29,
394 r.transformFullPerspective(2, 1, 0, 4, 1, 3, 0, 5, 0, 0, 1, 0, 0,
400 r.transformFullPerspective(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0,
522 r.drawLine({0, 0}, {10, 10});
526 r.drawLine({0, 1}, {10, 10});
530 r.drawLine({0, 0}, {20, 10});
534 r.drawLine({0, 0}, {10, 20});
541 r.drawRect({0, 0, 10, 10});
545 r.drawRect({0, 1, 10, 10});
549 r.drawRect({0, 0, 20, 10});
553 r.drawRect({0, 0, 10, 20});
560 r.drawOval({0, 0, 10, 10});
564 r.drawOval({0, 1, 10, 10});
568 r.drawOval({0, 0, 20, 10});
572 r.drawOval({0, 0, 10, 20});
579 r.drawCircle({0, 0}, 10);
583 r.drawCircle({0, 5}, 10);
587 r.drawCircle({0, 0}, 20);
703 r.drawImageRect(
TestImage1, {10, 10, 20, 20}, {10, 10, 80, 80},
709 r.drawImageRect(
TestImage1, {10, 10, 20, 20}, {10, 10, 80, 80},
715 r.drawImageRect(
TestImage1, {10, 10, 20, 20}, {10, 10, 80, 80},
721 r.drawImageRect(
TestImage1, {10, 10, 25, 20}, {10, 10, 80, 80},
727 r.drawImageRect(
TestImage1, {10, 10, 20, 20}, {10, 10, 85, 80},
733 r.drawImageRect(
TestImage1, {10, 10, 20, 20}, {10, 10, 80, 80},
739 r.drawImageRect(
TestImage2, {10, 10, 15, 15}, {10, 10, 80, 80},
746 r.drawImageRect(dl_image, {10, 10, 15, 15}, {10, 10, 80, 80},
755 r.drawImageNine(
TestImage1, {10, 10, 20, 20}, {10, 10, 80, 80},
760 r.drawImageNine(
TestImage1, {10, 10, 20, 20}, {10, 10, 80, 80},
765 r.drawImageNine(
TestImage1, {10, 10, 25, 20}, {10, 10, 80, 80},
770 r.drawImageNine(
TestImage1, {10, 10, 20, 20}, {10, 10, 85, 80},
775 r.drawImageNine(
TestImage1, {10, 10, 20, 20}, {10, 10, 80, 80},
780 r.drawImageNine(
TestImage2, {10, 10, 15, 15}, {10, 10, 80, 80},
786 r.drawImageNine(dl_image, {10, 10, 15, 15}, {10, 10, 80, 80},
794 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
795 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
796 r.drawAtlas(
TestImage1, xforms, texs,
nullptr, 2,
802 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
803 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
804 r.drawAtlas(
TestImage1, xforms, texs,
nullptr, 2,
809 static SkRSXform xforms[] = {{0, 1, 0, 0}, {0, 1, 0, 0}};
810 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
811 r.drawAtlas(
TestImage1, xforms, texs,
nullptr, 2,
817 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
818 static SkRect texs[] = {{10, 10, 20, 20}, {20, 25, 30, 30}};
819 r.drawAtlas(
TestImage1, xforms, texs,
nullptr, 2,
825 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
826 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
827 r.drawAtlas(
TestImage1, xforms, texs,
nullptr, 2,
832 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
833 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
834 r.drawAtlas(
TestImage1, xforms, texs,
nullptr, 2,
840 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
841 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
842 static SkRect cull_rect = {0, 0, 200, 200};
843 r.drawAtlas(
TestImage2, xforms, texs,
nullptr, 2,
847 {1, 48 + 32 + 8 + 8, 1,
849 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
850 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
852 r.drawAtlas(
TestImage1, xforms, texs, colors, 2,
856 {1, 64 + 32 + 8 + 8, 1,
858 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
859 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
861 static SkRect cull_rect = {0, 0, 200, 200};
862 r.drawAtlas(
TestImage1, xforms, texs, colors, 2,
869 static SkRSXform xforms[] = {{1, 0, 0, 0}, {0, 1, 0, 0}};
870 static SkRect texs[] = {{10, 10, 20, 20}, {20, 20, 30, 30}};
871 r.drawAtlas(dl_image, xforms, texs,
nullptr, 2,