Flutter Engine
The Flutter Engine
Macros | Functions
SkSVGNode.cpp File Reference
#include "include/core/SkCanvas.h"
#include "include/core/SkMatrix.h"
#include "include/pathops/SkPathOps.h"
#include "include/private/base/SkTPin.h"
#include "modules/svg/include/SkSVGNode.h"
#include "modules/svg/include/SkSVGRenderContext.h"
#include "modules/svg/include/SkSVGValue.h"
#include "src/base/SkTLazy.h"

Go to the source code of this file.

Macros

#define PARSE_AND_SET(svgName, attrName)
 

Functions

template<typename T >
void SetInheritedByDefault (SkTLazy< T > &presentation_attribute, const T &value)
 

Macro Definition Documentation

◆ PARSE_AND_SET

#define PARSE_AND_SET (   svgName,
  attrName 
)
Value:
this->set##attrName( \
SkSVGAttributeParser::parseProperty<decltype(fPresentationAttributes.f##attrName)>( \
svgName, n, v))
static ParseResult< PropertyT > parseProperty(const char *expectedName, const char *name, const char *value)
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
Definition: switches.h:76

Function Documentation

◆ SetInheritedByDefault()

template<typename T >
void SetInheritedByDefault ( SkTLazy< T > &  presentation_attribute,
const T value 
)

Definition at line 80 of file SkSVGNode.cpp.

80 {
81 if (value.type() != T::Type::kInherit) {
82 presentation_attribute.set(value);
83 } else {
84 // kInherited values are semantically equivalent to
85 // the absence of a local presentation attribute.
86 presentation_attribute.reset();
87 }
88}
void reset()
Definition: SkTLazy.h:69
T * set(const T &src)
Definition: SkTLazy.h:56
uint8_t value