Lines Matching defs:surf
47 static void fill_surface(SkSurface* surf, SkColorType colorType, PackUnpremulProc proc) {
60 surf->writePixels({info, bmp.getPixels(), bmp.rowBytes()}, 0, 0);
63 static void test_premul_alpha_roundtrip(skiatest::Reporter* reporter, SkSurface* surf) {
65 fill_surface(surf, gUnpremul[upmaIdx].fColorType, gUnpremul[upmaIdx].fPackProc);
77 surf->readPixels(readBmp1, 0, 0);
78 surf->writePixels(readBmp1, 0, 0);
79 surf->readPixels(readBmp2, 0, 0);
99 sk_sp<SkSurface> surf(SkSurface::MakeRaster(info));
101 test_premul_alpha_roundtrip(reporter, surf.get());
106 sk_sp<SkSurface> surf(SkSurface::MakeRenderTarget(ctxInfo.directContext(),
108 test_premul_alpha_roundtrip(reporter, surf.get());
128 GrPixmap surf = GrPixmap::Allocate(pmInfo);
129 GrConvertPixels(surf, src);
132 GrConvertPixels(read1, surf);
147 SkDebugf(" -> : %08x\n", get_pixel(surf, x, y));
189 SkBitmap surf; surf.allocPixels(pmInfo);
190 convert(surf, src);
193 convert(read1, surf);
204 SkDebugf(" -> : %08x\n", *surf.getAddr32(x, y));