8#ifndef SkRecords_DEFINED
9#define SkRecords_DEFINED
56#define SK_RECORD_TYPES(M) \
102#define ENUM(T) T##_Type,
106#define ACT_AS_PTR(ptr) \
107 operator T*() const { return ptr; } \
108 T* operator->() const { return ptr; }
170#define RECORD(T, tags, ...) \
172 static const Type kType = T##_Type; \
173 static const int kTags = tags; \
177#define RECORD_TRIVIAL(T, tags) \
179 static const Type kType = T##_Type; \
180 static const int kTags = tags; \
218 ClipOpAndAA(
SkClipOp op,
bool aa) : fOp(
static_cast<unsigned>(op)), fAA(aa) {}
221 bool aa()
const {
return fAA != 0; }
227static_assert(
sizeof(ClipOpAndAA) == 4,
"ClipOpAndAASize");
367 SkCanvas::SrcRectConstraint constraint)
static SkPath clip(const SkPath &path, const SkHalfPlane &plane)
#define RECORD_TRIVIAL(T, tags)
skia_private::AutoTArray< SkCanvas::ImageSetEntry > set
RECORD(Restore, 0, TypedMatrix matrix) RECORD(SaveLayer
sk_sp< const sktext::gpu::Slug > slug kDraw_Tag kHasImage_Tag kHasPaint_Tag kMultiDraw_Tag
SkCanvas::SaveLayerFlags saveLayerFlags
sk_sp< const SkImage > atlas
unsigned useCenter Optional< SkMatrix > matrix
Optional< SkRect > bounds
PODArray< SkPoint > dstClips
sk_sp< const SkImage > image
ClipOpAndAA opAA SkRegion region
sk_sp< const SkPicture > picture
sk_sp< const SkImageFilter > backdrop
PODArray< SkRSXform > xforms
sk_sp< SkBlender > blender SkRect rect
PODArray< SkMatrix > preViewMatrices
PODArray< SkColor > colors
SkSamplingOptions sampling
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
Optional< SkPaint > paint
PODArray< SkCanvas::Lattice::RectType > flags
unsigned useCenter kDraw_Tag
void DrawImage(SkCanvas *canvas, const SkImage *image, SkScalar x, SkScalar y, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
SK_API void DrawImageRect(SkCanvas *canvas, const SkImage *image, const SkRect &src, const SkRect &dst, const SkSamplingOptions &sampling={}, const SkPaint *paint=nullptr, SkCanvas::SrcRectConstraint constraint=SkCanvas::kFast_SrcRectConstraint)
static const char * Concat(const char *a, const char *b)
DlCanvas::PointMode PointMode
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
skgpu::graphite::DrawAtlas DrawAtlas