Home | History | Annotate | Download | only in tests

Lines Matching refs:subset

288                     SkBitmap subset;
292 if (bitmap.extractSubset(&subset, r)) {
293 REPORTER_ASSERT(reporter, subset.width() == 1);
294 REPORTER_ASSERT(reporter, subset.height() == 1);
296 subset.alphaType() == bitmap.alphaType());
298 subset.isVolatile() == true);
302 subset.copyTo(&copy, subset.config()));
307 SkAutoLockPixels alp0(subset);
310 bool hasCT = subset.getColorTable() != NULL;
316 if (bitmap.extractSubset(&subset, r)) {
318 subset.alphaType() == bitmap.alphaType());
320 subset.isVolatile() == false);
393 SkBitmap src, subset;
407 // Either copy src or extract into 'subset', which is used
416 srcReady = src.extractSubset(&subset, r);
418 srcReady = src.copyTo(&subset, src.config());
421 // Not all configurations will generate a valid 'subset'.
447 writeCoordPixels(subset, coords);
456 SkBitmap::ComputeRowBytes(subset.config(), subW) * 2);
462 subset.copyPixelsTo(buf, bufSize, bufBm.rowBytes() * 3)
466 reportCopyVerification(subset, bufBm, coords,
477 subset.rowBytes());
479 successExpected = subset.getSafeSize() <= bufSize;
481 subset.copyPixelsTo(buf, bufSize) ==
484 reportCopyVerification(subset, bufBm, coords,
491 subset.rowBytes()+1);
495 subset.copyPixelsTo(buf, bufSize,
496 subset.rowBytes()+1) == successExpected);
498 reportCopyVerification(subset, bufBm, coords,
509 subset.copyPixelsTo(buf, bufSize, bufBm.rowBytes()-1)
512 reportCopyVerification(subset, bufBm, coords,
524 subset.copyPixelsFrom(buf, bufSize, 1) == false);
536 subset.copyPixelsFrom(buf, bufSize, bufBm.rowBytes()) ==
538 reportCopyVerification(bufBm, subset, coords,
546 subset.copyPixelsFrom(buf, 1, subset.rowBytes()) ==