Lines Matching defs:surface
194 auto surface = SkSurface::MakeRasterDirect(make_pixmap_have_valid_alpha_type(result));
195 if (!surface) {
203 surface->getCanvas()->drawPaint(paint);
209 surface->getCanvas()->drawPaint(paint);
223 surface->getCanvas()->drawPaint(paint);
295 // Considering the rect we tried to read and the surface bounds figure out which pixels in
485 [direct](const Surface& surface, const SkIPoint& offset, const SkPixmap& pixels) {
486 if (surface->readPixels(direct, pixels, offset)) {
493 !caps.isFormatRenderable(surface->asSurfaceProxy()->backendFormat(), 1)) {
574 [](const Surface& surface, const SkIPoint& offset, const SkPixmap& pixels) {
575 auto direct = surface->recordingContext()->asDirectContext();
583 surface->asyncRescaleAndReadPixels(pixels.info(), rect,
761 // destroy the test context. The surface here is holding a ref.
1064 [direct](const Surface& surface, const SkIPoint& offset, const SkPixmap& pixels) {
1065 if (surface->writePixels(direct, pixels, offset)) {