#include <SkAnalyticEdge.h>
Definition at line 114 of file SkAnalyticEdge.h.
◆ keepContinuous()
void SkAnalyticQuadraticEdge::keepContinuous |
( |
| ) |
|
|
inline |
Definition at line 122 of file SkAnalyticEdge.h.
122 {
123
124
129 }
static SkFixed SkFixedMul(SkFixed a, SkFixed b)
static int32_t SkAbs32(int32_t value)
◆ setQuadratic()
bool SkAnalyticQuadraticEdge::setQuadratic |
( |
const SkPoint |
pts[3] | ) |
|
Definition at line 266 of file SkAnalyticEdge.cpp.
266 {
268
270 return false;
271 }
282
287
290
292}
static const int kDefaultAccuracy
static SkFixed SnapY(SkFixed y)
bool setQuadraticWithoutUpdate(const SkPoint pts[3], int shiftUp)
◆ updateQuadratic()
bool SkAnalyticQuadraticEdge::updateQuadratic |
( |
| ) |
|
Definition at line 294 of file SkAnalyticEdge.cpp.
294 {
295 int success = 0;
301 SkFixed newx, newy, newSnappedX, newSnappedY;
303
305
306 do {
309 {
310 newx = oldx + (
dx >> shift);
311 newy = oldy + (dy >> shift);
317 newSnappedX = newx -
SkFixedMul(slope, newy - newSnappedY);
318 } else {
320 newSnappedX = newx;
324 }
327 }
328 else
329 {
332 newSnappedY = newy;
333 newSnappedX = newx;
336 }
339 }
340 oldx = newx;
341 oldy = newy;
342 }
while (
count > 0 && !success);
343
345
353 return success;
354}
static SkFixed quick_div(SkFDot6 a, SkFDot6 b)
#define SkFixedToFDot6(x)
static SkFixed SkFixedRoundToFixed(SkFixed x)
static constexpr int32_t SK_MaxS32
constexpr int8_t SkToS8(S x)
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx
bool updateLine(SkFixed ax, SkFixed ay, SkFixed bx, SkFixed by, SkFixed slope)
◆ fQEdge
◆ fSnappedX
SkFixed SkAnalyticQuadraticEdge::fSnappedX |
◆ fSnappedY
SkFixed SkAnalyticQuadraticEdge::fSnappedY |
The documentation for this struct was generated from the following files: