#include <SkCanvasPriv.h>
|
static bool | ReadLattice (SkReadBuffer &, SkCanvas::Lattice *) |
|
static void | WriteLattice (SkWriteBuffer &, const SkCanvas::Lattice &) |
|
static size_t | WriteLattice (void *storage, const SkCanvas::Lattice &) |
|
static int | SaveBehind (SkCanvas *canvas, const SkRect *subset) |
|
static void | DrawBehind (SkCanvas *canvas, const SkPaint &paint) |
|
static void | ResetClip (SkCanvas *canvas) |
|
static SkDevice * | TopDevice (const SkCanvas *canvas) |
|
static void | GetDstClipAndMatrixCounts (const SkCanvas::ImageSetEntry set[], int count, int *totalDstClipCount, int *totalMatrixCount) |
|
static SkCanvas::SaveLayerRec | ScaledBackdropLayer (const SkRect *bounds, const SkPaint *paint, const SkImageFilter *backdrop, SkScalar backdropScale, SkCanvas::SaveLayerFlags saveLayerFlags, SkCanvas::FilterSpan filters={}) |
|
static SkScalar | GetBackdropScaleFactor (const SkCanvas::SaveLayerRec &rec) |
|
static void | SetBackdropScaleFactor (SkCanvas::SaveLayerRec *rec, SkScalar scale) |
|
static bool | ImageToColorFilter (SkPaint *) |
|
Definition at line 42 of file SkCanvasPriv.h.
◆ DrawBehind()
static void SkCanvasPriv::DrawBehind |
( |
SkCanvas * |
canvas, |
|
|
const SkPaint & |
paint |
|
) |
| |
|
inlinestatic |
◆ GetBackdropScaleFactor()
Definition at line 85 of file SkCanvasPriv.h.
85 {
86 return rec.fExperimentalBackdropScale;
87 }
◆ GetDstClipAndMatrixCounts()
Definition at line 103 of file SkCanvasPriv.cpp.
104 {
105 int dstClipCount = 0;
106 int maxMatrixIndex = -1;
108 dstClipCount += 4 *
set[
i].fHasClip;
109 if (
set[
i].fMatrixIndex > maxMatrixIndex) {
110 maxMatrixIndex =
set[
i].fMatrixIndex;
111 }
112 }
113
114 *totalDstClipCount = dstClipCount;
115 *totalMatrixCount = maxMatrixIndex + 1;
116}
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
◆ ImageToColorFilter()
bool SkCanvasPriv::ImageToColorFilter |
( |
SkPaint * |
paint | ) |
|
|
static |
Definition at line 121 of file SkCanvasPriv.cpp.
121 {
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140 if (
paint->getMaskFilter()) {
141 return false;
142 }
143
145 if (!
paint->getImageFilter()->asAColorFilter(&imgCFPtr)) {
146 return false;
147 }
149
151 if (paintCF) {
152
153
154 imgCF = imgCF->makeComposed(
sk_ref_sp(paintCF));
155 }
156
157 paint->setColorFilter(std::move(imgCF));
158 paint->setImageFilter(
nullptr);
159 return true;
160}
sk_sp< T > sk_ref_sp(T *obj)
static constexpr bool SkToBool(const T &x)
◆ ReadLattice()
Definition at line 56 of file SkCanvasPriv.cpp.
56 {
67 }
70}
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 defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
int fYCount
number of y-coordinates
const SkIRect * fBounds
source bounds to draw from
const int * fYDivs
y-axis values dividing bitmap
int fXCount
number of x-coordinates
const RectType * fRectTypes
array of fill types
const SkColor * fColors
array of colors
const int * fXDivs
x-axis values dividing bitmap
◆ ResetClip()
static void SkCanvasPriv::ResetClip |
( |
SkCanvas * |
canvas | ) |
|
|
inlinestatic |
Definition at line 61 of file SkCanvasPriv.h.
61 {
62 canvas->internal_private_resetClip();
63 }
◆ SaveBehind()
Definition at line 53 of file SkCanvasPriv.h.
53 {
54 return canvas->only_axis_aligned_saveBehind(subset);
55 }
◆ ScaledBackdropLayer()
Definition at line 75 of file SkCanvasPriv.h.
80 {}) {
83 }
SkCanvas::SaveLayerFlags saveLayerFlags
Optional< SkRect > bounds
sk_sp< const SkImageFilter > backdrop
◆ SetBackdropScaleFactor()
◆ TopDevice()
Definition at line 65 of file SkCanvasPriv.h.
65 {
66 return canvas->topDevice();
67 }
◆ WriteLattice() [1/2]
Definition at line 96 of file SkCanvasPriv.cpp.
96 {
101}
static void WriteLattice(SkWriteBuffer &, const SkCanvas::Lattice &)
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ WriteLattice() [2/2]
size_t SkCanvasPriv::WriteLattice |
( |
void * |
storage, |
|
|
const SkCanvas::Lattice & |
lattice |
|
) |
| |
|
static |
Definition at line 72 of file SkCanvasPriv.cpp.
72 {
74
75 const size_t size = (1 + lattice.
fXCount + 1 + lattice.
fYCount + 1) *
sizeof(int32_t) +
79
82 writer.write32(lattice.
fXCount);
83 writer.write(lattice.
fXDivs, lattice.
fXCount *
sizeof(uint32_t));
84 writer.write32(lattice.
fYCount);
85 writer.write(lattice.
fYDivs, lattice.
fYCount *
sizeof(uint32_t));
92 }
94}
static constexpr T SkAlign4(T x)
The documentation for this class was generated from the following files: