Home | History | Annotate | Download | only in tests

Lines Matching refs:SkSurface

37 #include "SkSurface.h"
159 sk_sp<SkSurface> make(GrContext* context, GrBackendTexture* backend) const {
181 return SkSurface::MakeFromBackendRenderTarget(context, backendRT, fOrigin,
191 sk_sp<SkSurface> surface;
194 surface = SkSurface::MakeFromBackendTextureAsRenderTarget(
198 surface = SkSurface::MakeFromBackendTexture(
282 // This tests SkSurfaceCharacterization/SkSurface compatibility
295 // First, create a DDL using the stock SkSurface parameters
302 // The DDL should draw into an SkSurface created with the same parameters
304 sk_sp<SkSurface> s = params.make(context, &backend);
323 sk_sp<SkSurface> s = params.make(context, &backend);
376 sk_sp<SkSurface> s = params.make(context, &backend);
414 sk_sp<SkSurface> s = params.make(context, &backend);
429 sk_sp<SkSurface> rasterSurface = SkSurface::MakeRaster(ii);
439 sk_sp<SkSurface> s = params.make(context, &backend);
498 sk_sp<SkSurface> s = params.make(context, &backend);
514 // This tests the SkSurface::MakeRenderTarget variant that takes an SkSurfaceCharacterization.
515 // In particular, the SkSurface and the SkSurfaceCharacterization should always be compatible.
527 sk_sp<SkSurface> tmp = params.make(context, &backend);
538 sk_sp<SkSurface> s = params.make(context, &backend);
552 s = SkSurface::MakeRenderTarget(context, c, SkBudgeted::kYes);
589 sk_sp<SkSurface> s = params.make(context, &backend);
648 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, ii);
690 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, ii);
707 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, ii);
737 // The lazy proxy data being different ensures that the SkSurface, SkCanvas and backing-
763 sk_sp<SkSurface> s = SkSurface::MakeRenderTarget(context, SkBudgeted::kNo, ii);
818 sk_sp<SkSurface> tmp = params.make(context, &backend);
829 sk_sp<SkSurface> s = params.make(context, &backend);
843 s = SkSurface::MakeRenderTarget(context, c, SkBudgeted::kYes);