MCPcopy Create free account
hub / github.com/Tencent/tgfx / DrawTask

Method DrawTask

src/layers/DisplayList.cpp:38–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36class DrawTask {
37 public:
38 DrawTask(std::shared_ptr<Tile> tile, int tileSize, const Rect& drawRect = {}, float scale = 1.0f)
39 : tiles({std::move(tile)}) {
40 calculateRects(tileSize, drawRect, scale);
41 }
42
43 DrawTask(std::vector<std::shared_ptr<Tile>> tiles, int tileSize, const Rect& drawRect)
44 : tiles(std::move(tiles)) {

Callers

nothing calls this directly

Calls 1

isEmptyMethod · 0.45

Tested by

no test coverage detected