|
int | drawTile (SkCanvas *canvas, const SkRect &rect, const SkPoint clip[4], const bool edgeAA[4], int tileID, int quadID) override |
|
void | drawBanner (SkCanvas *canvas) override |
|
virtual int | drawTile (SkCanvas *canvas, const SkRect &rect, const SkPoint clip[4], const bool edgeAA[4], int tileID, int quadID)=0 |
|
virtual void | drawBanner (SkCanvas *canvas)=0 |
|
virtual int | drawTiles (SkCanvas *canvas) |
|
| SkRefCntBase () |
|
virtual | ~SkRefCntBase () |
|
bool | unique () const |
|
void | ref () const |
|
void | unref () const |
|
Definition at line 554 of file compositor_quads.cpp.
◆ drawBanner()
void DebugTileRenderer::drawBanner |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverridevirtual |
Implements ClipTileRenderer.
Definition at line 589 of file compositor_quads.cpp.
589 {
592
594 constexpr char kFormat[] =
"Ext(%s) - Int(%s)";
595 if (fEnableAAOverride) {
599 config.
appendf(kFormat,
"yes",
"yes");
600 } else {
601 config.
appendf(kFormat,
"no",
"no");
602 }
603 } else {
604 config.
appendf(kFormat,
"yes",
"no");
605 }
607 }
void translate(SkScalar dx, SkScalar dy)
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
static void draw_text(SkCanvas *canvas, const char *text)
◆ drawTile()
Implements ClipTileRenderer.
Definition at line 570 of file compositor_quads.cpp.
571 {
572
575
577 float alpha = quadID / 10.f;
578 c.fR = c.fR * (1 - alpha) + alpha;
579 c.fG = c.fG * (1 - alpha) + alpha;
580 c.fB = c.fB * (1 - alpha) + alpha;
581 c.fA = c.fA * (1 - alpha) + alpha;
582
586 return 1;
587 }
@ kSrcOver
r = s + (1-sa)*d
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
SkCanvas::QuadAAFlags maskToFlags(const bool edgeAA[4]) const
void experimental_DrawEdgeAAQuad(const SkRect &rect, const SkPoint clip[4], QuadAAFlags aaFlags, const SkColor4f &color, SkBlendMode mode)
static constexpr int kRowCount
static constexpr int kColCount
sk_sp< SkBlender > blender SkRect rect
◆ Make()
◆ MakeAA()
◆ MakeNonAA()
The documentation for this class was generated from the following file: