Home
last modified time | relevance | path

Searched refs:edgeAA (Results 1 – 5 of 5) sorted by relevance

/external/skia/gm/
Dcompositor_quads.cpp211 const bool edgeAA[4], int tileID, int quadID) = 0;
223 bool edgeAA[4]; in drawTiles() local
232 edgeAA[0] = i == 0; // Top in drawTiles()
233 edgeAA[1] = j == kColCount - 1; // Right in drawTiles()
234 edgeAA[2] = i == kRowCount - 1; // Bottom in drawTiles()
235 edgeAA[3] = j == 0; // Left in drawTiles()
240 drawCount += this->clipTile(canvas, tileID, tile, nullptr, edgeAA, lines, 3, in drawTiles()
250 SkCanvas::QuadAAFlags maskToFlags(const bool edgeAA[4]) const { in maskToFlags()
251 unsigned flags = (edgeAA[0] * SkCanvas::kTop_QuadAAFlag) | in maskToFlags()
252 (edgeAA[1] * SkCanvas::kRight_QuadAAFlag) | in maskToFlags()
[all …]
/external/skia/src/gpu/ganesh/
DSurfaceDrawContext.h200 void fillRectWithEdgeAA(const GrClip* clip, GrPaint&& paint, GrQuadAAFlags edgeAA,
203 if (edgeAA == GrQuadAAFlags::kAll) {
209 DrawQuad quad{GrQuad::MakeFromRect(rect, viewMatrix), GrQuad(localRect), edgeAA};
225 void fillQuadWithEdgeAA(const GrClip* clip, GrPaint&& paint, GrQuadAAFlags edgeAA, in fillQuadWithEdgeAA() argument
230 GrQuad::MakeFromSkQuad(localPoints, SkMatrix::I()), edgeAA}; in fillQuadWithEdgeAA()
274 GrQuadAAFlags edgeAA, in drawTextureQuad() argument
279 GrQuad::MakeFromSkQuad(srcQuad, SkMatrix::I()), edgeAA}; in drawTextureQuad()
DSurfaceDrawContext.cpp576 GrQuadAAFlags edgeAA, in drawTexture() argument
582 edgeAA != GrQuadAAFlags::kNone) { in drawTexture()
608 DrawQuad quad{GrQuad::MakeFromRect(dstRect, viewMatrix), GrQuad(srcRect), edgeAA}; in drawTexture()
1709 GrQuadAAFlags edgeAA = (aa == GrAA::kYes) ? GrQuadAAFlags::kAll : GrQuadAAFlags::kNone; in drawStrokedLine() local
1712 this->fillQuadWithEdgeAA(clip, std::move(paint), edgeAA, viewMatrix, corners, nullptr); in drawStrokedLine()
/external/skia/tools/viewer/
DDegenerateQuadsSlide.cpp63 static SkScalar get_area_coverage(const bool edgeAA[4], const SkPoint corners[4], in get_area_coverage()
96 if (!edgeAA[i]) { in get_area_coverage()
106 if (edgeAA[i] && edgeD[i] < 0.5f) { in get_area_coverage()
116 static SkScalar get_edge_dist_coverage(const bool edgeAA[4], const SkPoint corners[4], in get_edge_dist_coverage()
142 if (!edgeAA[i] && d >= -1e-4f) { in get_edge_dist_coverage()
/external/skia/src/core/
DSkCanvas.cpp2728 void SkCanvas::onDrawEdgeAAQuad(const SkRect& r, const SkPoint clip[4], QuadAAFlags edgeAA, in onDrawEdgeAAQuad() argument
2739 this->topDevice()->drawEdgeAAQuad(r, clip, edgeAA, color, mode); in onDrawEdgeAAQuad()