Lines Matching defs:context
43 GrContext* context = texture->getContext();
45 // Attach our texture to this context's resource cache. This ensures that deletion will happen
46 // in the correct thread/context. This adds the only ref to the texture that will persist from
48 context->contextPriv().getResourceCache()->insertCrossContextGpuResource(texture.get());
55 info, texture.get(), origin, context->uniqueID(), std::move(semaphore), backendTexture));
89 GrContext* context, const SkImageInfo& info, const SkIPoint& origin,
91 SkASSERT(context);
93 if (context->contextPriv().getBackend() != fBackendTexture.backend()) {
97 auto proxyProvider = context->contextPriv().proxyProvider();
102 if (fRefHelper->fBorrowingContextID != context->uniqueID()) {
119 fRefHelper->fBorrowingContextID = context->uniqueID();
122 SkASSERT(fRefHelper->fBorrowingContextID == context->uniqueID());
157 // We just gained access to the texture. If we're on the original context, we
160 // informs us that the context is done with it. This is unfortunate - we'll have
188 sk_sp<GrRenderTargetContext> rtContext(context->makeDeferredRenderTargetContext(