Home
last modified time | relevance | path

Searched refs:fGpu (Results 1 - 25 of 78) sorted by relevance

1234

/third_party/skia/src/gpu/gl/
H A DGrGLOpsRenderPass.cpp18 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
23 SkASSERT(fGpu); in set()
25 SkASSERT(fGpu == rt->getContext()->priv().getGpu()); in set()
35 if (fGpu->glCaps().framebufferResolvesMustBeFullSize()) { in dmsaaLoadStoreBounds()
53 if (fGpu->glCaps().canResolveSingleToMSAA()) { in onBegin()
54 fGpu->resolveRenderFBOs(glRT, this->dmsaaLoadStoreBounds().asSkIRect(), in onBegin()
57 fGpu->drawSingleIntoMSAAFBO(glRT, this->dmsaaLoadStoreBounds().asSkIRect()); in onBegin()
61 fGpu->beginCommandBuffer(glRT, fUseMultisampleFBO, fContentBounds, fOrigin, in onBegin()
67 fGpu->endCommandBuffer(glRT, fUseMultisampleFBO, fColorLoadAndStoreInfo, in onEnd()
74 fGpu in onEnd()
[all...]
H A DGrGLProgramDataManager.cpp18 : fGpu(gpu) { in GrGLProgramDataManager()
39 GR_GL_CALL(fGpu->glInterface(), Uniform1i(sampler.fLocation, i + startUnit)); in setSamplerUniforms()
50 GR_GL_CALL(fGpu->glInterface(), Uniform1i(uni.fLocation, i)); in set1i()
62 GR_GL_CALL(fGpu->glInterface(), Uniform1iv(uni.fLocation, arrayCount, v)); in set1iv()
71 GR_GL_CALL(fGpu->glInterface(), Uniform1f(uni.fLocation, v0)); in set1f()
87 GR_GL_CALL(fGpu->glInterface(), Uniform1fv(uni.fLocation, arrayCount, v)); in set1fv()
96 GR_GL_CALL(fGpu->glInterface(), Uniform2i(uni.fLocation, i0, i1)); in set2i()
108 GR_GL_CALL(fGpu->glInterface(), Uniform2iv(uni.fLocation, arrayCount, v)); in set2iv()
117 GR_GL_CALL(fGpu->glInterface(), Uniform2f(uni.fLocation, v0, v1)); in set2f()
129 GR_GL_CALL(fGpu in set2fv()
[all...]
H A DGrGLProgram.cpp22 #define GL_CALL(X) GR_GL_CALL(fGpu->glInterface(), X)
23 #define GL_CALL_RET(R, X) GR_GL_CALL_RET(fGpu->glInterface(), R, X)
83 , fGpu(gpu) in GrGLProgram()
109 fGPImpl->setData(fProgramDataManager, *fGpu->caps()->shaderCaps(), programInfo.geomProc()); in updateUniforms()
130 fGpu->bindTexture(i, geomProc.textureSampler(i).samplerState(), in bindTextures()
137 fGpu->bindTexture(nextTexSamplerIdx++, GrSamplerState::Filter::kNearest, in bindTextures()
145 fGpu->bindTexture(nextTexSamplerIdx++, samplerState, swizzle, texture); in bindTextures()
H A DGrGLSemaphore.cpp13 : fGpu(gpu), fSync(nullptr), fIsOwned(isOwned) { in GrGLSemaphore()
18 fGpu->deleteSync(fSync); in ~GrGLSemaphore()
/third_party/skia/src/gpu/vk/
H A DGrVkOpsRenderPass.cpp67 GrVkOpsRenderPass::GrVkOpsRenderPass(GrVkGpu* gpu) : fGpu(gpu) {} in GrVkOpsRenderPass()
82 fGpu, VK_IMAGE_LAYOUT_GENERAL, dstAccess, dstStages, false); in setAttachmentLayouts()
88 fGpu, in setAttachmentLayouts()
99 resolveAttachment->setImageLayout(fGpu, in setAttachmentLayouts()
106 fGpu, in setAttachmentLayouts()
122 vkStencil->setImageLayout(fGpu, in setAttachmentLayouts()
186 fGpu->vkCaps().mustLoadFullImageWithDiscardableMSAA(); in beginRenderPass()
209 if (!fGpu->beginRenderPass(fCurrentRenderPass, fFramebuffer, &clearColor, fRenderTarget, in beginRenderPass()
212 fCurrentSecondaryCommandBuffer->end(fGpu); in beginRenderPass()
241 fCurrentRenderPass = fGpu in init()
[all...]
H A DGrVkPipelineStateBuilder.cpp54 , fGpu(gpu) in GrVkPipelineStateBuilder()
59 return fGpu->caps(); in caps()
63 return fGpu->shaderCompiler(); in shaderCompiler()
81 if (!GrCompileVkShaderModule(fGpu, sksl, stage, shaderModule, in createVkShaderModule()
97 if (!GrInstallVkShaderModule(fGpu, spirv, stage, shaderModule, stageInfo)) { in installVkShaderModule()
136 GR_VK_CALL(fGpu->vkInterface(), in loadShadersFromCache()
137 DestroyShaderModule(fGpu->device(), outShaderModules[i], nullptr)); in loadShadersFromCache()
173 GrVkResourceProvider& resourceProvider = fGpu->resourceProvider(); in finalize()
204 auto persistentCache = fGpu->getContext()->priv().getPersistentCache(); in finalize()
263 GR_VK_CALL(fGpu in finalize()
[all...]
H A DGrVkResourceProvider.cpp24 : fGpu(gpu) in GrVkResourceProvider()
45 auto persistentCache = fGpu->getContext()->priv().getPersistentCache(); in pipelineCache()
60 const VkPhysicalDeviceProperties& devProps = fGpu->physicalDeviceProperties(); in pipelineCache()
76 GR_VK_CALL_RESULT(fGpu, result, CreatePipelineCache(fGpu->device(), &createInfo, nullptr, in pipelineCache()
87 GrVkDescriptorSetManager* dsm = GrVkDescriptorSetManager::CreateUniformManager(fGpu); in init()
91 dsm = GrVkDescriptorSetManager::CreateInputManager(fGpu); in init()
104 return GrVkPipeline::Make(fGpu, programInfo, shaderStageInfo, shaderStageCount, in makePipeline()
146 GrVkRenderPass* renderPass = GrVkRenderPass::CreateSimple(fGpu, desc, attachmentFlags, in findCompatibleRenderPass()
173 const GrVkRenderPass* newRenderPass = new GrVkRenderPass(fGpu, renderPas in findCompatibleExternalRenderPass()
[all...]
H A DGrVkPipelineStateCache.cpp29 : fGpu(gpu) in Entry()
34 fPipelineState->freeGPUResources(fGpu); in ~Entry()
38 GrVkGpu* fGpu; member
44 , fGpu(gpu) { in PipelineStateCache()
90 GrProgramDesc desc = fGpu->caps()->makeDesc(renderTarget, programInfo, flags); in findOrCreatePipelineState()
92 GrCapsDebugf(fGpu->caps(), "Failed to build vk program descriptor!\n"); in findOrCreatePipelineState()
124 fGpu, desc, programInfo, compatibleRenderPass, overrideSubpassForResolveLoad)); in findOrCreatePipelineStateImpl()
128 entry = fMap.insert(desc, std::make_unique<Entry>(fGpu, pipelineState)); in findOrCreatePipelineStateImpl()
H A DGrVkManagedResource.h17 GrVkManagedResource(const GrVkGpu* gpu) : fGpu(gpu) {} in GrVkManagedResource()
20 const GrVkGpu* fGpu; // pointer to gpu object that can be used member in GrVkManagedResource
29 GrVkRecycledResource(GrVkGpu* gpu) : fGpu(gpu) {} in GrVkRecycledResource()
32 GrVkGpu* fGpu; // pointer to gpu object that can be used member in GrVkRecycledResource
H A DGrVkCommandPool.cpp70 GR_VK_CALL(fGpu->vkInterface(), in recycleSecondaryCommandBuffer()
71 FreeCommandBuffers(fGpu->device(), fCommandPool, 1, &vkBuffer)); in recycleSecondaryCommandBuffer()
104 fPrimaryCommandBuffer->freeGPUData(fGpu, fCommandPool); in freeGPUData()
106 buffer->freeGPUData(fGpu, fCommandPool); in freeGPUData()
109 GR_VK_CALL(fGpu->vkInterface(), in freeGPUData()
110 DestroyCommandPool(fGpu->device(), fCommandPool, nullptr)); in freeGPUData()
H A DGrVkMemoryReclaimer.cpp42 fWaitQueues.emplace_back(WaitQueueItem{.fGpu = gpu, .fAlloc = alloc, .fType = ItemType::BUFFER, .fBuffer = buffer}); in addMemoryToWaitQueue()
54 fWaitQueues.emplace_back(WaitQueueItem{.fGpu = gpu, .fAlloc = alloc, .fType = ItemType::IMAGE, .fImage = image}); in addMemoryToWaitQueue()
77 GrVkBuffer::DestroyAndFreeBufferMemory(item.fGpu, item.fAlloc, item.fBuffer); in invokeParallelReclaiming()
79 GrVkImage::DestroyAndFreeImageMemory(item.fGpu, item.fAlloc, item.fImage); in invokeParallelReclaiming()
/third_party/skia/src/gpu/d3d/
H A DGrD3DOpsRenderPass.cpp29 GrD3DOpsRenderPass::GrD3DOpsRenderPass(GrD3DGpu* gpu) : fGpu(gpu) {} in GrD3DOpsRenderPass()
36 SkASSERT(fGpu == rt->getContext()->priv().getGpu()); in set()
52 GrGpu* GrD3DOpsRenderPass::gpu() { return fGpu; } in gpu()
57 d3dRT->msaaTextureResource()->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET); in onBegin()
59 d3dRT->setResourceState(fGpu, D3D12_RESOURCE_STATE_RENDER_TARGET); in onBegin()
61 fGpu->currentCommandList()->setRenderTarget(d3dRT); in onBegin()
66 fGpu->currentCommandList()->clearRenderTargetView(d3dRT, fClearColor, nullptr); in onBegin()
71 d3dStencil->setResourceState(fGpu, D3D12_RESOURCE_STATE_DEPTH_WRITE); in onBegin()
73 fGpu->currentCommandList()->clearDepthStencilView(d3dStencil, 0, nullptr); in onBegin()
181 fGpu in onBindPipeline()
[all...]
H A DGrD3DResourceProvider.cpp22 : fGpu(gpu) in GrD3DResourceProvider()
43 return GrD3DDirectCommandList::Make(fGpu); in findOrCreateDirectCommandList()
60 auto rootSig = GrD3DRootSignature::Make(fGpu, numTextureSamplers, numUAVs); in findOrCreateRootSignature()
76 auto commandSig = GrD3DCommandSignature::Make(fGpu, indexed, slot); in findOrCreateCommandSignature()
86 return fCpuDescriptorManager.createRenderTargetView(fGpu, textureResource); in createRenderTargetView()
96 return fCpuDescriptorManager.createDepthStencilView(fGpu, textureResource); in createDepthStencilView()
106 return fCpuDescriptorManager.createConstantBufferView(fGpu, bufferResource, offset, size); in createConstantBufferView()
111 return fCpuDescriptorManager.createShaderResourceView(fGpu, resource, highestMip, mipLevels); in createShaderResourceView()
116 return fCpuDescriptorManager.createUnorderedAccessView(fGpu, resource, mipSlice); in createUnorderedAccessView()
175 fGpu, filte in findOrCreateCompatibleSampler()
301 GrD3DGpu* fGpu; global() member
[all...]
H A DGrD3DPipelineStateBuilder.cpp55 , fGpu(gpu) in GrD3DPipelineStateBuilder()
61 return fGpu->caps(); in caps()
65 return fGpu->shaderCompiler(); in shaderCompiler()
128 shaders[shaderType] = GrCompileHLSLShader(fGpu, hlsl[shaderType], kind); in loadHLSLFromCache()
148 std::unique_ptr<SkSL::Program> program = fGpu->shaderCompiler()->convertProgram( in compileD3DProgram()
150 if (!program || !fGpu->shaderCompiler()->toHLSL(*program, outHLSL)) { in compileD3DProgram()
151 auto errorHandler = fGpu->getContext()->priv().getShaderErrorHandler(); in compileD3DProgram()
153 fGpu->shaderCompiler()->errorText().c_str()); in compileD3DProgram()
174 return GrCompileHLSLShader(fGpu, *outHLSL, kind); in compileD3DProgram()
576 auto persistentCache = fGpu in finalize()
[all...]
H A DGrD3DResourceProvider.h115 GrD3DGpu* fGpu; member in GrD3DResourceProvider::PipelineStateCache
125 DescriptorTableCache(GrD3DGpu* gpu) : fGpu(gpu), fMap(64) { in DescriptorTableCache()
141 GrD3DGpu* fGpu; member in GrD3DResourceProvider::DescriptorTableCache
156 GrD3DGpu* fGpu; member in GrD3DResourceProvider
/third_party/skia/src/gpu/
H A DGrGpuResource.cpp24 GrGpuResource::GrGpuResource(GrGpu* gpu) : fGpu(gpu), fUniqueID(CreateUniqueID()) { in GrGpuResource()
26 auto cache = get_resource_cache(fGpu); in GrGpuResource()
37 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCache()
46 get_resource_cache(fGpu)->resourceAccess().insertResource(this); in registerWithCacheWrapped()
55 SkASSERT(fGpu); in release()
57 if (!fGpu) { in release()
58 SkDebugf("OHOS GrGpuResource::release(), fGpu == nullptr"); in release()
62 get_resource_cache(fGpu)->resourceAccess().removeResource(this); in release()
63 fGpu = nullptr; in release()
71 SkASSERT(fGpu); in abandon()
[all...]
H A DGrDirectContext.cpp90 if (fGpu) { in ~GrDirectContext()
116 fGpu->resetTextureBindings(); in resetGLTextureBindings()
121 fGpu->markContextDirty(state); in resetContext()
143 fGpu->disconnect(GrGpu::DisconnectType::kAbandon); in abandonContext()
159 if (fGpu && fGpu->isDeviceLost()) { in abandoned()
166 bool GrDirectContext::oomed() { return fGpu ? fGpu->checkAndResetOOMed() : false; } in oomed()
186 fGpu->disconnect(GrGpu::DisconnectType::kCleanup); in releaseResourcesAndAbandonContext()
219 if (!fGpu) { in init()
[all...]
H A DGrFinishCallbacks.cpp11 GrFinishCallbacks::GrFinishCallbacks(GrGpu* gpu) : fGpu(gpu) {} in GrFinishCallbacks()
23 callback.fFence = fGpu->insertFence(); in add()
29 while (!fCallbacks.empty() && fGpu->waitFence(fCallbacks.front().fFence)) { in check()
31 fGpu->deleteFence(fCallbacks.front().fFence); in check()
40 fGpu->deleteFence(fCallbacks.front().fFence); in callAll()
H A DGrOpFlushState.cpp29 , fGpu(gpu) in GrOpFlushState()
34 return *fGpu->caps(); in caps()
38 return fGpu->getContext()->priv().threadSafeCache(); in threadSafeCache()
111 if (!fGpu->caps()->surfaceSupportsWritePixels(dstSurface)) { in doUpload()
114 GrCaps::SupportedWrite supportedWrite = fGpu->caps()->supportedWritePixelsColorType( in doUpload()
120 (!fGpu->caps()->writePixelsRowBytesSupport() && rowBytes != tightRB)) { in doUpload()
133 return this->fGpu->writePixels(dstSurface, in doUpload()
217 return fGpu->getContext()->priv().getGrStrikeCache(); in strikeCache()
221 return fGpu->getContext()->priv().getAtlasManager(); in atlasManager()
225 return fGpu in smallPathAtlasManager()
[all...]
H A DGrResourceProvider.cpp36 , fGpu(gpu) in GrResourceProvider()
41 fCaps = sk_ref_sp(fGpu->caps()); in GrResourceProvider()
99 return fGpu->createTexture(dimensions, in createTexture()
191 return fGpu->createCompressedTexture(dimensions, format, budgeted, mipmapped, in createCompressedTexture()
194 return fGpu->createCompressedTexture(dimensions, format, budgeted, mipmapped, in createCompressedTexture()
235 return fGpu->createTexture(dimensions, in createTexture()
303 return fGpu->createTexture(copyDimensions, in createApproxTexture()
319 fGpu->stats()->incNumScratchTexturesReused(); in findAndRefScratchTexture()
341 if (fGpu->caps()->reuseScratchTextures() || renderable == GrRenderable::kYes) { in findAndRefScratchTexture()
359 return fGpu in wrapBackendTexture()
[all...]
H A DGrBufferAllocPool.cpp92 , fGpu(gpu) in GrBufferAllocPool()
350 if (GrCaps::kNone_MapFlags != fGpu->caps()->mapBufferFlags() && in createBlock()
351 size > fGpu->caps()->bufferMapThreshold()) { in createBlock()
382 bool mustInitialize = fGpu->caps()->mustClearUploadedBufferData(); in resetCpuData()
396 if (GrCaps::kNone_MapFlags != fGpu->caps()->mapBufferFlags() && in flushCpuData()
397 flushSize > fGpu->caps()->bufferMapThreshold()) { in flushCpuData()
410 const GrCaps& caps = *fGpu->caps(); in getBuffer()
411 auto resourceProvider = fGpu->getContext()->priv().resourceProvider(); in getBuffer()
/third_party/skia/src/gpu/gl/builders/
H A DGrGLProgramBuilder.cpp83 , fGpu(gpu) in GrGLProgramBuilder()
92 return fGpu->caps(); in caps()
96 return fGpu->shaderCompiler(); in shaderCompiler()
166 SkString description = GrProgramDesc::Describe(fProgramInfo, *fGpu->caps()); in storeShaderInCache()
167 if (fGpu->glCaps().programBinarySupport()) { in storeShaderInCache()
267 bool checkLinked = !fGpu->glCaps().skipErrorChecks(); in finalize()
292 if (!fGpu->glCaps().programBinarySupport()) { in finalize()
364 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
380 cleanup_program(fGpu, programID, shadersToDelete); in finalize()
396 cleanup_program(fGpu, programI in finalize()
[all...]
/third_party/skia/src/gpu/dawn/
H A DGrDawnOpsRenderPass.cpp47 , fGpu(gpu) in GrDawnOpsRenderPass()
49 fEncoder = fGpu->device().CreateCommandEncoder(); in GrDawnOpsRenderPass()
93 GrGpu* GrDawnOpsRenderPass::gpu() { return fGpu; } in gpu()
96 fGpu->appendCommandBuffer(fEncoder.Finish()); in submit()
116 fGpu->submitToGpu(false); in inlineUpload()
123 auto bindGroup = program->setUniformData(fGpu, fRenderTarget, programInfo); in applyState()
147 fCurrentProgram = fGpu->getOrCreateRenderPipeline(fRenderTarget, programInfo); in onBindPipeline()
168 auto bindGroup = fCurrentProgram->setTextures(fGpu, geomProc, pipeline, geomProcTextures); in onBindTextures()
200 fGpu->stats()->incNumDraws(); in onDrawInstanced()
211 fGpu in onDrawIndexedInstanced()
[all...]
/third_party/skia/experimental/graphite/src/
H A DContext.cpp24 Context::Context(sk_sp<Gpu> gpu) : fGpu(std::move(gpu)) {} in Context()
51 fGpu->submit(fRecordings[0]->fCommandBuffer); in submit()
53 fGpu->checkForFinishedWork(syncToCpu); in submit()
/third_party/skia/src/gpu/mock/
H A DGrMockOpsRenderPass.h21 , fGpu(gpu) in GrMockOpsRenderPass()
25 GrGpu* gpu() override { return fGpu; }
65 GrMockGpu* fGpu; member in GrMockOpsRenderPass

Completed in 16 milliseconds

1234