Go to the source code of this file.
|
static bool | prepare_to_draw_into_mask (const SkRect &bounds, SkMaskBuilder *mask) |
|
template<typename Proc > |
bool | draw_into_mask (SkMaskBuilder *mask, const SkRect &bounds, Proc proc) |
|
static bool | draw_rects_into_mask (const SkRect rects[], int count, SkMaskBuilder *mask) |
|
static bool | draw_rrect_into_mask (const SkRRect rrect, SkMaskBuilder *mask) |
|
static bool | rect_exceeds (const SkRect &r, SkScalar v) |
|
static SkCachedData * | copy_mask_to_cacheddata (SkMaskBuilder *mask) |
|
static SkCachedData * | find_cached_rrect (SkTLazy< SkMask > *mask, SkScalar sigma, SkBlurStyle style, const SkRRect &rrect) |
|
static SkCachedData * | add_cached_rrect (SkMaskBuilder *mask, SkScalar sigma, SkBlurStyle style, const SkRRect &rrect) |
|
static SkCachedData * | find_cached_rects (SkTLazy< SkMask > *mask, SkScalar sigma, SkBlurStyle style, const SkRect rects[], int count) |
|
static SkCachedData * | add_cached_rects (SkMaskBuilder *mask, SkScalar sigma, SkBlurStyle style, const SkRect rects[], int count) |
|
void | sk_register_blur_maskfilter_createproc () |
|
◆ add_cached_rects()
Definition at line 233 of file SkBlurMaskFilterImpl.cpp.
234 {
236 if (cache) {
238 }
240}
static SkCachedData * copy_mask_to_cacheddata(SkMaskBuilder *mask)
static void Add(SkScalar sigma, SkBlurStyle style, const SkRRect &rrect, const SkMask &mask, SkCachedData *data, SkResourceCache *localCache=nullptr)
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 Enable an endless trace buffer The default is a ring buffer This is useful when very old events need to viewed For during application launch Memory usage will continue to grow indefinitely however Start app with an specific route defined on the framework flutter assets Path to the Flutter assets directory enable service port Allow the VM service to fallback to automatic port selection if binding to a specified port fails trace Trace early application lifecycle Automatically switches to an endless trace buffer trace skia Filters out all Skia trace event categories except those that are specified in this comma separated list dump skp on shader Automatically dump the skp that triggers new shader compilations This is useful for writing custom ShaderWarmUp to reduce jank By this is not enabled to reduce the overhead purge persistent cache
◆ add_cached_rrect()
◆ copy_mask_to_cacheddata()
Definition at line 203 of file SkBlurMaskFilterImpl.cpp.
203 {
206 if (data) {
207 memcpy(
data->writable_data(), mask->
fImage, size);
209 mask->
image() = (uint8_t*)
data->writable_data();
210 }
212}
static SkCachedData * NewCachedData(size_t bytes)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot data
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
static void FreeImage(void *image)
uint8_t const *const fImage
size_t computeTotalImageSize() const
◆ draw_into_mask()
Definition at line 148 of file SkBlurMaskFilterImpl.cpp.
148 {
150 return false;
151 }
152
157
161
163
169
171 paint.setAntiAlias(
true);
172
174 return true;
175}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
SkBlitter * SkA8Blitter_Choose(const SkPixmap &dst, const SkMatrix &ctm, const SkPaint &paint, SkArenaAlloc *alloc, bool drawCoverage, sk_sp< SkShader > clipShader, const SkSurfaceProps &)
static bool prepare_to_draw_into_mask(const SkRect &bounds, SkMaskBuilder *mask)
static void draw(SkCanvas *canvas, SkRect &target, int x, int y)
BlitterChooser * fBlitterChooser
static SkMatrix Translate(SkScalar dx, SkScalar dy)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
constexpr int32_t height() const
int32_t fTop
smaller y-axis bounds
constexpr int32_t width() const
constexpr SkIRect makeOffset(int32_t dx, int32_t dy) const
int32_t fLeft
smaller x-axis bounds
static SkImageInfo MakeA8(int width, int height)
@ kA8_Format
8bits per pixel mask (e.g. antialiasing)
◆ draw_rects_into_mask()
Definition at line 177 of file SkBlurMaskFilterImpl.cpp.
177 {
181 } else {
182
188 }
189 });
190}
bool draw_into_mask(SkMaskBuilder *mask, const SkRect &bounds, Proc proc)
SkPathBuilder & addRect(const SkRect &, SkPathDirection, unsigned startIndex)
SkPathBuilder & setFillType(SkPathFillType ft)
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
◆ draw_rrect_into_mask()
Definition at line 192 of file SkBlurMaskFilterImpl.cpp.
192 {
194 draw.drawRRect(rrect, paint);
195 });
196}
const SkRect & rect() const
◆ find_cached_rects()
Definition at line 228 of file SkBlurMaskFilterImpl.cpp.
229 {
231}
static SkCachedData * FindAndRef(SkScalar sigma, SkBlurStyle style, const SkRRect &rrect, SkTLazy< SkMask > *mask, SkResourceCache *localCache=nullptr)
◆ find_cached_rrect()
◆ prepare_to_draw_into_mask()
Definition at line 134 of file SkBlurMaskFilterImpl.cpp.
134 {
136
142 if (
nullptr == mask->
fImage) {
143 return false;
144 }
145 return true;
146}
static constexpr T SkAlign4(T x)
Optional< SkRect > bounds
static uint8_t * AllocImage(size_t bytes, AllocType=kUninit_Alloc)
size_t computeImageSize() const
◆ rect_exceeds()
Definition at line 198 of file SkBlurMaskFilterImpl.cpp.
198 {
201}
SkScalar fBottom
larger y-axis bounds
SkScalar fLeft
smaller x-axis bounds
SkScalar fRight
larger x-axis bounds
constexpr float height() const
constexpr float width() const
SkScalar fTop
smaller y-axis bounds
◆ sk_register_blur_maskfilter_createproc()
void sk_register_blur_maskfilter_createproc |
( |
| ) |
|
◆ c_analyticBlurNinepatch
const bool c_analyticBlurNinepatch {true} |
|
static |
◆ c_analyticBlurRRect
const bool c_analyticBlurRRect {true} |
|
static |