8#ifndef SkCanvasPriv_DEFINED
9#define SkCanvasPriv_DEFINED
26#if defined(GRAPHITE_TEST_UTILS)
54 return canvas->only_axis_aligned_saveBehind(subset);
57 canvas->drawClippedToSaveBehind(
paint);
62 canvas->internal_private_resetClip();
66 return canvas->topDevice();
73 int* totalDstClipCount,
int* totalMatrixCount);
86 return rec.fExperimentalBackdropScale;
90 rec->fExperimentalBackdropScale =
scale;
135 bool skipMaskFilterLayer);
151 void addImageFilterLayer(
const SkRect* drawBounds);
153 void addLayer(
const SkPaint& restorePaint,
const SkRect* drawBounds,
bool coverageOnly);
157 int fTempLayersForFilters;
constexpr int kMaxPictureOpsToUnrollInsteadOfRef
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
void addMaskFilterLayer(const SkRect *drawBounds)
const SkPaint & paint() const
~AutoLayerForImageFilter()
AutoLayerForImageFilter(const AutoLayerForImageFilter &)=delete
AutoLayerForImageFilter(SkCanvas *canvas, const SkPaint &paint, const SkRect *rawBounds, bool skipMaskFilterLayer)
AutoLayerForImageFilter & operator=(const AutoLayerForImageFilter &)=delete
~SkAutoCanvasMatrixPaint()
SkAutoCanvasMatrixPaint(SkCanvas *, const SkMatrix *, const SkPaint *, const SkRect &bounds)
static SkDevice * TopDevice(const SkCanvas *canvas)
static void WriteLattice(SkWriteBuffer &, const SkCanvas::Lattice &)
static SkCanvas::SaveLayerRec ScaledBackdropLayer(const SkRect *bounds, const SkPaint *paint, const SkImageFilter *backdrop, SkScalar backdropScale, SkCanvas::SaveLayerFlags saveLayerFlags, SkCanvas::FilterSpan filters={})
static void ResetClip(SkCanvas *canvas)
static void DrawBehind(SkCanvas *canvas, const SkPaint &paint)
static void SetBackdropScaleFactor(SkCanvas::SaveLayerRec *rec, SkScalar scale)
static bool ReadLattice(SkReadBuffer &, SkCanvas::Lattice *)
static bool ImageToColorFilter(SkPaint *)
static SkScalar GetBackdropScaleFactor(const SkCanvas::SaveLayerRec &rec)
static int SaveBehind(SkCanvas *canvas, const SkRect *subset)
static void GetDstClipAndMatrixCounts(const SkCanvas::ImageSetEntry set[], int count, int *totalDstClipCount, int *totalMatrixCount)
SkCanvas::SaveLayerFlags saveLayerFlags
Optional< SkRect > bounds
sk_sp< const SkImageFilter > backdrop
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 to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not set