27 *errorMsg =
"Test only works with canvases backed by CPU pixels";
31 uint32_t colors[] {0xFFFF0000, 0xFF00FF00, 0xFF0000FF};
47 auto surf = canvas->makeSurface(canvas->imageInfo().makeWH(80, 80));
49 auto* c = surf->getCanvas();
52 for (
bool offset : {
false,
true}) {
61 c->translate(imgx->width(), 0);
73 c->translate(3*imgx->width() + 3, imgy->height());
80 c->translate(0, 3*imgy->height() + 3);
85 canvas->drawImage(surf->makeImageSnapshot(), 0, 0);