/third_party/flutter/skia/src/gpu/ |
D | GrGpuCommandBuffer.cpp | 36 bool GrGpuRTCommandBuffer::draw(const GrPrimitiveProcessor& primProc, const GrPipeline& pipeline, in draw() argument 41 SkASSERT(!primProc.hasInstanceAttributes() || this->gpu()->caps()->instanceAttribSupport()); in draw() 45 SkASSERT(primProc.hasVertexAttributes() == meshes[i].hasVertexData()); in draw() 46 SkASSERT(primProc.hasInstanceAttributes() == meshes[i].hasInstanceData()); in draw() 57 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in draw() 62 int n = primProc.numTextureSamplers() * meshCount; in draw() 70 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in draw() 76 primProcProxies[j*primProc.numTextureSamplers() + i]; in draw() 85 if (primProc.numVertexAttributes() > this->gpu()->caps()->maxVertexAttributes()) { in draw() 89 this->onDraw(primProc, pipeline, fixedDynamicState, dynamicStateArrays, meshes, meshCount, in draw() [all …]
|
D | GrProgramDesc.cpp | 174 static bool gen_frag_proc_and_meta_keys(const GrPrimitiveProcessor& primProc, in gen_frag_proc_and_meta_keys() argument 180 if (!gen_frag_proc_and_meta_keys(primProc, fp.childProcessor(i), gpu, shaderCaps, b)) { in gen_frag_proc_and_meta_keys() 187 return gen_meta_key(fp, gpu, shaderCaps, primProc.getTransformKey(fp.coordTransforms(), in gen_frag_proc_and_meta_keys() 193 const GrPrimitiveProcessor& primProc, bool hasPointSize, const GrPipeline& pipeline, in Build() argument 209 primProc.getGLSLProcessorKey(shaderCaps, &b); in Build() 210 primProc.getAttributeKey(&b); in Build() 211 if (!gen_meta_key(primProc, shaderCaps, 0, &b)) { in Build() 215 GrProcessor::CustomFeatures processorFeatures = primProc.requestedFeatures(); in Build() 219 if (!gen_frag_proc_and_meta_keys(primProc, fp, gpu, shaderCaps, &b)) { in Build()
|
D | GrPathRendering.cpp | 54 const GrPrimitiveProcessor& primProc, in drawPath() argument 65 this->onDrawPath(renderTarget, origin, primProc, pipeline, fixedDynamicState, in drawPath()
|
D | GrPathProcessor.cpp | 75 const GrPrimitiveProcessor& primProc, in setData() argument 77 const GrPathProcessor& pathProc = primProc.cast<GrPathProcessor>(); in setData()
|
D | GrPathRendering.h | 112 const GrPrimitiveProcessor& primProc,
|
/third_party/flutter/skia/src/gpu/gl/ |
D | GrGLProgram.cpp | 77 const GrPrimitiveProcessor& primProc, in updateUniformsAndTextureBindings() argument 80 this->setRenderTargetState(renderTarget, origin, primProc); in updateUniformsAndTextureBindings() 88 fPrimitiveProcessor->setData(fProgramDataManager, primProc, in updateUniformsAndTextureBindings() 91 this->updatePrimitiveProcessorTextureBindings(primProc, primProcTextures); in updateUniformsAndTextureBindings() 93 int nextTexSamplerIdx = primProc.numTextureSamplers(); in updateUniformsAndTextureBindings() 110 void GrGLProgram::updatePrimitiveProcessorTextureBindings(const GrPrimitiveProcessor& primProc, in updatePrimitiveProcessorTextureBindings() argument 112 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in updatePrimitiveProcessorTextureBindings() 114 fGpu->bindTexture(i, primProc.textureSampler(i).samplerState(), in updatePrimitiveProcessorTextureBindings() 115 primProc.textureSampler(i).swizzle(), tex); in updatePrimitiveProcessorTextureBindings() 138 const GrPrimitiveProcessor& primProc) { in setRenderTargetState() argument [all …]
|
D | GrGLGpuProgramCache.cpp | 79 const GrPrimitiveProcessor& primProc, in refProgram() argument 89 if (!GrProgramDesc::Build(&desc, renderTarget, primProc, isPoints, pipeline, gpu)) { in refProgram() 104 primProc, primProcProxies, in refProgram()
|
D | GrGLGpuCommandBuffer.h | 93 void onDraw(const GrPrimitiveProcessor& primProc, in onDraw() argument 100 fGpu->draw(fRenderTarget, fOrigin, primProc, pipeline, fixedDynamicState, in onDraw()
|
/third_party/flutter/skia/src/gpu/gl/builders/ |
D | GrGLProgramBuilder.cpp | 37 const GrPrimitiveProcessor& primProc, in CreateProgram() argument 50 pipeline, primProc, primProcProxies, desc); in CreateProgram() 72 const GrPrimitiveProcessor& primProc, in GrGLProgramBuilder() argument 75 : INHERITED(renderTarget, origin, primProc, primProcProxies, pipeline, desc) in GrGLProgramBuilder() 109 const GrPrimitiveProcessor& primProc, in computeCountsAndStrides() argument 111 fVertexAttributeCnt = primProc.numVertexAttributes(); in computeCountsAndStrides() 112 fInstanceAttributeCnt = primProc.numInstanceAttributes(); in computeCountsAndStrides() 127 for (const auto& attr : primProc.vertexAttributes()) { in computeCountsAndStrides() 130 SkASSERT(fVertexStride == primProc.vertexStride()); in computeCountsAndStrides() 132 for (const auto& attr : primProc.instanceAttributes()) { in computeCountsAndStrides() [all …]
|
/third_party/flutter/skia/src/gpu/mtl/ |
D | GrMtlPipelineStateBuilder.mm | 28 const GrPrimitiveProcessor& primProc, 32 GrMtlPipelineStateBuilder builder(gpu, renderTarget, origin, pipeline, primProc, 38 return builder.finalize(renderTarget, primProc, pipeline, desc); 45 const GrPrimitiveProcessor& primProc, 48 : INHERITED(renderTarget, origin, primProc, primProcProxies, pipeline, desc) 150 static MTLVertexDescriptor* create_vertex_descriptor(const GrPrimitiveProcessor& primProc) { 154 if (primProc.hasVertexAttributes()) { 158 if (primProc.hasInstanceAttributes()) { 165 int vertexAttributeCount = primProc.numVertexAttributes(); 167 for (const auto& attribute : primProc.vertexAttributes()) { [all …]
|
D | GrMtlGpuCommandBuffer.mm | 80 const GrPrimitiveProcessor& primProc, 90 SkASSERT(SkToBool(primProcProxies) == SkToBool(primProc.numTextureSamplers())); 95 primProc, 101 pipelineState->setData(fRenderTarget, fOrigin, primProc, pipeline, primProcProxies); 102 fCurrentVertexStride = primProc.vertexStride(); 107 void GrMtlGpuRTCommandBuffer::onDraw(const GrPrimitiveProcessor& primProc, 138 for (int s = 0; s < primProc.numTextureSamplers(); ++s, ++i) { 140 prepareSampledImage(texture, primProc.textureSampler(s).samplerState().filter()); 144 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { 146 prepareSampledImage(texture, primProc.textureSampler(i).samplerState().filter()); [all …]
|
D | GrMtlPipelineState.mm | 62 const GrPrimitiveProcessor& primProc, 65 SkASSERT(primProcTextures || !primProc.numTextureSamplers()); 68 fGeometryProcessor->setData(fDataManager, primProc, 71 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { 72 const auto& sampler = primProc.textureSampler(i);
|
D | GrMtlGpuCommandBuffer.h | 81 const GrPrimitiveProcessor& primProc, 86 void onDraw(const GrPrimitiveProcessor& primProc,
|
D | GrMtlPipelineStateBuilder.h | 76 const GrPrimitiveProcessor& primProc,
|
/third_party/flutter/skia/src/gpu/vk/ |
D | GrVkPipeline.cpp | 86 static void setup_vertex_input_state(const GrPrimitiveProcessor& primProc, in setup_vertex_input_state() argument 93 if (primProc.hasVertexAttributes()) { in setup_vertex_input_state() 97 if (primProc.hasInstanceAttributes()) { in setup_vertex_input_state() 102 int vaCount = primProc.numVertexAttributes(); in setup_vertex_input_state() 105 for (const auto& attrib : primProc.vertexAttributes()) { in setup_vertex_input_state() 113 SkASSERT(vertexAttributeOffset == primProc.vertexStride()); in setup_vertex_input_state() 115 int iaCount = primProc.numInstanceAttributes(); in setup_vertex_input_state() 117 for (const auto& attrib : primProc.instanceAttributes()) { in setup_vertex_input_state() 125 SkASSERT(instanceAttributeOffset == primProc.instanceStride()); in setup_vertex_input_state() 127 if (primProc.hasVertexAttributes()) { in setup_vertex_input_state() [all …]
|
D | GrVkPipelineState.cpp | 119 const GrPrimitiveProcessor& primProc, in setAndBindUniforms() argument 124 fGeometryProcessor->setData(fDataManager, primProc, in setAndBindUniforms() 168 const GrPrimitiveProcessor& primProc, in setAndBindTextures() argument 172 SkASSERT(primProcTextures || !primProc.numTextureSamplers()); in setAndBindTextures() 181 fGeometryProcessor->setData(fDataManager, primProc, in setAndBindTextures() 183 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in setAndBindTextures() 184 const auto& sampler = primProc.textureSampler(i); in setAndBindTextures()
|
D | GrVkPipelineStateCache.cpp | 80 const GrPrimitiveProcessor& primProc, in refPipelineState() argument 98 if (!GrVkPipelineStateBuilder::Desc::Build(&desc, renderTarget, primProc, pipeline, stencil, in refPipelineState() 113 fGpu, renderTarget, origin, primProc, primProcProxies, pipeline, stencil, in refPipelineState()
|
D | GrVkGpuCommandBuffer.cpp | 667 const GrPrimitiveProcessor& primProc, in prepareDrawState() argument 684 SkASSERT(SkToBool(primProcProxies) == SkToBool(primProc.numTextureSamplers())); in prepareDrawState() 689 primProc, in prepareDrawState() 702 primProc, pipeline, cbInfo.currentCmdBuf()); in prepareDrawState() 707 pipelineState->setAndBindTextures(fGpu, primProc, pipeline, primProcProxies, in prepareDrawState() 730 void GrVkGpuRTCommandBuffer::onDraw(const GrPrimitiveProcessor& primProc, in onDraw() argument 773 for (int s = 0; s < primProc.numTextureSamplers(); ++s, ++i) { in onDraw() 775 prepareSampledImage(texture, primProc.textureSampler(s).samplerState().filter()); in onDraw() 779 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in onDraw() 781 prepareSampledImage(texture, primProc.textureSampler(i).samplerState().filter()); in onDraw() [all …]
|
D | GrVkPipelineStateBuilder.cpp | 25 const GrPrimitiveProcessor& primProc, in CreatePipelineState() argument 34 GrVkPipelineStateBuilder builder(gpu, renderTarget, origin, pipeline, primProc, in CreatePipelineState() 48 const GrPrimitiveProcessor& primProc, in GrVkPipelineStateBuilder() argument 51 : INHERITED(renderTarget, origin, primProc, primProcProxies, pipeline, desc) in GrVkPipelineStateBuilder() 335 const GrPrimitiveProcessor& primProc, in Build() argument 340 if (!INHERITED::Build(desc, renderTarget, primProc, in Build()
|
/third_party/flutter/skia/src/gpu/dawn/ |
D | GrDawnGpuCommandBuffer.cpp | 312 const GrPrimitiveProcessor& primProc, in applyState() argument 319 GrProgramDesc::Build(&desc, fRenderTarget, primProc, hasPoints, pipeline, fGpu); in applyState() 325 pipeline, primProc, primProcProxies, in applyState() 329 program->setData(primProc, fRenderTarget, fOrigin, pipeline); in applyState() 333 if (primProc.numVertexAttributes() > 0) { in applyState() 336 for (const auto& attrib : primProc.vertexAttributes()) { in applyState() 353 if (primProc.numInstanceAttributes() > 0) { in applyState() 356 for (const auto& attrib : primProc.instanceAttributes()) { in applyState() 418 void GrDawnGpuRTCommandBuffer::onDraw(const GrPrimitiveProcessor& primProc, in onDraw() argument 441 applyState(pipeline, primProc, primProcProxies, fixedDynamicState, dynamicStateArrays, in onDraw()
|
D | GrDawnProgramBuilder.cpp | 295 const GrPrimitiveProcessor& primProc, in Build() argument 301 GrDawnProgramBuilder builder(gpu, renderTarget, origin, primProc, primProcProxies, pipeline, in Build() 374 for (int i = 0; i < primProc.numTextureSamplers(); ++i) { in Build() 375 dawn::Sampler sampler = create_sampler(gpu, primProc.textureSampler(i).samplerState()); in Build() 412 const GrPrimitiveProcessor& primProc, in GrDawnProgramBuilder() argument 416 : INHERITED(renderTarget, origin, primProc, primProcProxies, pipeline, desc) in GrDawnProgramBuilder() 468 void GrDawnProgram::setData(const GrPrimitiveProcessor& primProc, in setData() argument 473 fGeometryProcessor->setData(fDataManager, primProc, in setData()
|
D | GrDawnGpuCommandBuffer.h | 71 const GrPrimitiveProcessor& primProc, 78 void onDraw(const GrPrimitiveProcessor& primProc,
|
/third_party/flutter/skia/gm/ |
D | fwidth_squircle.cpp | 120 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 122 const auto& proc = primProc.cast<FwidthSquircleTestProcessor>(); in setData()
|
/third_party/flutter/skia/src/gpu/effects/ |
D | GrBezierEffect.cpp | 28 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 30 const GrConicEffect& ce = primProc.cast<GrConicEffect>(); in setData() 279 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 281 const GrQuadEffect& qe = primProc.cast<GrQuadEffect>(); in setData()
|
/third_party/flutter/skia/src/gpu/ccpr/ |
D | GrCCPathProcessor.cpp | 108 void setData(const GrGLSLProgramDataManager& pdman, const GrPrimitiveProcessor& primProc, in setData() argument 110 const auto& proc = primProc.cast<GrCCPathProcessor>(); in setData()
|