Home
last modified time | relevance | path

Searched refs:fDContext (Results 1 – 13 of 13) sorted by relevance

/third_party/skia/tools/skottie_ios_app/
DSkiaMetalContext.mm30 GrDirectContext* fDContext;
39 fDContext = dContext;
48 if (!viewController || ![[self currentDrawable] texture] || !fDContext) {
52 sk_sp<SkSurface> surface = SkMtkViewToSurface(self, fDContext);
80 sk_sp<GrDirectContext> fDContext;
91 fDContext = GrDirectContext::MakeMetal((__bridge void*)[self metalDevice],
95 if (!fDContext) {
106 grDevice:fDContext.get()];
DSkiaGLContext.mm61 GrDirectContext* fDContext;
68 fDContext = dContext;
82 if (!(fDContext)) {
86 if (sk_sp<SkSurface> surface = make_gl_surface(fDContext, width, height)) {
110 sk_sp<GrDirectContext> fDContext;
125 fDContext = GrDirectContext::MakeGL(nullptr, GrContextOptions());
127 if (!fDContext) {
137 withDirectContext:fDContext.get()];
/third_party/skia/tests/
DVkDrawableTest.cpp40 , fDContext(dContext) in TestDrawable()
139 td->fDrawContext = GrVkSecondaryCBDrawContext::Make(td->fDContext, bufferInfo, in ImportDraw()
156 sk_sp<SkSurface> surf = SkSurface::MakeRenderTarget(td->fDContext, SkBudgeted::kYes, in ImportDraw()
175 td->fDContext->submit(true); in ImportSubmitted()
184 td->fDContext->releaseResourcesAndAbandonContext(); in ImportSubmitted()
196 if (fDContext) { in onSnapGpuDrawHandler()
215 GrDirectContext* fDContext; member in TestDrawable
DGrThreadSafeCacheTest.cpp118 : fDContext(dContext) in TestHelper()
137 fDContext->flush(); in ~TestHelper()
138 fDContext->submit(true); in ~TestHelper()
145 GrDirectContext* dContext() { return fDContext; } in dContext()
169 GrThreadSafeCache* threadSafeCache() { return fDContext->priv().threadSafeCache(); } in threadSafeCache()
170 const GrThreadSafeCache* threadSafeCache() const { return fDContext->priv().threadSafeCache(); } in threadSafeCache()
259 GrProxyProvider* directProxyProvider = fDContext->priv().proxyProvider(); in checkView()
268 auto resourceProvider = fDContext->priv().resourceProvider(); in checkView()
335 auto resourceProvider = fDContext->priv().resourceProvider(); in checkVert()
375 sk_sp<SkSurface> tmp = SkSurface::MakeRenderTarget(fDContext, in checkImage()
[all …]
DResourceCacheTest.cpp330 fDContext = GrDirectContext::MakeMock(nullptr); in Mock()
331 SkASSERT(fDContext); in Mock()
332 fDContext->setResourceCacheLimit(maxBytes); in Mock()
333 GrResourceCache* cache = fDContext->priv().getResourceCache(); in Mock()
338 GrResourceCache* cache() { return fDContext->priv().getResourceCache(); } in cache()
339 GrGpu* gpu() { return fDContext->priv().getGpu(); } in gpu()
340 GrDirectContext* dContext() { return fDContext.get(); } in dContext()
343 fDContext.reset(); in reset()
347 sk_sp<GrDirectContext> fDContext; member in Mock
/third_party/skia/src/core/
DSkDeferredDisplayList.cpp49 : fDContext(dContext) in ProgramIterator()
57 if (!fDContext || fIndex < 0 || fIndex >= (int) fProgramData.size()) { in compile()
61 return fDContext->priv().compile(fProgramData[fIndex].desc(), fProgramData[fIndex].info()); in compile()
/third_party/skia/src/gpu/
DGrResourceAllocator.cpp60 auto resourceProvider = fDContext->priv().resourceProvider();
282 auto resourceProvider = fDContext->priv().resourceProvider(); in findOrCreateRegisterFor()
296 proxy->priv().computeScratchKey(*fDContext->priv().caps(), &scratchKey); in findOrCreateRegisterFor()
316 if (r && r->isRecyclable(*fDContext->priv().caps(), intvl->proxy(), intvl->uses())) { in expire()
338 auto resourceProvider = fDContext->priv().resourceProvider(); in planAssignment()
396 return fDContext->priv().getResourceCache()->purgeToMakeHeadroom(additionalBytesNeeded); in makeBudgetHeadroom()
420 auto resourceProvider = fDContext->priv().resourceProvider(); in assign()
DGrResourceAllocator.h81 : fDContext(dContext) {} in GrResourceAllocator()
274 GrDirectContext* fDContext; variable
/third_party/skia/tools/gpu/
DManagedBackendTexture.h95 sk_sp<GrDirectContext> fDContext; variable
103 mbet->fDContext = sk_ref_sp(dContext); in MakeWithData()
123 mbet->fDContext = sk_ref_sp(dContext); in MakeWithoutData()
DManagedBackendTexture.cpp35 if (fDContext && fTexture.isValid()) { in ~ManagedBackendTexture()
36 fDContext->deleteBackendTexture(fTexture); in ~ManagedBackendTexture()
/third_party/skia/tools/gpu/vk/
DVkYcbcrSamplerHelper.cpp26 return (GrVkGpu*) fDContext->priv().getGpu(); in vkGpu()
29 VkYcbcrSamplerHelper::VkYcbcrSamplerHelper(GrDirectContext* dContext) : fDContext(dContext) { in VkYcbcrSamplerHelper()
DVkYcbcrSamplerHelper.h39 GrDirectContext* fDContext; variable
/third_party/skia/include/core/
DSkDeferredDisplayList.h54 GrDirectContext* fDContext;