/external/skqp/src/gpu/ |
D | GrOnFlushResourceProvider.cpp | 65 auto resourceProvider = fDrawingMgr->getContext()->contextPriv().resourceProvider(); in instatiateProxy() local 70 return proxy->priv().doLazyInstantiation(resourceProvider); in instatiateProxy() 73 return proxy->instantiate(resourceProvider); in instatiateProxy() 78 auto resourceProvider = fDrawingMgr->getContext()->contextPriv().resourceProvider(); in makeBuffer() local 79 return sk_sp<GrBuffer>(resourceProvider->createBuffer(size, intendedType, in makeBuffer() 89 auto resourceProvider = fDrawingMgr->getContext()->contextPriv().resourceProvider(); in findOrMakeStaticBuffer() local 90 sk_sp<const GrBuffer> buffer = resourceProvider->findOrMakeStaticBuffer(intendedType, size, in findOrMakeStaticBuffer()
|
D | GrOpList.cpp | 27 GrOpList::GrOpList(GrResourceProvider* resourceProvider, sk_sp<GrOpMemoryPool> opMemoryPool, in GrOpList() argument 37 if (resourceProvider && !resourceProvider->explicitlyAllocateGPUResources()) { in GrOpList() 44 fTarget.get()->instantiate(resourceProvider); in GrOpList() 57 bool GrOpList::instantiate(GrResourceProvider* resourceProvider) { in instantiate() argument 58 return SkToBool(fTarget.get()->instantiate(resourceProvider)); in instantiate() 71 void GrOpList::instantiateDeferredProxies(GrResourceProvider* resourceProvider) { in instantiateDeferredProxies() argument 73 if (resourceProvider->explicitlyAllocateGPUResources()) { in instantiateDeferredProxies() 76 fDeferredProxies[i]->instantiate(resourceProvider); in instantiateDeferredProxies()
|
D | GrSurfaceProxy.cpp | 113 bool GrSurfaceProxyPriv::AttachStencilIfNeeded(GrResourceProvider* resourceProvider, in AttachStencilIfNeeded() argument 122 if (!resourceProvider->attachStencilAttachment(rt)) { in AttachStencilIfNeeded() 130 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl() argument 148 resourceProvider->explicitlyAllocateGPUResources()) { in createSurfaceImpl() 171 surface = resourceProvider->createTexture(desc, fBudgeted, texels.get(), mipCount); in createSurfaceImpl() 178 surface = resourceProvider->createApproxTexture(desc, resourceProviderFlags); in createSurfaceImpl() 180 surface = resourceProvider->createTexture(desc, fBudgeted, resourceProviderFlags); in createSurfaceImpl() 187 if (!GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, surface.get(), needsStencil)) { in createSurfaceImpl() 227 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl() argument 235 return GrSurfaceProxyPriv::AttachStencilIfNeeded(resourceProvider, fTarget, needsStencil); in instantiateImpl() [all …]
|
D | GrGpuCommandBuffer.cpp | 50 auto resourceProvider = this->gpu()->getContext()->contextPriv().resourceProvider(); in draw() local 57 if (!fixedDynamicState->fPrimitiveProcessorTextures[i]->instantiate(resourceProvider)) { in draw() 66 if (!textures[i]->instantiate(resourceProvider)) { in draw()
|
D | GrDrawingManager.cpp | 238 GrOpFlushState flushState(gpu, fContext->contextPriv().resourceProvider(), &fTokenTracker, in flush() 286 GrResourceAllocator alloc(fContext->contextPriv().resourceProvider(), in flush() 367 GrResourceProvider* resourceProvider = fContext->contextPriv().resourceProvider(); in executeOpLists() local 377 if (resourceProvider->explicitlyAllocateGPUResources()) { in executeOpLists() 384 if (!opList->instantiate(resourceProvider)) { in executeOpLists() 392 opList->instantiateDeferredProxies(fContext->contextPriv().resourceProvider()); in executeOpLists() 468 if (!proxy->instantiate(fContext->contextPriv().resourceProvider())) { in prepareSurfaceForExternalIO() 584 auto resourceProvider = fContext->contextPriv().resourceProvider(); in newRTOpList() local 587 resourceProvider, in newRTOpList() 627 sk_sp<GrTextureOpList> opList(new GrTextureOpList(fContext->contextPriv().resourceProvider(), in newTextureOpList()
|
D | GrRenderTargetProxy.cpp | 64 bool GrRenderTargetProxy::instantiate(GrResourceProvider* resourceProvider) { in instantiate() argument 70 if (!this->instantiateImpl(resourceProvider, fSampleCnt, fNeedsStencil, kDescFlags, in instantiate() 79 sk_sp<GrSurface> GrRenderTargetProxy::createSurface(GrResourceProvider* resourceProvider) const { in createSurface() 82 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, fSampleCnt, fNeedsStencil, in createSurface()
|
/external/skqp/tests/ |
D | ResourceAllocatorTest.cpp | 91 static void overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in overlap_test() argument 94 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker); in overlap_test() 113 static void non_overlap_test(skiatest::Reporter* reporter, GrResourceProvider* resourceProvider, in non_overlap_test() argument 117 GrResourceAllocator alloc(resourceProvider, &deinstantiateTracker); in non_overlap_test() 143 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 145 bool orig = resourceProvider->testingOnly_setExplicitlyAllocateGPUResources(true); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 159 bool kConditionallyShare = resourceProvider->caps()->reuseScratchTextures(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 183 overlap_test(reporter, resourceProvider, p1, p2, test.fExpectation); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 230 non_overlap_test(reporter, resourceProvider, p1, p2, test.fExpectation); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 246 non_overlap_test(reporter, resourceProvider, p1, p2, t[0].fExpectation); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | ProxyTest.cpp | 109 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 143 tex = resourceProvider->createApproxTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 146 tex = resourceProvider->createTexture(desc, budgeted); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 166 check_rendertarget(reporter, caps, resourceProvider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 178 tex = resourceProvider->createApproxTexture( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 181 tex = resourceProvider->createTexture(desc, budgeted); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 198 check_texture(reporter, resourceProvider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 214 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 235 check_rendertarget(reporter, caps, resourceProvider, sProxy->asRenderTargetProxy(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 265 check_rendertarget(reporter, caps, resourceProvider, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() [all …]
|
D | DrawOpAtlasTest.cpp | 109 GrResourceProvider* resourceProvider, in fill_plot() argument 121 code = atlas->addToAtlas(resourceProvider, atlasID, target, kPlotSize, kPlotSize, in fill_plot() 132 auto resourceProvider = context->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 154 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasIDs[i], i*32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 164 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasID, 4*32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 186 auto resourceProvider = context->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 214 GrOpFlushState flushState(gpu, resourceProvider, uploadTarget.writeableTokenTracker(), nullptr, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ProxyRefTest.cpp | 90 GrResourceProvider* resourceProvider = ctxInfo.grContext()->contextPriv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 107 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 127 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 147 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 168 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 192 proxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | VkMakeCopyPipelineTest.cpp | 88 GrVkResourceProvider& resourceProvider = gpu->resourceProvider(); in test() local 90 dsLayout[GrVkUniformHandler::kUniformBufferDescSet] = resourceProvider.getUniformDSLayout(); in test() 95 resourceProvider.getSamplerDescriptorSetHandle(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, in test() 98 resourceProvider.getSamplerDSLayout(fSamplerDSHandle); in test()
|
D | TextureProxyTest.cpp | 103 GrResourceProvider* resourceProvider = context->contextPriv().resourceProvider(); in create_wrapped_backend() local 107 *backingSurface = resourceProvider->createTexture(desc, SkBudgeted::kNo); in create_wrapped_backend() 128 GrResourceProvider* resourceProvider = context->contextPriv().resourceProvider(); in basic_test() local 160 SkAssertResult(proxy->instantiate(resourceProvider)); in basic_test() 264 GrResourceProvider* resourceProvider = context->contextPriv().resourceProvider(); in invalidation_and_instantiation_test() local 288 SkAssertResult(proxy->instantiate(resourceProvider)); in invalidation_and_instantiation_test()
|
/external/skia/src/gpu/ |
D | GrOnFlushResourceProvider.cpp | 94 auto resourceProvider = direct->priv().resourceProvider(); in instatiateProxy() local 97 return proxy->priv().doLazyInstantiation(resourceProvider); in instatiateProxy() 100 return proxy->instantiate(resourceProvider); in instatiateProxy() 111 auto resourceProvider = direct->priv().resourceProvider(); in makeBuffer() local 114 resourceProvider->createBuffer(size, intendedType, kDynamic_GrAccessPattern, data)); in makeBuffer() 125 auto resourceProvider = direct->priv().resourceProvider(); in findOrMakeStaticBuffer() local 127 return resourceProvider->findOrMakeStaticBuffer(intendedType, size, data, key); in findOrMakeStaticBuffer()
|
D | GrProxyProvider.cpp | 142 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in testingOnly_createInstantiatedProxy() local 146 tex = resourceProvider->createApproxTexture(dimensions, format, renderable, in testingOnly_createInstantiatedProxy() 149 tex = resourceProvider->createTexture(dimensions, format, renderable, renderTargetSampleCnt, in testingOnly_createInstantiatedProxy() 302 GrResourceProvider* resourceProvider = direct->priv().resourceProvider(); in createProxyFromBitmap() local 306 if (!proxy->priv().doLazyInstantiation(resourceProvider)) { in createProxyFromBitmap() 325 [bitmap](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createNonMippedProxyFromBitmap() argument 329 return LazyCallbackResult(resourceProvider->createTexture( in createNonMippedProxyFromBitmap() 361 [bitmap, mipmaps](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createMippedProxyFromBitmap() argument 377 return LazyCallbackResult(resourceProvider->createTexture( in createMippedProxyFromBitmap() 465 [data](GrResourceProvider* resourceProvider, const LazySurfaceDesc& desc) { in createCompressedTextureProxy() argument [all …]
|
D | GrResourceAllocator.cpp | 60 auto resourceProvider = fDContext->priv().resourceProvider(); variable 61 if (proxy->isLazy() && !proxy->priv().doLazyInstantiation(resourceProvider)) { 146 GrResourceProvider* resourceProvider) { in instantiateSurface() argument 152 newSurface = proxy->priv().createSurface(resourceProvider); in instantiateSurface() 173 resourceProvider->assignUniqueKeyToResource(uniqueKey, surface); in instantiateSurface() 273 auto resourceProvider = fDContext->priv().resourceProvider(); in findOrCreateRegisterFor() local 280 Register* r = fInternalAllocator.make<Register>(proxy, GrScratchKey(), resourceProvider); in findOrCreateRegisterFor() 296 return fInternalAllocator.make<Register>(proxy, std::move(scratchKey), resourceProvider); in findOrCreateRegisterFor() 329 auto resourceProvider = fDContext->priv().resourceProvider(); in planAssignment() local 342 fFailedInstantiation = !cur->proxy()->priv().doLazyInstantiation(resourceProvider); in planAssignment() [all …]
|
D | GrSurfaceProxy.cpp | 107 sk_sp<GrSurface> GrSurfaceProxy::createSurfaceImpl(GrResourceProvider* resourceProvider, in createSurfaceImpl() argument 117 surface = resourceProvider->createApproxTexture(fDimensions, fFormat, renderable, sampleCnt, in createSurfaceImpl() 120 surface = resourceProvider->createTexture(fDimensions, fFormat, renderable, sampleCnt, in createSurfaceImpl() 167 bool GrSurfaceProxy::instantiateImpl(GrResourceProvider* resourceProvider, int sampleCnt, in instantiateImpl() argument 178 sk_sp<GrSurface> surface = this->createSurfaceImpl(resourceProvider, sampleCnt, renderable, in instantiateImpl() 187 resourceProvider->assignUniqueKeyToResource(*uniqueKey, surface.get()); in instantiateImpl() 408 bool GrSurfaceProxyPriv::doLazyInstantiation(GrResourceProvider* resourceProvider) { in doLazyInstantiation() argument 414 surface = resourceProvider->findByUniqueKey<GrSurface>(uniqueKey); in doLazyInstantiation() 420 auto result = fProxy->fLazyInstantiateCallback(resourceProvider, fProxy->callbackDesc()); in doLazyInstantiation() 447 resourceProvider->assignUniqueKeyToResource(key, surface.get()); in doLazyInstantiation()
|
/external/skia/src/gpu/vk/ |
D | GrVkMSAALoadManager.cpp | 82 GrVkResourceProvider& resourceProvider = gpu->resourceProvider(); in createMSAALoadProgram() local 84 dsLayout[GrVkUniformHandler::kUniformBufferDescSet] = resourceProvider.getUniformDSLayout(); in createMSAALoadProgram() 92 resourceProvider.getZeroSamplerDescriptorSetHandle(&samplerHandle); in createMSAALoadProgram() 95 resourceProvider.getSamplerDSLayout(samplerHandle); in createMSAALoadProgram() 97 dsLayout[GrVkUniformHandler::kInputDescSet] = resourceProvider.getInputDSLayout(); in createMSAALoadProgram() 143 GrVkResourceProvider& resourceProv = gpu->resourceProvider(); in loadMSAAFromResolve() 186 GrResourceProvider* resourceProvider = gpu->getContext()->priv().resourceProvider(); in loadMSAAFromResolve() local 190 sk_sp<GrGpuBuffer> uniformBuffer = resourceProvider->createBuffer( in loadMSAAFromResolve()
|
D | GrVkPipelineStateBuilder.cpp | 32 GrVkResourceProvider& resourceProvider = gpu->resourceProvider(); in CreatePipelineState() local 34 resourceProvider.pipelineStateCache()->stats()->incShaderCompilations(); in CreatePipelineState() 183 GrVkResourceProvider& resourceProvider = fGpu->resourceProvider(); in finalize() local 185 dsLayout[GrVkUniformHandler::kUniformBufferDescSet] = resourceProvider.getUniformDSLayout(); in finalize() 188 resourceProvider.getSamplerDescriptorSetHandle(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, in finalize() 191 resourceProvider.getSamplerDSLayout(samplerDSHandle); in finalize() 193 dsLayout[GrVkUniformHandler::kInputDescSet] = resourceProvider.getInputDSLayout(); in finalize() 356 sk_sp<const GrVkPipeline> pipeline = resourceProvider.makePipeline( in finalize()
|
/external/skia/tests/ |
D | ProxyTest.cpp | 116 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 …]
|
D | DrawOpAtlasTest.cpp | 115 GrResourceProvider* resourceProvider, in fill_plot() argument 126 code = atlas->addToAtlas(resourceProvider, target, kPlotSize, kPlotSize, in fill_plot() 137 auto resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 165 atlas.get(), resourceProvider, &uploadTarget, &atlasLocators[i], i * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 175 bool result = fill_plot(atlas.get(), resourceProvider, &uploadTarget, &atlasLocator, 4 * 32); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 197 auto resourceProvider = context->priv().resourceProvider(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 223 GrOpFlushState flushState(gpu, resourceProvider, uploadTarget.writeableTokenTracker()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|
D | ProxyRefTest.cpp | 46 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()
|
/external/skqp/src/gpu/ops/ |
D | GrStencilAndCoverPathRenderer.cpp | 23 GrPathRenderer* GrStencilAndCoverPathRenderer::Create(GrResourceProvider* resourceProvider, in Create() argument 26 return new GrStencilAndCoverPathRenderer(resourceProvider); in Create() 32 GrStencilAndCoverPathRenderer::GrStencilAndCoverPathRenderer(GrResourceProvider* resourceProvider) in GrStencilAndCoverPathRenderer() argument 33 : fResourceProvider(resourceProvider) { in GrStencilAndCoverPathRenderer() 55 static sk_sp<GrPath> get_gr_path(GrResourceProvider* resourceProvider, const GrShape& shape) { in get_gr_path() argument 61 path = resourceProvider->findByUniqueKey<GrPath>(key); in get_gr_path() 66 path = resourceProvider->createPath(skPath, shape.style()); in get_gr_path() 68 resourceProvider->assignUniqueKeyToResource(key, path.get()); in get_gr_path()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | Providers.java | 86 …public static Provider resourceProvider(ClassLoader classLoader, String pathToResource, Charset en… in resourceProvider() method in Providers 98 …public static Provider resourceProvider(String pathToResource, Charset encoding) throws IOExceptio… in resourceProvider() method in Providers 100 return resourceProvider(classLoader, pathToResource, encoding); in resourceProvider() 107 public static Provider resourceProvider(String pathToResource) throws IOException { in resourceProvider() method in Providers 108 return resourceProvider(pathToResource, UTF8); in resourceProvider()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/ |
D | AncestorDescendantTests.java | 18 Provider provider = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodeIsNotAncestorOfItself() 36 Provider provider = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodeIsNotDescendantOfItself() 54 Provider provider = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodeInSameFileIsDescendantOfAncestor() 77 Provider providerA = Providers.resourceProvider("com/github/javaparser/range/A.java"); in nodesInTwoDifferentFilesAreNotDescendantOrAncestorOfEachOther() 82 Provider providerB = Providers.resourceProvider("com/github/javaparser/range/B.java"); in nodesInTwoDifferentFilesAreNotDescendantOrAncestorOfEachOther()
|
/external/skqp/src/gpu/vk/ |
D | GrVkCopyManager.cpp | 99 GrVkResourceProvider& resourceProvider = gpu->resourceProvider(); in createCopyProgram() local 101 dsLayout[GrVkUniformHandler::kUniformBufferDescSet] = resourceProvider.getUniformDSLayout(); in createCopyProgram() 106 resourceProvider.getSamplerDescriptorSetHandle(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, in createCopyProgram() 109 resourceProvider.getSamplerDSLayout(fSamplerDSHandle); in createCopyProgram() 185 GrVkResourceProvider& resourceProv = gpu->resourceProvider(); in copySurfaceAsDraw() 259 gpu->resourceProvider().getSamplerDescriptorSet(fSamplerDSHandle); in copySurfaceAsDraw() 344 renderPass = gpu->resourceProvider().findRenderPass(rpHandle, in copySurfaceAsDraw() 348 renderPass = gpu->resourceProvider().findRenderPass(*rt, in copySurfaceAsDraw()
|