Home
last modified time | relevance | path

Searched refs:GrQuadPerEdgeAA (Results 1 – 13 of 13) sorted by relevance

/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp30 static void write_quad_generic(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_quad_generic()
38 GrQuadPerEdgeAA::CoverageMode mode = spec.coverageMode(); in write_quad_generic()
44 If(mode == GrQuadPerEdgeAA::CoverageMode::kWithPosition, coverage[i])); in write_quad_generic()
48 bool wide = spec.colorType() == GrQuadPerEdgeAA::ColorType::kFloat; in write_quad_generic()
50 color * (mode == GrQuadPerEdgeAA::CoverageMode::kWithColor ? coverage[i] : 1.f), in write_quad_generic()
77 static void write_2d_color(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_2d_color()
84 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kNone || in write_2d_color()
85 spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kWithColor); in write_2d_color()
93 bool wide = spec.colorType() == GrQuadPerEdgeAA::ColorType::kFloat; in write_2d_color()
96 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kWithColor || in write_2d_color()
[all …]
DGrFillRectOp.cpp29 using VertexSpec = GrQuadPerEdgeAA::VertexSpec;
30 using ColorType = GrQuadPerEdgeAA::ColorType;
150 fColorType = GrQuadPerEdgeAA::MinColorType(colorOverride); in finalize()
158 fColorType = std::max(fColorType, GrQuadPerEdgeAA::MinColorType(iter->fColor)); in finalize()
189 auto indexBufferOption = GrQuadPerEdgeAA::CalcIndexBufferOption(fHelper.aaType(), in vertexSpec()
193 fHelper.usesLocalCoords(), GrQuadPerEdgeAA::Subset::kNo, in vertexSpec()
211 GrGeometryProcessor* gp = GrQuadPerEdgeAA::MakeProcessor(arena, vertexSpec); in onCreateProgramInfo()
249 GrQuadPerEdgeAA::Tessellator tessellator(vertexSpec, dst); in tessellate()
289 fIndexBuffer = GrQuadPerEdgeAA::GetIndexBuffer(target, vertexSpec.indexBufferOption()); in onPrepareDraws()
317 GrQuadPerEdgeAA::IssueDraw(flushState->caps(), flushState->opsRenderPass(), vertexSpec, 0, in onExecute()
[all …]
DGrTextureOp.cpp46 using Subset = GrQuadPerEdgeAA::Subset;
47 using VertexSpec = GrQuadPerEdgeAA::VertexSpec;
48 using ColorType = GrQuadPerEdgeAA::ColorType;
295 auto colorType = GrQuadPerEdgeAA::MinColorType(iter->fColor); in finalize()
296 colorType = std::max(static_cast<GrQuadPerEdgeAA::ColorType>(fMetadata.fColorType), in finalize()
299 colorType = std::max(colorType, GrQuadPerEdgeAA::ColorType::kByte); in finalize()
349 GrQuadPerEdgeAA::Subset subset, in Metadata()
390 static_assert(GrQuadPerEdgeAA::kColorTypeCount <= 4);
670 gp = GrQuadPerEdgeAA::MakeTexturedProcessor( in onCreateProgramInfo()
716 GrQuadPerEdgeAA::Tessellator tessellator(desc->fVertexSpec, vertexData); in FillInVertices()
[all …]
DGrQuadPerEdgeAA.h28 namespace GrQuadPerEdgeAA {
/external/skqp/src/gpu/ops/
DGrFillRectOp.cpp24 using VertexSpec = GrQuadPerEdgeAA::VertexSpec;
25 using ColorType = GrQuadPerEdgeAA::ColorType;
175 using Domain = GrQuadPerEdgeAA::Domain; in onPrepareDraws()
186 sk_sp<GrGeometryProcessor> gp = GrQuadPerEdgeAA::MakeProcessor(vertexSpec); in onPrepareDraws()
208 vertices = GrQuadPerEdgeAA::Tessellate(vertices, vertexSpec, fDeviceQuads[i], in onPrepareDraws()
215 vertices = GrQuadPerEdgeAA::Tessellate(vertices, vertexSpec, fDeviceQuads[i], in onPrepareDraws()
222 if (!GrQuadPerEdgeAA::ConfigureMeshIndices(target, mesh, vertexSpec, this->quadCount())) { in onPrepareDraws()
238 this->quadCount() + that->quadCount() > GrQuadPerEdgeAA::kNumAAQuadsInIndexBuffer) { in onCombineIfPossible()
DGrTextureOp.cpp39 using Domain = GrQuadPerEdgeAA::Domain;
40 using VertexSpec = GrQuadPerEdgeAA::VertexSpec;
41 using ColorType = GrQuadPerEdgeAA::ColorType;
318 v = GrQuadPerEdgeAA::Tessellate(v, spec, device, info.fColor, srcQuad, domain, in tess()
367 sk_sp<GrGeometryProcessor> gp = GrQuadPerEdgeAA::MakeTexturedProcessor( in onPrepareDraws()
425 if (!GrQuadPerEdgeAA::ConfigureMeshIndices(target, &(meshes[m]), vertexSpec, in onPrepareDraws()
DGrQuadPerEdgeAA.h23 namespace GrQuadPerEdgeAA {
DGrQuadPerEdgeAA.cpp320 static CoverageMode get_mode_for_spec(const GrQuadPerEdgeAA::VertexSpec& spec) { in get_mode_for_spec()
334 static void write_quad(GrVertexWriter* vb, const GrQuadPerEdgeAA::VertexSpec& spec, in write_quad()
392 gFillAARectIdx, kIndicesPerAAFillRect, GrQuadPerEdgeAA::kNumAAQuadsInIndexBuffer, in get_index_buffer()
398 namespace GrQuadPerEdgeAA { namespace
405 bool wideColor = GrQuadPerEdgeAA::ColorType::kHalf == spec.colorType(); in Tessellate()
/external/skia/samplecode/
DSampleDegenerateQuads.cpp410 static const GrQuadPerEdgeAA::VertexSpec kSpec = in getTessellatedPoints()
411 {GrQuad::Type::kGeneral, GrQuadPerEdgeAA::ColorType::kNone, in getTessellatedPoints()
412 GrQuad::Type::kAxisAligned, false, GrQuadPerEdgeAA::Subset::kNo, in getTessellatedPoints()
413 GrAAType::kCoverage, false, GrQuadPerEdgeAA::IndexBufferOption::kPictureFramed}; in getTessellatedPoints()
425 GrQuadPerEdgeAA::Tessellator tessellator(kSpec, (char*) vertices); in getTessellatedPoints()
/external/skqp/gn/
Dgpu.gni284 "$_src/gpu/ops/GrQuadPerEdgeAA.cpp",
285 "$_src/gpu/ops/GrQuadPerEdgeAA.h",
/external/skia/gn/
Dgpu.gni408 "$_src/gpu/ops/GrQuadPerEdgeAA.cpp",
409 "$_src/gpu/ops/GrQuadPerEdgeAA.h",
/external/skqp/
DAndroid.bp1042 "src/gpu/ops/GrQuadPerEdgeAA.cpp",
/external/skia/
DAndroid.bp655 "src/gpu/ops/GrQuadPerEdgeAA.cpp",
1639 "src/gpu/ops/GrQuadPerEdgeAA.cpp",