Home
last modified time | relevance | path

Searched refs:CoverageMode (Results 1 – 6 of 6) sorted by relevance

/external/skia/src/gpu/ops/
DGrQuadPerEdgeAA.cpp38 GrQuadPerEdgeAA::CoverageMode mode = spec.coverageMode(); in write_quad_generic()
44 If(mode == GrQuadPerEdgeAA::CoverageMode::kWithPosition, coverage[i])); in write_quad_generic()
50 color * (mode == GrQuadPerEdgeAA::CoverageMode::kWithColor ? coverage[i] : 1.f), in write_quad_generic()
84 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kNone || in write_2d_color()
85 spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kWithColor); in write_2d_color()
96 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kWithColor || in write_2d_color()
111 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kNone); in write_2d_uv()
131 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kNone || in write_2d_color_uv()
132 spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kWithColor); in write_2d_color_uv()
141 SkASSERT(spec.coverageMode() == GrQuadPerEdgeAA::CoverageMode::kWithColor || in write_2d_color_uv()
[all …]
DGrQuadPerEdgeAA.h31 enum class CoverageMode { kNone, kWithPosition, kWithColor }; enum
100 CoverageMode coverageMode() const;
/external/skqp/src/gpu/ops/
DGrQuadPerEdgeAA.cpp314 enum class CoverageMode { enum
320 static CoverageMode get_mode_for_spec(const GrQuadPerEdgeAA::VertexSpec& spec) { in get_mode_for_spec()
323 return CoverageMode::kWithColor; in get_mode_for_spec()
325 return CoverageMode::kWithPosition; in get_mode_for_spec()
328 return CoverageMode::kNone; in get_mode_for_spec()
335 CoverageMode mode, float coverage, in write_quad()
342 if (mode == CoverageMode::kWithColor) { in write_quad()
353 If(mode == CoverageMode::kWithPosition, coverage)); in write_quad()
406 CoverageMode mode = get_mode_for_spec(spec); in Tessellate()
423 SkASSERT(mode == CoverageMode::kWithPosition || mode == CoverageMode::kWithColor); in Tessellate()
[all …]
/external/skia/samplecode/
DSampleDegenerateQuads.cpp240 , fCoverageMode(CoverageMode::kArea) { in DegenerateQuadSample()
301 if (fCoverageMode == CoverageMode::kArea) { in onDrawContent()
303 } else if (fCoverageMode == CoverageMode::kEdgeDistance) { in onDrawContent()
307 SkASSERT(fCoverageMode == CoverageMode::kGPUMesh); in onDrawContent()
328 if (fCoverageMode == CoverageMode::kEdgeDistance) { in onDrawContent()
345 if (fCoverageMode == CoverageMode::kGPUMesh) { in onDrawContent()
392 enum class CoverageMode { enum in DegenerateQuadSample
399 CoverageMode fCoverageMode;
514 fCoverageMode = CoverageMode::kArea; in onChar()
517 fCoverageMode = CoverageMode::kEdgeDistance; in onChar()
[all …]
/external/skia/src/gpu/
DGrTestUtils.h136 enum CoverageMode { in GrRandomCoverage() enum
143 CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1)); in GrRandomCoverage()
/external/skqp/src/gpu/
DGrTestUtils.h133 enum CoverageMode { in GrRandomCoverage() enum
140 CoverageMode colorMode = CoverageMode(random->nextULessThan(kLast_CoverageMode + 1)); in GrRandomCoverage()