Lines Matching refs:sampler
70 // Setup the sampler...
71 SkScaledBitmapSampler sampler(width, height, this->getSampleSize());
108 const int w = sampler.scaledWidth();
109 const int h = sampler.scaledHeight();
112 const int w = sampler.scaledWidth();
113 const int h = sampler.scaledHeight();
130 if (!sampler.begin(bm, SkScaledBitmapSampler::kGray, *this)) {
148 const int dstHeight = sampler.scaledHeight();
150 srcRow += sampler.srcY0() * srcRowBytes;
152 sampler.next(srcRow);
153 srcRow += sampler.srcDY() * srcRowBytes;
159 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
177 const int dstHeight = sampler.scaledHeight();
179 srcRow += sampler.srcY0() * srcRowBytes;
181 sampler.next(srcRow);
182 srcRow += sampler.srcDY() * srcRowBytes;
190 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGB, *this)) {
196 const int dstHeight = sampler.scaledHeight();
198 srcRow += sampler.srcY0() * srcRowBytes;
200 sampler.next(srcRow);
201 srcRow += sampler.srcDY() * srcRowBytes;
220 if (!sampler.begin(bm, SkScaledBitmapSampler::kRGBA, opts)) {
226 const int dstHeight = sampler.scaledHeight();
228 srcRow += sampler.srcY0() * srcRowBytes;
230 sampler.next(srcRow);
231 srcRow += sampler.srcDY() * srcRowBytes;