#include "src/core/SkLatticeIter.h"
#include "include/core/SkMatrix.h"
#include "include/core/SkRect.h"
#include "include/private/base/SkAssert.h"
#include "include/private/base/SkTo.h"
#include <cstdint>
static bool valid_divs(const int* divs, int count, int start, int end) { … }
bool SkLatticeIter::Valid(int width, int height, const SkCanvas::Lattice& lattice) { … }
static int count_scalable_pixels(const int32_t* divs, int numDivs, bool firstIsScalable,
int start, int end) { … }
static void set_points(float* dst, int* src, const int* divs, int divCount, int srcFixed,
int srcScalable, int srcStart, int srcEnd, float dstStart, float dstEnd,
bool isScalable) { … }
SkLatticeIter::SkLatticeIter(const SkCanvas::Lattice& lattice, const SkRect& dst) { … }
bool SkLatticeIter::Valid(int width, int height, const SkIRect& center) { … }
SkLatticeIter::SkLatticeIter(int w, int h, const SkIRect& c, const SkRect& dst) { … }
bool SkLatticeIter::next(SkIRect* src, SkRect* dst, bool* isFixedColor, SkColor* fixedColor) { … }
void SkLatticeIter::mapDstScaleTranslate(const SkMatrix& matrix) { … }