Home
last modified time | relevance | path

Searched refs:resourceProvider (Results 1 – 25 of 220) sorted by relevance

123456789

/third_party/flutter/skia/src/gpu/
DGrOnFlushResourceProvider.cpp74 auto resourceProvider = direct->priv().resourceProvider(); in instatiateProxy() local
79 return proxy->priv().doLazyInstantiation(resourceProvider); in instatiateProxy()
82 return proxy->instantiate(resourceProvider); in instatiateProxy()
93 auto resourceProvider = direct->priv().resourceProvider(); in makeBuffer() local
96 resourceProvider->createBuffer(size, intendedType, kDynamic_GrAccessPattern, data)); in makeBuffer()
107 auto resourceProvider = direct->priv().resourceProvider(); in findOrMakeStaticBuffer() local
110 resourceProvider->findOrMakeStaticBuffer(intendedType, size, data, key); in findOrMakeStaticBuffer()
DGrProxyProvider.cpp157 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in testingOnly_createInstantiatedProxy() local
161 tex = resourceProvider->createApproxTexture(desc, format, renderable, renderTargetSampleCnt, in testingOnly_createInstantiatedProxy()
165 tex = resourceProvider->createTexture(desc, format, renderable, renderTargetSampleCnt, in testingOnly_createInstantiatedProxy()
305 ct](GrResourceProvider* resourceProvider) { in createTextureProxy() argument
310 return LazyInstantiationResult(resourceProvider->createTexture( in createTextureProxy()
323 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createTextureProxy() local
327 if (!proxy->priv().doLazyInstantiation(resourceProvider)) { in createTextureProxy()
417 [desc, format, baseLevel, mipmaps](GrResourceProvider* resourceProvider) { in createProxyFromBitmap() argument
437 return LazyInstantiationResult(resourceProvider->createTexture( in createProxyFromBitmap()
450 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createProxyFromBitmap() local
[all …]
DGrSurfaceProxy.cpp115 bool GrSurfaceProxyPriv::AttachStencilIfNeeded(GrResourceProvider* resourceProvider, in AttachStencilIfNeeded() argument
124 if (!resourceProvider->attachStencilAttachment(rt, minStencilSampleCount)) { in AttachStencilIfNeeded()
132 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl() argument
165 surface = resourceProvider->createTexture(desc, fFormat, renderable, sampleCnt, fBudgeted, in createSurfaceImpl()
181 surface = resourceProvider->createApproxTexture(desc, fFormat, renderable, sampleCnt, in createSurfaceImpl()
185 resourceProvider->createTexture(desc, fFormat, renderable, sampleCnt, fBudgeted, in createSurfaceImpl()
193 if (!GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, surface.get(), in createSurfaceImpl()
239 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl() argument
247 return GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, fTarget.get(), in instantiateImpl()
252 resourceProvider, sampleCnt, minStencilSampleCount, renderable, mipMapped); in instantiateImpl()
[all …]
DGrRenderTargetProxy.cpp62 bool GrRenderTargetProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate() argument
66 if (!this->instantiateImpl(resourceProvider, fSampleCnt, fNumStencilSamples, GrRenderable::kYes, in instantiate()
85 sk_sp<GrSurface> GrRenderTargetProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface()
87 resourceProvider, fSampleCnt, fNumStencilSamples, GrRenderable::kYes, GrMipMapped::kNo); in createSurface()
/third_party/skia/src/gpu/
DGrProxyProvider.cpp157 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in testingOnly_createInstantiatedProxy() local
161 tex = resourceProvider->createApproxTexture(dimensions, in testingOnly_createInstantiatedProxy()
168 tex = resourceProvider->createTexture(dimensions, in testingOnly_createInstantiatedProxy()
329 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createProxyFromBitmap() local
333 if (!proxy->priv().doLazyInstantiation(resourceProvider)) { in createProxyFromBitmap()
352 [bitmap](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createNonMippedProxyFromBitmap() argument
356 return LazyCallbackResult(resourceProvider->createTexture( in createNonMippedProxyFromBitmap()
396 [bitmap, mipmaps](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createMippedProxyFromBitmap() argument
412 return LazyCallbackResult(resourceProvider->createTexture( in createMippedProxyFromBitmap()
512 [data](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createCompressedTextureProxy() argument
[all …]
DGrResourceAllocator.cpp60 auto resourceProvider = fDContext->priv().resourceProvider(); variable
61 if (proxy->isLazy() && !proxy->priv().doLazyInstantiation(resourceProvider)) {
155 GrResourceProvider* resourceProvider) { in instantiateSurface() argument
161 newSurface = proxy->priv().createSurface(resourceProvider); in instantiateSurface()
182 resourceProvider->assignUniqueKeyToResource(uniqueKey, surface); in instantiateSurface()
282 auto resourceProvider = fDContext->priv().resourceProvider(); in findOrCreateRegisterFor() local
289 Register* r = fInternalAllocator.make<Register>(proxy, GrScratchKey(), resourceProvider); in findOrCreateRegisterFor()
305 return fInternalAllocator.make<Register>(proxy, std::move(scratchKey), resourceProvider); in findOrCreateRegisterFor()
338 auto resourceProvider = fDContext->priv().resourceProvider(); in planAssignment() local
351 fFailedInstantiation = !cur->proxy()->priv().doLazyInstantiation(resourceProvider); in planAssignment()
[all …]
DGrOnFlushResourceProvider.cpp30 auto resourceProvider = direct->priv().resourceProvider(); in instatiateProxy() local
33 return proxy->priv().doLazyInstantiation(resourceProvider); in instatiateProxy()
36 return proxy->instantiate(resourceProvider); in instatiateProxy()
DGrSurfaceProxy.cpp105 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl() argument
115 surface = resourceProvider->createApproxTexture(fDimensions, in createSurfaceImpl()
122 surface = resourceProvider->createTexture(fDimensions, in createSurfaceImpl()
178 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl() argument
189 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, sampleCnt, renderable, in instantiateImpl()
198 resourceProvider->assignUniqueKeyToResource(*uniqueKey, surface.get()); in instantiateImpl()
417 bool GrSurfaceProxyPriv::doLazyInstantiation(GrResourceProvider* resourceProvider) { in doLazyInstantiation() argument
423 surface = resourceProvider->findByUniqueKey<GrSurface>(uniqueKey); in doLazyInstantiation()
429 auto result = fProxy->fLazyInstantiateCallback(resourceProvider, fProxy->callbackDesc()); in doLazyInstantiation()
456 resourceProvider->assignUniqueKeyToResource(key, surface.get()); in doLazyInstantiation()
/third_party/skia/tests/graphite/
DCommandBufferTest.cpp42 auto commandBuffer = gpu->resourceProvider()->createCommandBuffer(); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
68 target->instantiate(gpu->resourceProvider()); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
77 sk_sp<Buffer> uniformBuffer = gpu->resourceProvider()->findOrCreateBuffer( in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
84 auto graphicsPipeline = gpu->resourceProvider()->findOrCreateGraphicsPipeline(pipelineDesc); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
90 graphicsPipeline = gpu->resourceProvider()->findOrCreateGraphicsPipeline(pipelineDesc); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
107 graphicsPipeline = gpu->resourceProvider()->findOrCreateGraphicsPipeline(pipelineDesc); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
113 sk_sp<Buffer> vertexBuffer = gpu->resourceProvider()->findOrCreateBuffer( in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
115 sk_sp<Buffer> indexBuffer = gpu->resourceProvider()->findOrCreateBuffer( in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
148 graphicsPipeline = gpu->resourceProvider()->findOrCreateGraphicsPipeline(pipelineDesc); in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
156 sk_sp<Buffer> instanceBuffer = gpu->resourceProvider()->findOrCreateBuffer( in DEF_GRAPHITE_TEST_FOR_CONTEXTS()
[all …]
/third_party/skia/src/gpu/vk/
DGrVkMSAALoadManager.cpp77 GrVkResourceProvider& resourceProvider = gpu->resourceProvider(); in createMSAALoadProgram() local
79 dsLayout[GrVkUniformHandler::kUniformBufferDescSet] = resourceProvider.getUniformDSLayout(); in createMSAALoadProgram()
87 resourceProvider.getZeroSamplerDescriptorSetHandle(&samplerHandle); in createMSAALoadProgram()
90 resourceProvider.getSamplerDSLayout(samplerHandle); in createMSAALoadProgram()
92 dsLayout[GrVkUniformHandler::kInputDescSet] = resourceProvider.getInputDSLayout(); in createMSAALoadProgram()
138 GrVkResourceProvider& resourceProv = gpu->resourceProvider(); in loadMSAAFromResolve()
181 GrResourceProvider* resourceProvider = gpu->getContext()->priv().resourceProvider(); in loadMSAAFromResolve() local
185 sk_sp<GrGpuBuffer> uniformBuffer = resourceProvider->createBuffer( in loadMSAAFromResolve()
DGrVkPipelineStateBuilder.cpp32 GrVkResourceProvider& resourceProvider = gpu->resourceProvider(); in CreatePipelineState() local
34 resourceProvider.pipelineStateCache()->stats()->incShaderCompilations(); in CreatePipelineState()
173 GrVkResourceProvider& resourceProvider = fGpu->resourceProvider(); in finalize() local
175 dsLayout[GrVkUniformHandler::kUniformBufferDescSet] = resourceProvider.getUniformDSLayout(); in finalize()
178 resourceProvider.getSamplerDescriptorSetHandle(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, in finalize()
181 resourceProvider.getSamplerDSLayout(samplerDSHandle); in finalize()
183 dsLayout[GrVkUniformHandler::kInputDescSet] = resourceProvider.getInputDSLayout(); in finalize()
325 sk_sp<const GrVkPipeline> pipeline = resourceProvider.makePipeline( in finalize()
/third_party/skia/tests/
DProxyTest.cpp116 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
138 tex = resourceProvider->createApproxTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
142 tex = resourceProvider->createTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
164 check_rendertarget(reporter, caps, resourceProvider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
174 tex = resourceProvider->createApproxTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
178 tex = resourceProvider->createTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
197 check_texture(reporter, resourceProvider, proxy->asTextureProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
213 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
234 check_rendertarget(reporter, caps, resourceProvider, sProxy->asRenderTargetProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
261 check_rendertarget(reporter, caps, resourceProvider, sProxy->asRenderTargetProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DDrawOpAtlasTest.cpp114 GrResourceProvider* resourceProvider, in fill_plot() argument
125 code = atlas->addToAtlas(resourceProvider, target, kPlotSize, kPlotSize, in fill_plot()
136 auto resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
167 atlas.get(), resourceProvider, &uploadTarget, &atlasLocators[i], i * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
177 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasLocator, 4 * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
202 auto resourceProvider = dContext->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
229 GrOpFlushState flushState(gpu, resourceProvider, uploadTarget.writeableTokenTracker()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProxyRefTest.cpp46 GrResourceProvider* resourceProvider = dContext->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
59 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
77 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
97 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DGrSurfaceTest.cpp33 auto resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_MOCK_CONTEXT() local
39 resourceProvider->createTexture(kDesc, format, GrTextureType::k2D, GrRenderable::kYes, in DEF_GPUTEST_FOR_MOCK_CONTEXT()
52 resourceProvider->createTexture(kDesc, format, GrTextureType::k2D, GrRenderable::kNo, 1, in DEF_GPUTEST_FOR_MOCK_CONTEXT()
62 sk_sp<GrSurface> texRT2 = resourceProvider->wrapRenderableBackendTexture( in DEF_GPUTEST_FOR_MOCK_CONTEXT()
82 GrResourceProvider* resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() local
132 GrRenderable::kNo, resourceProvider); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
155 sk_sp<GrSurface> tex = resourceProvider->createTexture( in DEF_GPUTEST_FOR_ALL_CONTEXTS()
168 sk_sp<GrSurface> tex = resourceProvider->createTexture( in DEF_GPUTEST_FOR_ALL_CONTEXTS()
/third_party/flutter/skia/tests/
DResourceAllocatorTest.cpp76 static void overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in overlap_test() argument
80 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 1)); in overlap_test()
103 static void non_overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in non_overlap_test() argument
107 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker SkDEBUGCODE(, 1)); in non_overlap_test()
136 GrResourceProvider* resourceProvider = ctxInfo.grContext()->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
150 bool kConditionallyShare = resourceProvider->caps()->reuseScratchTextures(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
176 overlap_test(reporter, resourceProvider, std::move(p1), std::move(p2), test.fExpectation); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
220 non_overlap_test(reporter, resourceProvider, std::move(p1), std::move(p2), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
234 non_overlap_test(reporter, resourceProvider, std::move(p1), std::move(p2), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
282 auto callback = [fit, desc, format, p](GrResourceProvider* resourceProvider) { in make_lazy() argument
[all …]
DProxyTest.cpp110 GrResourceProvider* resourceProvider = ctxInfo.grContext()->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
140 tex = resourceProvider->createApproxTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
145 tex = resourceProvider->createTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
168 check_rendertarget(reporter, caps, resourceProvider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
179 tex = resourceProvider->createApproxTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
184 tex = resourceProvider->createTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
204 check_texture(reporter, resourceProvider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
221 GrResourceProvider* resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
247 check_rendertarget(reporter, caps, resourceProvider, sProxy->asRenderTargetProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
276 check_rendertarget(reporter, caps, resourceProvider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DDrawOpAtlasTest.cpp112 GrResourceProvider* resourceProvider, in fill_plot() argument
124 code = atlas->addToAtlas(resourceProvider, atlasID, target, kPlotSize, kPlotSize, in fill_plot()
135 auto resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
158 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasIDs[i], i*32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
168 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasID, 4*32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
190 auto resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
213 GrOpFlushState flushState(gpu, resourceProvider, uploadTarget.writeableTokenTracker()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DProxyRefTest.cpp62 GrResourceProvider* resourceProvider = ctxInfo.grContext()->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
75 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
93 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
115 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DTextureProxyTest.cpp104 GrResourceProvider* resourceProvider = context->priv().resourceProvider(); in create_wrapped_backend() local
110 *backingSurface = resourceProvider->createTexture(desc, format, GrRenderable::kNo, 1, in create_wrapped_backend()
132 GrResourceProvider* resourceProvider = context->priv().resourceProvider(); in basic_test() local
164 SkAssertResult(proxy->instantiate(resourceProvider)); in basic_test()
271 GrResourceProvider* resourceProvider = context->priv().resourceProvider(); in invalidation_and_instantiation_test() local
295 SkAssertResult(proxy->instantiate(resourceProvider)); in invalidation_and_instantiation_test()
/third_party/flutter/skia/src/gpu/ops/
DGrStencilAndCoverPathRenderer.cpp22 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider, in Create() argument
25 return new GrStencilAndCoverPathRenderer(resourceProvider); in Create()
31 GrStencilAndCoverPathRenderer::GrStencilAndCoverPathRenderer(GrResourceProvider* resourceProvider) in GrStencilAndCoverPathRenderer() argument
32 : fResourceProvider(resourceProvider) { in GrStencilAndCoverPathRenderer()
52 static sk_sp<GrPath> get_gr_path(GrResourceProvider* resourceProvider, const GrShape& shape) { in get_gr_path() argument
58 path = resourceProvider->findByUniqueKey<GrPath>(key); in get_gr_path()
63 path = resourceProvider->createPath(skPath, shape.style()); in get_gr_path()
65 resourceProvider->assignUniqueKeyToResource(key, path.get()); in get_gr_path()
/third_party/skia/src/gpu/d3d/
DGrD3DTextureRenderTarget.cpp127 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeNewTextureRenderTarget()
130 gpu->resourceProvider().createRenderTargetView(info.fResource.get()); in MakeNewTextureRenderTarget()
141 gpu->resourceProvider().createRenderTargetView(msInfo.fResource.get()); in MakeNewTextureRenderTarget()
171 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeWrappedTextureRenderTarget()
174 gpu->resourceProvider().createRenderTargetView(info.fResource.get()); in MakeWrappedTextureRenderTarget()
185 gpu->resourceProvider().createRenderTargetView(msInfo.fResource.get()); in MakeWrappedTextureRenderTarget()
DGrD3DTexture.cpp81 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeNewTexture()
104 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeWrappedTexture()
127 gpu->resourceProvider().createShaderResourceView(info.fResource.get()); in MakeAliasingTexture()
137 gpu->resourceProvider().recycleShaderView(fShaderResourceView); in onRelease()
145 gpu->resourceProvider().recycleShaderView(fShaderResourceView); in onAbandon()
/third_party/flutter/skia/tools/fiddle/
Dfiddle_main.cpp128 auto resourceProvider = context->priv().resourceProvider(); in setup_backend_objects() local
135 auto format = resourceProvider->caps()->getDefaultBackendFormat( in setup_backend_objects()
137 auto renderableFormat = resourceProvider->caps()->getDefaultBackendFormat( in setup_backend_objects()
170 backingTexture = resourceProvider->createTexture(backingDesc, format, GrRenderable::kNo, 1, in setup_backend_objects()
196 sk_sp<GrTexture> tmp = resourceProvider->createTexture( in setup_backend_objects()
225 backingTextureRenderTarget = resourceProvider->createTexture( in setup_backend_objects()
/third_party/skia/experimental/graphite/src/
DRecorder.cpp27 , fDrawBufferManager(new DrawBufferManager(fContext->priv().gpu()->resourceProvider(), 4)) { in Recorder()
54 auto commandBuffer = gpu->resourceProvider()->createCommandBuffer(); in snap()
56 fGraph.addCommands(gpu->resourceProvider(), commandBuffer.get()); in snap()

123456789