Lines Matching defs:src
9 #include "src/core/SkLatticeIter.h"
77 * Set points for the src and dst rects on subsequent draw calls.
79 static void set_points(float* dst, int* src, const int* divs, int divCount, int srcFixed,
93 src[0] = srcStart;
96 src[i + 1] = divs[i];
97 int srcDelta = src[i + 1] - src[i];
110 src[divCount + 1] = srcEnd;
120 const SkIRect src = *lattice.fBounds;
133 bool xIsScalable = (xCount > 0 && src.fLeft == xDivs[0]);
140 bool yIsScalable = (yCount > 0 && src.fTop == yDivs[0]);
149 int xCountScalable = count_scalable_pixels(xDivs, xCount, xIsScalable, src.fLeft, src.fRight);
150 int xCountFixed = src.width() - xCountScalable;
151 int yCountScalable = count_scalable_pixels(yDivs, yCount, yIsScalable, src.fTop, src.fBottom);
152 int yCountFixed = src.height() - yCountScalable;
157 src.fLeft, src.fRight, dst.fLeft, dst.fRight, xIsScalable);
162 src.fTop, src.fBottom, dst.fTop, dst.fBottom, yIsScalable);
256 bool SkLatticeIter::next(SkIRect* src, SkRect* dst, bool* isFixedColor, SkColor* fixedColor) {
274 return this->next(src, dst, isFixedColor, fixedColor);
277 src->setLTRB(fSrcX[x], fSrcY[y], fSrcX[x + 1], fSrcY[y + 1]);