Lines Matching defs:context
83 GrSurfaceProxyView GrAHardwareBufferImageGenerator::makeView(GrRecordingContext* context) {
84 if (context->abandoned()) {
88 auto direct = context->asDirectContext();
103 auto proxyProvider = context->priv().proxyProvider();
180 GrSwizzle readSwizzle = context->priv().caps()->getReadSwizzle(backendFormat, grColorType);
186 GrRecordingContext* context,
191 GrSurfaceProxyView texProxyView = this->makeView(context);
209 return GrSurfaceProxyView::Copy(context, std::move(texProxyView), mipMapped, subset,
213 bool GrAHardwareBufferImageGenerator::onIsValid(GrRecordingContext* context) const {
214 if (nullptr == context) {
217 return GrBackendApi::kOpenGL == context->backend() ||
218 GrBackendApi::kVulkan == context->backend();