Definition at line 422 of file compositor_quads.cpp.
◆ CompositorGM()
Definition at line 424 of file compositor_quads.cpp.
425 : fMakeRendererFn(std::move(makeRendererFn))
DEF_SWITCHES_START aot vmservice shared library name
◆ getISize()
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 429 of file compositor_quads.cpp.
429 {
430
432
433
434
435
436
437
442 }
#define SkScalarRoundToInt(x)
static const SkScalar kCellWidth
static constexpr int kMatrixCount
static constexpr SkScalar kTileHeight
static constexpr SkScalar kTileWidth
static constexpr int kRowCount
static constexpr int kColCount
static constexpr SkISize Make(int32_t w, int32_t h)
◆ getName()
SkString CompositorGM::getName |
( |
| ) |
const |
|
inlineoverrideprotectedvirtual |
Implements skiagm::GM.
Definition at line 444 of file compositor_quads.cpp.
444 {
447 return fullName;
448 }
const char * c_str() const
void void void appendf(const char format[],...) SK_PRINTF_LIKE(2
◆ onDraw()
void CompositorGM::onDraw |
( |
SkCanvas * |
canvas | ) |
|
|
inlineoverrideprotectedvirtual |
Reimplemented from skiagm::GM.
Definition at line 455 of file compositor_quads.cpp.
455 {
456 static constexpr SkScalar kGap = 40.f;
457 static constexpr SkScalar kBannerWidth = 120.f;
459
461 drawCounts.push_back_n(fRenderers.
size(), 0);
462
465 for (
int i = 0;
i < fMatrices.
size(); ++
i) {
468
470 for (
int j = 0; j < fRenderers.
size(); ++j) {
474
476 drawCounts[j] += fRenderers[j]->drawTiles(canvas);
477
479
481 }
482
484
486 }
488
489
492 for (
int j = 0; j < fRenderers.
size(); ++j) {
493 fRenderers[j]->drawBanner(canvas);
497 }
499 }
static constexpr uint64_t kOffset
SK_API SkString SkStringPrintf(const char *format,...) SK_PRINTF_LIKE(1
Creates a new string and writes into it using a printf()-style format.
void translate(SkScalar dx, SkScalar dy)
void concat(const SkMatrix &matrix)
static void draw_clipping_boundaries(SkCanvas *canvas, const SkMatrix &local)
static void draw_text(SkCanvas *canvas, const char *text)
static void draw_tile_boundaries(SkCanvas *canvas, const SkMatrix &local)
◆ onOnceBeforeDraw()
void CompositorGM::onOnceBeforeDraw |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
The documentation for this class was generated from the following file: