Go to the source code of this file.
◆ RETURN_FAILURE
#define RETURN_FAILURE |
( |
|
... | ) |
return Result{nullptr, SkStringPrintf(__VA_ARGS__)} |
◆ ChildType
◆ child_type()
◆ flattenable_is_valid_as_child()
static bool flattenable_is_valid_as_child |
( |
const SkFlattenable * |
f | ) |
|
|
static |
Definition at line 365 of file SkRuntimeEffect.cpp.
365 {
366 if (!
f) {
return true; }
367 switch (
f->getFlattenableType()) {
371 return true;
372 default:
373 return false;
374 }
375}
◆ init_uniform_type()
Definition at line 74 of file SkRuntimeEffect.cpp.
76 {
92
97
98 return false;
99}
const std::unique_ptr< Type > fFloat2
const std::unique_ptr< Type > fHalf4
const std::unique_ptr< Type > fInt4
const std::unique_ptr< Type > fHalf2x2
const std::unique_ptr< Type > fInt2
const std::unique_ptr< Type > fInt
const std::unique_ptr< Type > fFloat2x2
const std::unique_ptr< Type > fFloat4x4
const std::unique_ptr< Type > fInt3
const std::unique_ptr< Type > fFloat4
const std::unique_ptr< Type > fHalf2
const std::unique_ptr< Type > fHalf3x3
const std::unique_ptr< Type > fFloat3x3
const std::unique_ptr< Type > fHalf3
const std::unique_ptr< Type > fFloat
const std::unique_ptr< Type > fFloat3
const std::unique_ptr< Type > fHalf
const std::unique_ptr< Type > fHalf4x4
const BuiltinTypes & fTypes
◆ SkMakeCachedRuntimeEffect()
Definition at line 680 of file SkRuntimeEffect.cpp.
682 {
685
687 {
690 return *found;
691 }
692 }
693
696
697 auto [effect, err] =
make(std::move(sksl),
options);
698 if (!effect) {
700 return nullptr;
701 }
703
704 {
706 cache->insert_or_update(
key, effect);
707 }
708 return effect;
709}
#define SkDEBUGFAILF(fmt,...)
static void AllowPrivateAccess(SkRuntimeEffect::Options *options)
const char * c_str() const
uint64_t Hash64(const void *data, size_t bytes, uint64_t seed)
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
static void make(SkBitmap *bitmap, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)
◆ uniform_element_size()
◆ verify_child_effects()
Definition at line 381 of file SkRuntimeEffect.cpp.
382 {
383
384 if (reflected.size() != effectPtrs.
size()) {
385 return false;
386 }
387
388
389 for (
size_t i = 0;
i < effectPtrs.
size(); ++
i) {
390 std::optional<ChildType> effectType = effectPtrs[
i].type();
391 if (effectType && effectType != reflected[
i].
type) {
392 return false;
393 }
394 }
395 return true;
396}
constexpr size_t size() const
◆ kRPEnableLiveTrace
constexpr bool kRPEnableLiveTrace = false |
|
constexpr |