Home | History | Annotate | Download | only in core

Lines Matching defs:runs

55         int16_t*    runs = fRuns + offsetX;
61 SkAlphaRuns::Break(runs, alpha, x, 1);
71 runs += x + 1;
79 SkAlphaRuns::Break(runs, alpha, x, middleCount);
81 runs += x;
85 int n = runs[0];
88 runs += n;
96 SkAlphaRuns::Break(runs, alpha, x, 1);
110 * Break the runs in the buffer at offsets x and x+count, properly
111 * updating the runs to the right and left.
114 * Allows add() to sum another run to some of the new sub-runs.
117 static void Break(int16_t runs[], uint8_t alpha[], int x, int count) {
120 // SkAlphaRuns::BreakAt(runs, alpha, x);
121 // SkAlphaRuns::BreakAt(&runs[x], &alpha[x], count);
123 int16_t* next_runs = runs + x;
127 int n = runs[0];
132 runs[0] = SkToS16(x);
133 runs[x] = SkToS16(n - x);
136 runs += n;
141 runs = next_runs;
146 int n = runs[0];
151 runs[0] = SkToS16(x);
152 runs[x] = SkToS16(n - x);
159 runs += n;
165 * Cut (at offset x in the buffer) a run into two shorter runs with
170 static void BreakAt(int16_t runs[], uint8_t alpha[], int x) {
172 int n = runs[0];
177 runs[0] = SkToS16(x);
178 runs[x] = SkToS16(n - x);
181 runs += n;