#include <SkAnalyticEdge.h>
Definition at line 100 of file SkAnalyticEdge.h.
◆ keepContinuous()
void SkAnalyticQuadraticEdge::keepContinuous |
( |
| ) |
|
|
inline |
Definition at line 108 of file SkAnalyticEdge.h.
108 {
109
110
115 }
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 264 of file SkAnalyticEdge.cpp.
264 {
266 return false;
267 }
278
283
286
288}
static const int kDefaultAccuracy
static SkFixed SnapY(SkFixed y)
bool setQuadraticWithoutUpdate(const SkPoint pts[3], int shiftUp)
◆ updateQuadratic()
bool SkAnalyticQuadraticEdge::updateQuadratic |
( |
| ) |
|
Definition at line 290 of file SkAnalyticEdge.cpp.
290 {
291 int success = 0;
297 SkFixed newx, newy, newSnappedX, newSnappedY;
299
301
302 do {
305 {
306 newx = oldx + (
dx >> shift);
307 newy = oldy + (dy >> shift);
313 newSnappedX = newx -
SkFixedMul(slope, newy - newSnappedY);
314 } else {
316 newSnappedX = newx;
320 }
323 }
324 else
325 {
328 newSnappedY = newy;
329 newSnappedX = newx;
332 }
335 }
336 oldx = newx;
337 oldy = newy;
338 }
while (
count > 0 && !success);
339
341
349 return success;
350}
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)
static float min(float r, float g, float b)
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: