Lines Matching refs:SkSurface

20 #include "include/core/SkSurface.h"
225 sk_sp<SkSurface> make(GrDirectContext* dContext) const {
244 sk_sp<SkSurface> result = SkSurface::MakeFromBackendRenderTarget(dContext, backendRT,
258 sk_sp<SkSurface> surface;
288 surface->getBackendTexture(SkSurface::kFlushRead_BackendHandleAccess);
380 // This tests SkSurfaceCharacterization/SkSurface compatibility
390 // First, create a DDL using the stock SkSurface parameters
399 // The DDL should draw into an SkSurface created with the same parameters
400 sk_sp<SkSurface> s = params.make(dContext);
418 sk_sp<SkSurface> s = params.make(dContext);
432 sk_sp<SkSurface> s = params.make(dContext);
464 sk_sp<SkSurface> s = params.make(dContext);
476 sk_sp<SkSurface> rasterSurface = SkSurface::MakeRaster(ii);
485 sk_sp<SkSurface> s = params.make(dContext);
512 sk_sp<SkSurface> s = params.make(dContext);
553 sk_sp<SkSurface> s = params.make(dContext);
591 sk_sp<SkSurface> s = params.make(dContext);
655 sk_sp<SkSurface> surfaces[4];
672 surfaces[index] = SkSurface::MakeFromBackendRenderTarget(context, backendRT,
753 sk_sp<SkSurface> s = params.make(context);
773 sk_sp<SkSurface> tmp = params.make(dContext);
782 sk_sp<SkSurface> s = params.make(dContext);
790 GrBackendTexture backend = s->getBackendTexture(SkSurface::kFlushRead_BackendHandleAccess);
798 // Make an SkSurface from scratch
800 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(dContext, c, SkBudgeted::kYes);
807 // This tests the SkSurface::MakeRenderTarget variants that take an SkSurfaceCharacterization.
808 // In particular, the SkSurface, backendTexture and SkSurfaceCharacterization
862 sk_sp<SkSurface> s = params.make(dContext);
901 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(dContext, SkBudgeted::kNo, ii);
1026 // Test that flushing a DDL via SkSurface::flush works
1049 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, ii);
1097 s->flush(SkSurface::BackendSurfaceAccess::kPresent, flushInfo);
1118 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, ii);
1148 // The lazy proxy data being different ensures that the SkSurface, SkCanvas and backing-
1181 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, ii);