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 85 of file SkPathRef.cpp.
86 {
88 int rm = 0;
89 if (isRRect) {
90
91
92 rm = inStart & 0b1;
93 inStart /= 2;
94 }
95
96 int antiDiag;
97
98 int topNeg;
99
100 int sameSign;
102 antiDiag = 0b00;
104 topNeg = 0b00;
106 } else {
107 topNeg = 0b10;
109 }
110 } else {
111 antiDiag = 0b01;
113 topNeg = 0b00;
115 } else {
116 topNeg = 0b10;
118 }
119 }
120 if (sameSign != antiDiag) {
121
122
123 *
start = (inStart + 4 - (topNeg | antiDiag)) % 4;
125 if (isRRect) {
127 }
128 } else {
129
130 *isCCW = !*isCCW;
131
132 *
start = (6 + (topNeg | antiDiag) - inStart) % 4;
134 if (isRRect) {
136 }
137 }
138}
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 |