Home
last modified time | relevance | path

Searched refs:fGpu (Results 1 – 25 of 92) sorted by relevance

1234

/external/skqp/src/gpu/
DGrGpuResource.cpp24 GrGpuResource::GrGpuResource(GrGpu* gpu) : fGpu(gpu), fUniqueID(CreateUniqueID()) { in GrGpuResource()
33 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCache()
42 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCacheWrapped()
51 SkASSERT(fGpu); in release()
53 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in release()
54 fGpu = nullptr; in release()
62 SkASSERT(fGpu); in abandon()
64 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in abandon()
65 fGpu = nullptr; in abandon()
115 if (fGpu) { in getContext()
[all …]
DGrDirectContext.cpp120 context->fGpu = GrGLGpu::Make(std::move(interface), options, context.get()); in MakeGL()
121 if (!context->fGpu) { in MakeGL()
125 context->fCaps = context->fGpu->refCaps(); in MakeGL()
141 context->fGpu = GrMockGpu::Make(mockOptions, options, context.get()); in MakeMock()
142 if (!context->fGpu) { in MakeMock()
146 context->fCaps = context->fGpu->refCaps(); in MakeMock()
168 context->fGpu = GrVkGpu::Make(backendContext, options, context.get()); in MakeVulkan()
169 if (!context->fGpu) { in MakeVulkan()
173 context->fCaps = context->fGpu->refCaps(); in MakeVulkan()
192 context->fGpu = GrMtlTrampoline::MakeGpu(context.get(), options, device, queue); in MakeMetal()
[all …]
DGrResourceProvider.cpp45 , fGpu(gpu) in GrResourceProvider()
58 fCaps = sk_ref_sp(fGpu->caps()); in GrResourceProvider()
79 return fGpu->createTexture(desc, budgeted, texels, mipLevelCount); in createTexture()
111 GrContext* context = fGpu->getContext(); in createTexture()
138 return fGpu->createTexture(desc, budgeted, &mipLevel, 1); in createTexture()
161 return fGpu->createTexture(desc, budgeted); in createTexture()
190 (fGpu->caps()->reuseScratchTextures() || (desc.fFlags & kRenderTarget_GrSurfaceFlag))) { in createApproxTexture()
200 return fGpu->createTexture(*copyDesc, SkBudgeted::kYes); in createApproxTexture()
212 (fGpu->caps()->reuseScratchTextures() || (desc.fFlags & kRenderTarget_GrSurfaceFlag))) { in refScratchTexture()
244 return fGpu->wrapBackendTexture(tex, ownership, cacheable, ioType); in wrapBackendTexture()
[all …]
/external/skia/src/gpu/
DGrGpuResource.cpp24 GrGpuResource::GrGpuResource(GrGpu* gpu) : fGpu(gpu), fUniqueID(CreateUniqueID()) { in GrGpuResource()
33 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCache()
42 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCacheWrapped()
51 SkASSERT(fGpu); in release()
53 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in release()
54 fGpu = nullptr; in release()
62 SkASSERT(fGpu); in abandon()
64 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in abandon()
65 fGpu = nullptr; in abandon()
115 if (fGpu) { in getContext()
[all …]
DGrLegacyDirectContext.cpp134 context->fGpu = GrGLGpu::Make(std::move(interface), options, context.get()); in MakeGL()
135 if (!context->fGpu) { in MakeGL()
139 if (!context->init(context->fGpu->refCaps(), nullptr)) { in MakeGL()
154 context->fGpu = GrMockGpu::Make(mockOptions, options, context.get()); in MakeMock()
155 if (!context->fGpu) { in MakeMock()
159 if (!context->init(context->fGpu->refCaps(), nullptr)) { in MakeMock()
180 context->fGpu = GrVkGpu::Make(backendContext, options, context.get()); in MakeVulkan()
181 if (!context->fGpu) { in MakeVulkan()
185 if (!context->init(context->fGpu->refCaps(), nullptr)) { in MakeVulkan()
203 context->fGpu = GrMtlTrampoline::MakeGpu(context.get(), options, device, queue); in MakeMetal()
[all …]
DGrContext.cpp77 if (fGpu) { in init()
79 fResourceProvider = new GrResourceProvider(fGpu.get(), fResourceCache, this->singleOwner(), in init()
123 fGpu->disconnect(GrGpu::DisconnectType::kAbandon); in abandonContext()
142 fGpu->disconnect(GrGpu::DisconnectType::kCleanup); in releaseResourcesAndAbandonContext()
149 fGpu->resetTextureBindings(); in resetGLTextureBindings()
154 fGpu->markContextDirty(state); in resetContext()
236 if (!fGpu || fGpu->caps()->fenceSyncSupport()) { in wait()
243 fGpu->waitSemaphore(std::move(sema)); in wait()
276 if (fGpu) { in storeVkPipelineCacheData()
277 fGpu->storeVkPipelineCacheData(); in storeVkPipelineCacheData()
DGrResourceProvider.cpp36 , fGpu(gpu) in GrResourceProvider()
42 fCaps = sk_ref_sp(fGpu->caps()); in GrResourceProvider()
60 return fGpu->createTexture(desc, budgeted, texels, mipLevelCount); in createTexture()
92 GrContext* context = fGpu->getContext(); in createTexture()
119 return fGpu->createTexture(desc, budgeted, &mipLevel, 1); in createTexture()
142 return fGpu->createTexture(desc, budgeted); in createTexture()
171 (fGpu->caps()->reuseScratchTextures() || (desc.fFlags & kRenderTarget_GrSurfaceFlag))) { in createApproxTexture()
181 return fGpu->createTexture(*copyDesc, SkBudgeted::kYes); in createApproxTexture()
193 (fGpu->caps()->reuseScratchTextures() || (desc.fFlags & kRenderTarget_GrSurfaceFlag))) { in refScratchTexture()
225 return fGpu->wrapBackendTexture(tex, ownership, cacheable, ioType); in wrapBackendTexture()
[all …]
/external/skqp/src/gpu/vk/
DGrVkGpuCommandBuffer.cpp41 fGpu->copySurface(fTexture, fOrigin, copyInfo.fSrc, copyInfo.fSrcOrigin, copyInfo.fSrcRect, in submit()
82 , fGpu(gpu) in GrVkGpuRTCommandBuffer()
97 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in init()
101 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in init()
126 cbInfo.fCommandBuffers.push_back(fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu)); in init()
127 cbInfo.currentCmdBuf()->begin(fGpu, vkRT->framebuffer(), cbInfo.fRenderPass); in init()
143 cbInfo.currentCmdBuf()->begin(fGpu, nullptr, cbInfo.fRenderPass); in initWrapped()
150 GrGpu* GrVkGpuRTCommandBuffer::gpu() { return fGpu; } in gpu()
154 fCommandBufferInfos[fCurrentCmdInfo].currentCmdBuf()->end(fGpu); in end()
177 fGpu->copySurface(fRenderTarget, fOrigin, copyInfo.fSrc, copyInfo.fSrcOrigin, in submit()
[all …]
DGrVkResourceProvider.cpp27 : fGpu(gpu) in GrVkResourceProvider()
47 auto persistentCache = fGpu->getContext()->contextPriv().getPersistentCache(); in pipelineCache()
62 const VkPhysicalDeviceProperties& devProps = fGpu->physicalDeviceProperties(); in pipelineCache()
76 VkResult result = GR_VK_CALL(fGpu->vkInterface(), in pipelineCache()
77 CreatePipelineCache(fGpu->device(), &createInfo, nullptr, in pipelineCache()
89 GrVkDescriptorSetManager* dsm = GrVkDescriptorSetManager::CreateUniformManager(fGpu); in init()
104 return GrVkPipeline::Create(fGpu, numColorSamples, primProc, pipeline, stencil, shaderStageInfo, in createPipeline()
121 pipeline = GrVkCopyPipeline::Create(fGpu, shaderStageInfo, in findOrCreateCopyPipeline()
154 fRenderPassArray.emplace_back(fGpu, target).getCompatibleRenderPass(); in findCompatibleRenderPass()
214 const GrVkRenderPass* renderPass = compatibleSet.getRenderPass(fGpu, in findRenderPass()
[all …]
DGrVkPipelineStateCache.cpp27 : fGpu(gpu) in Entry()
32 fPipelineState->freeGPUResources(fGpu); in ~Entry()
36 GrVkGpu* fGpu; member
42 , fGpu(gpu) in PipelineStateCache()
99 primitiveType, fGpu)) { in refPipelineState()
100 GrCapsDebugf(fGpu->caps(), "Failed to build vk program descriptor!\n"); in refPipelineState()
115 fGpu, renderTarget, origin, primProc, primProcProxies, pipeline, stencil, in refPipelineState()
120 entry = fMap.insert(desc, std::unique_ptr<Entry>(new Entry(fGpu, pipelineState))); in refPipelineState()
DGrVkPipelineStateBuilder.cpp50 , fGpu(gpu) in GrVkPipelineStateBuilder()
55 return fGpu->caps(); in caps()
82 if (!GrCompileVkShaderModule(fGpu, shaderString.c_str(), stage, shaderModule, in createVkShaderModule()
102 if (!GrInstallVkShaderModule(fGpu, spirv, stage, shaderModule, stageInfo)) { in installVkShaderModule()
240 GrVkResourceProvider& resourceProvider = fGpu->resourceProvider(); in finalize()
261 GR_VK_CALL_ERRCHECK(fGpu->vkInterface(), CreatePipelineLayout(fGpu->device(), in finalize()
283 auto persistentCache = fGpu->getContext()->contextPriv().getPersistentCache(); in finalize()
342 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), vertShaderModule, in finalize()
344 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), fragShaderModule, in finalize()
349 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), geomShaderModule, in finalize()
[all …]
/external/skia/src/gpu/vk/
DGrVkGpuCommandBuffer.cpp42 fGpu->copySurface(fTexture, fOrigin, copyInfo.fSrc.get(), copyInfo.fSrcOrigin, in submit()
83 , fGpu(gpu) in GrVkGpuRTCommandBuffer()
98 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(rpHandle, in init()
102 cbInfo.fRenderPass = fGpu->resourceProvider().findRenderPass(*vkRT, in init()
127 cbInfo.fCommandBuffers.push_back(fGpu->cmdPool()->findOrCreateSecondaryCommandBuffer(fGpu)); in init()
128 cbInfo.currentCmdBuf()->begin(fGpu, vkRT->framebuffer(), cbInfo.fRenderPass); in init()
144 cbInfo.currentCmdBuf()->begin(fGpu, nullptr, cbInfo.fRenderPass); in initWrapped()
151 GrGpu* GrVkGpuRTCommandBuffer::gpu() { return fGpu; } in gpu()
155 fCommandBufferInfos[fCurrentCmdInfo].currentCmdBuf()->end(fGpu); in end()
178 fGpu->copySurface(fRenderTarget, fOrigin, copyInfo.fSrc.get(), copyInfo.fSrcOrigin, in submit()
[all …]
DGrVkResourceProvider.cpp27 : fGpu(gpu) in GrVkResourceProvider()
47 auto persistentCache = fGpu->getContext()->priv().getPersistentCache(); in pipelineCache()
62 const VkPhysicalDeviceProperties& devProps = fGpu->physicalDeviceProperties(); in pipelineCache()
76 VkResult result = GR_VK_CALL(fGpu->vkInterface(), in pipelineCache()
77 CreatePipelineCache(fGpu->device(), &createInfo, nullptr, in pipelineCache()
89 GrVkDescriptorSetManager* dsm = GrVkDescriptorSetManager::CreateUniformManager(fGpu); in init()
104 return GrVkPipeline::Create(fGpu, numColorSamples, primProc, pipeline, stencil, shaderStageInfo, in createPipeline()
121 pipeline = GrVkCopyPipeline::Create(fGpu, shaderStageInfo, in findOrCreateCopyPipeline()
154 fRenderPassArray.emplace_back(fGpu, target).getCompatibleRenderPass(); in findCompatibleRenderPass()
214 const GrVkRenderPass* renderPass = compatibleSet.getRenderPass(fGpu, in findRenderPass()
[all …]
DGrVkPipelineStateCache.cpp27 : fGpu(gpu) in Entry()
32 fPipelineState->freeGPUResources(fGpu); in ~Entry()
36 GrVkGpu* fGpu; member
42 , fGpu(gpu) in PipelineStateCache()
99 primitiveType, fGpu)) { in refPipelineState()
100 GrCapsDebugf(fGpu->caps(), "Failed to build vk program descriptor!\n"); in refPipelineState()
115 fGpu, renderTarget, origin, primProc, primProcProxies, pipeline, stencil, in refPipelineState()
120 entry = fMap.insert(desc, std::unique_ptr<Entry>(new Entry(fGpu, pipelineState))); in refPipelineState()
DGrVkPipelineStateBuilder.cpp50 , fGpu(gpu) in GrVkPipelineStateBuilder()
55 return fGpu->caps(); in caps()
82 if (!GrCompileVkShaderModule(fGpu, shaderString.c_str(), stage, shaderModule, in createVkShaderModule()
102 if (!GrInstallVkShaderModule(fGpu, spirv, stage, shaderModule, stageInfo)) { in installVkShaderModule()
240 GrVkResourceProvider& resourceProvider = fGpu->resourceProvider(); in finalize()
261 GR_VK_CALL_ERRCHECK(fGpu->vkInterface(), CreatePipelineLayout(fGpu->device(), in finalize()
284 auto persistentCache = fGpu->getContext()->priv().getPersistentCache(); in finalize()
337 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), vertShaderModule, in finalize()
339 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), fragShaderModule, in finalize()
344 GR_VK_CALL(fGpu->vkInterface(), DestroyShaderModule(fGpu->device(), geomShaderModule, in finalize()
[all …]
/external/skqp/src/gpu/gl/
DGrGLGpuCommandBuffer.h22 GrGLGpuTextureCommandBuffer(GrGLGpu* gpu) : fGpu(gpu) {} in GrGLGpuTextureCommandBuffer()
26 fGpu->copySurface(fTexture, fOrigin, src, srcOrigin, srcRect, dstPoint); in copy()
30 fGpu->insertEventMarker(msg); in insertEventMarker()
38 GrGLGpu* fGpu;
50 GrGLGpuRTCommandBuffer(GrGLGpu* gpu) : fGpu(gpu) {} in GrGLGpuRTCommandBuffer()
58 fGpu->insertEventMarker(msg); in insertEventMarker()
67 fGpu->copySurface(fRenderTarget, fOrigin, src, srcOrigin, srcRect, dstPoint); in copy()
79 GrGpu* gpu() override { return fGpu; } in gpu()
88 fGpu->draw(fRenderTarget, fOrigin, primProc, pipeline, fixedDynamicState, in onDraw()
93 fGpu->clear(clip, color, fRenderTarget, fOrigin); in onClear()
[all …]
DGrGLProgramDataManager.cpp20 : fGpu(gpu) in GrGLProgramDataManager()
40 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in GrGLProgramDataManager()
59 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i + startUnit)); in setSamplerUniforms()
69 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i()
81 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv()
90 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f()
106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv()
115 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i()
127 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv()
136 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f()
[all …]
DGrGLProgram.cpp23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
24 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X)
55 , fGpu(gpu) in GrGLProgram()
103 fGpu->bindTexture(nextTexSamplerIdx++, GrSamplerState::ClampNearest(), in updateUniformsAndTextureBindings()
113 fGpu->bindTexture(i, primProc.textureSampler(i).samplerState(), tex); in updatePrimitiveProcessorTextureBindings()
126 fGpu->bindTexture((*nextTexSamplerIdx)++, sampler.samplerState(), in setFragmentData()
161 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in setRenderTargetState()
163 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), in setRenderTargetState()
/external/skia/src/gpu/gl/
DGrGLGpuCommandBuffer.h22 GrGLGpuTextureCommandBuffer(GrGLGpu* gpu) : fGpu(gpu) {} in GrGLGpuTextureCommandBuffer()
26 fGpu->copySurface(fTexture, fOrigin, src, srcOrigin, srcRect, dstPoint); in copy()
30 fGpu->insertEventMarker(msg); in insertEventMarker()
38 GrGLGpu* fGpu;
50 GrGLGpuRTCommandBuffer(GrGLGpu* gpu) : fGpu(gpu) {} in GrGLGpuRTCommandBuffer()
58 fGpu->insertEventMarker(msg); in insertEventMarker()
67 fGpu->copySurface(fRenderTarget, fOrigin, src, srcOrigin, srcRect, dstPoint); in copy()
79 GrGpu* gpu() override { return fGpu; } in gpu()
88 fGpu->draw(fRenderTarget, fOrigin, primProc, pipeline, fixedDynamicState, in onDraw()
93 fGpu->clear(clip, color, fRenderTarget, fOrigin); in onClear()
[all …]
DGrGLProgramDataManager.cpp20 : fGpu(gpu) in GrGLProgramDataManager()
40 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in GrGLProgramDataManager()
59 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i + startUnit)); in setSamplerUniforms()
69 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i()
81 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv()
90 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f()
106 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv()
115 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i()
127 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv()
136 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f()
[all …]
DGrGLProgram.cpp23 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
24 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X)
55 , fGpu(gpu) in GrGLProgram()
103 fGpu->bindTexture(nextTexSamplerIdx++, GrSamplerState::ClampNearest(), in updateUniformsAndTextureBindings()
113 fGpu->bindTexture(i, primProc.textureSampler(i).samplerState(), tex); in updatePrimitiveProcessorTextureBindings()
126 fGpu->bindTexture((*nextTexSamplerIdx)++, sampler.samplerState(), in setFragmentData()
161 SkASSERT(fGpu->glCaps().shaderCaps()->pathRenderingSupport()); in setRenderTargetState()
163 fGpu->glPathRendering()->setProjectionMatrix(pathProc.viewMatrix(), in setRenderTargetState()
DGrGLGpuCommandBuffer.cpp16 fGpu->clear(GrFixedClip::Disabled(), fColorLoadAndStoreInfo.fClearColor, in begin()
22 fGpu->clearStencil(fRenderTarget, 0x0); in begin()
30 SkASSERT(fGpu); in set()
32 SkASSERT(fGpu == rt->getContext()->priv().getGpu()); in set()
/external/skia/src/gpu/mtl/
DGrMtlResourceProvider.mm19 : fGpu(gpu) { function
36 fGpu, dstPixelFormat, vertexFunction, fragmentFunction, vertexDescriptor));
57 : fGpu(gpu)
60 GrMtlGpu* fGpu;
66 , fGpu(gpu) function
103 fGpu)) {
104 GrCapsDebugf(fGpu->caps(), "Failed to build mtl program descriptor!\n");
119 fGpu, renderTarget, origin, primProc, primProcProxies, pipeline, &desc));
123 entry = fMap.insert(desc, std::unique_ptr<Entry>(new Entry(fGpu, pipelineState)));
/external/skqp/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp72 , fGpu(gpu) in GrGLProgramBuilder()
81 return fGpu->caps(); in caps()
180 if (fGpu->glCaps().programBinarySupport()) { in storeShaderInCache()
240 bool checkLinked = kChromium_GrGLDriver != fGpu->ctxInfo().driver(); in finalize()
251 if (fGpu->glCaps().programBinarySupport()) { in finalize()
276 if (!cached || !fGpu->glCaps().programBinarySupport()) { in finalize()
351 GrGLPrintShader(fGpu->glContext(), in finalize()
359 GrGLPrintShader(fGpu->glContext(), in finalize()
366 GrGLPrintShader(fGpu->glContext(), in finalize()
386 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
[all …]
/external/skia/src/gpu/gl/builders/
DGrGLProgramBuilder.cpp72 , fGpu(gpu) in GrGLProgramBuilder()
81 return fGpu->caps(); in caps()
222 if (fGpu->glCaps().programBinarySupport()) { in storeShaderInCache()
289 bool checkLinked = kChromium_GrGLDriver != fGpu->ctxInfo().driver(); in finalize()
297 if (fGpu->glCaps().programBinarySupport()) { in finalize()
331 if (!cached || !fGpu->glCaps().programBinarySupport()) { in finalize()
420 GrGLPrintShader(fGpu->glContext(), in finalize()
428 GrGLPrintShader(fGpu->glContext(), in finalize()
435 GrGLPrintShader(fGpu->glContext(), in finalize()
455 fUniformHandler.bindUniformLocations(programID, fGpu->glCaps()); in bindProgramResourceLocations()
[all …]

1234