Go to the source code of this file.
◆ transform_dir_and_start()
static void transform_dir_and_start |
( |
const SkMatrix & |
matrix, |
|
|
bool |
isRRect, |
|
|
bool * |
isCCW, |
|
|
unsigned * |
start |
|
) |
| |
|
static |
Definition at line 86 of file SkPathRef.cpp.
87 {
89 int rm = 0;
90 if (isRRect) {
91
92
93 rm = inStart & 0b1;
94 inStart /= 2;
95 }
96
97 int antiDiag;
98
99 int topNeg;
100
101 int sameSign;
103 antiDiag = 0b00;
105 topNeg = 0b00;
107 } else {
108 topNeg = 0b10;
110 }
111 } else {
112 antiDiag = 0b01;
114 topNeg = 0b00;
116 } else {
117 topNeg = 0b10;
119 }
120 }
121 if (sameSign != antiDiag) {
122
123
124 *
start = (inStart + 4 - (topNeg | antiDiag)) % 4;
126 if (isRRect) {
128 }
129 } else {
130
131 *isCCW = !*isCCW;
132
133 *
start = (6 + (topNeg | antiDiag) - inStart) % 4;
135 if (isRRect) {
137 }
138 }
139}
static constexpr int kMScaleX
horizontal scale factor
static constexpr int kMSkewY
vertical skew factor
static constexpr int kMScaleY
vertical scale factor
static constexpr int kMSkewX
horizontal skew factor
unsigned useCenter Optional< SkMatrix > matrix
◆ gEmpty
◆ kPathRefGenIDBitCnt
constexpr int kPathRefGenIDBitCnt = 32 |
|
staticconstexpr |