Go to the source code of this file.
◆ is_inverted()
Definition at line 42 of file GrStyledShape.cpp.
42 {
45 return originalIsInverted;
47 return !originalIsInverted;
49 return true;
51 return false;
52 }
53 return false;
54}
static bool inversion(Vertex *prev, Vertex *next, Edge *origEdge, const Comparator &c)
◆ path_key_from_data_size()
static int path_key_from_data_size |
( |
const SkPath & |
path | ) |
|
|
static |
Definition at line 103 of file GrStyledShape.cpp.
103 {
104 const int verbCnt =
path.countVerbs();
106 return -1;
107 }
108 const int pointCnt =
path.countPoints();
110
111 static_assert(
sizeof(
SkPoint) == 2 *
sizeof(uint32_t));
112 static_assert(
sizeof(
SkScalar) ==
sizeof(uint32_t));
113
114
115 return 1 + (
SkAlign4(verbCnt) >> 2) + 2 * pointCnt + conicWeightCnt;
116}
static constexpr T SkAlign4(T x)
static constexpr int kMaxKeyFromDataVerbCnt
static int ConicWeightCnt(const SkPath &path)
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
◆ write_path_key_from_data()
static void write_path_key_from_data |
( |
const SkPath & |
path, |
|
|
uint32_t * |
origKey |
|
) |
| |
|
static |
Definition at line 119 of file GrStyledShape.cpp.
119 {
120 uint32_t*
key = origKey;
121
122 const int verbCnt =
path.countVerbs();
123 const int pointCnt =
path.countPoints();
129 int verbKeySize =
SkAlign4(verbCnt);
130
131 uint8_t* pad =
reinterpret_cast<uint8_t*
>(
key)+ verbCnt;
132 memset(pad, 0xDE, verbKeySize - verbCnt);
133 key += verbKeySize >> 2;
134
136 static_assert(
sizeof(
SkPoint) == 2 *
sizeof(uint32_t));
139 static_assert(
sizeof(
SkScalar) ==
sizeof(uint32_t));
142}
static int path_key_from_data_size(const SkPath &path)
static void * sk_careful_memcpy(void *dst, const void *src, size_t len)
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
static const uint8_t * VerbData(const SkPath &path)
static const SkScalar * ConicWeightData(const SkPath &path)
static const SkPoint * PointData(const SkPath &path)