Lines Matching defs:context
42 static void release_direct_surface_storage(void* pixels, void* context) {
43 SkASSERT(pixels == context);
98 auto context = ctxInfo.directContext();
107 bool can = context->colorTypeSupportedAsSurface(colorType);
108 auto surf = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, 1, nullptr);
112 surf = sk_gpu_test::MakeBackendTextureSurface(context,
122 if (context->colorTypeSupportedAsSurface(colorType)) {
125 bool can = context->maxSurfaceSampleCountForColorType(colorType) >= kSampleCnt;
126 auto surf = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, info, kSampleCnt,
132 context, {kSize, kSize}, kTopLeft_GrSurfaceOrigin, kSampleCnt, colorType);
142 context->priv().caps()->getRenderTargetSampleCount(storedCnt, format);
150 auto surf = sk_gpu_test::MakeBackendRenderTargetSurface(context,
155 bool can = context->colorTypeSupportedAsSurface(colorType) &&
156 context->maxSurfaceSampleCountForColorType(colorType) >= sampleCnt;
158 context->backend() == GrBackendApi::kOpenGL) {
174 int allowedCnt = context->priv().caps()->getRenderTargetSampleCount(storedCnt,
185 auto context = ctxInfo.directContext();
192 int maxSampleCnt = context->maxSurfaceSampleCountForColorType(colorType);
196 if (!context->colorTypeSupportedAsSurface(colorType)) {
202 context, info, kTopLeft_GrSurfaceOrigin, maxSampleCnt);
382 // after we abanonded the context. One thing specifically this checks is to make sure we're
404 // After abandoning the context none of the backend surfaces should be valid.
809 ERRORF(reporter, "Could access surface context of GPU SkSurface.");
828 ERRORF(reporter, "Could access surface context of GPU SkSurface.");
891 auto context = ctxInfo.directContext();
900 auto surface = surfaceFunc(context, 1, kOrigColor);
901 if (surface && supports_readpixels(context->priv().caps(), surface.get())) {
983 auto context = ctxInfo.directContext();
984 const GrCaps* caps = context->priv().caps();
992 auto resourceProvider = context->priv().resourceProvider();
997 auto surface = surfaceFunc(context, sampleCnt, kOrigColor);
1015 auto context = ctxInfo.directContext();
1020 context, ii, GrMipmapped::kNo, GrRenderable::kYes);
1025 context, ii, GrMipmapped::kNo, GrRenderable::kYes);
1032 context, ii2, GrMipmapped::kNo, GrRenderable::kYes);
1040 context, mbet1->texture(), kTopLeft_GrSurfaceOrigin, sampleCnt,
1076 context, mbet1->texture(), kBottomLeft_GrSurfaceOrigin, sampleCnt,
1105 surf = SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, ii, sampleCnt, nullptr);
1134 auto context = ctxInfo.directContext();
1135 sk_sp<SkSurface> surface = create_gpu_surface(context);