8#ifndef DDLTileHelper_DEFINED
9#define DDLTileHelper_DEFINED
64 int id()
const {
return fID; }
106 int numXDivisions,
int numYDivisions,
107 bool addRandomPaddingToDst);
134 int numTiles()
const {
return fNumXDivisions * fNumYDivisions; }
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
static void DeleteBackendTexture(GrDirectContext *, TileData *)
void createDDL(const SkPicture *)
void drawSKPDirectly(GrDirectContext *, const SkPicture *)
void init(int id, GrDirectContext *, const GrSurfaceCharacterization &dstChar, const SkIRect &clip, const SkIRect &paddingOutsets)
static void CreateBackendTexture(GrDirectContext *, TileData *)
GrDeferredDisplayList * ddl()
void dropCallbackContext()
sk_sp< SkImage > makePromiseImageForDst(sk_sp< GrContextThreadSafeProxy >)
void draw(GrDirectContext *)
SkISize paddedRectSize() const
void precompile(GrDirectContext *)
SkIVector padOffset() const
void createBackendTextures(SkTaskGroup *, GrDirectContext *)
void deleteBackendTextures(SkTaskGroup *, GrDirectContext *)
void drawAllTilesDirectly(GrDirectContext *, SkPicture *)
void dropCallbackContexts()
DDLTileHelper(GrDirectContext *, const GrSurfaceCharacterization &dstChar, const SkIRect &viewport, int numXDivisions, int numYDivisions, bool addRandomPaddingToDst)
void interleaveDDLCreationAndDraw(GrDirectContext *, SkPicture *)
const sk_sp< GrDeferredDisplayList > & composeDDL() const
void kickOffThreadedWork(SkTaskGroup *recordingTaskGroup, SkTaskGroup *gpuTaskGroup, GrDirectContext *, SkPicture *)
void createDDLsInParallel(SkPicture *)
void reset(T *ptr=nullptr)
int32_t fBottom
larger y-axis bounds
constexpr int32_t height() const
int32_t fTop
smaller y-axis bounds
constexpr int32_t width() const
int32_t fLeft
smaller x-axis bounds
int32_t fRight
larger x-axis bounds