Lines Matching refs:src

13 #include "src/core/SkAutoPixmapStorage.h"
14 #include "src/core/SkConvertPixels.h"
15 #include "src/gpu/GrDirectContextPriv.h"
16 #include "src/gpu/GrImageInfo.h"
17 #include "src/gpu/SurfaceContext.h"
18 #include "src/gpu/SurfaceFillContext.h"
19 #include "src/gpu/effects/GrTextureEffect.h"
152 // Are reads that are overlapping but not contained by the src bounds expected to succeed?
156 // Makes a src populated with the pixmap. The src should get its image info (or equivalent) from
177 // To test the results of the write we do a read. This reads the entire src T. It should do a non-
239 // the same image info as src. We will do a converting readPixels() on it to get the data
241 auto runTest = [&](const T& src,
268 const Result result = read(src, offset, dstPixels);
296 // both src and dst space should actually have been read and written.
344 // Do a spoofed read where src and dst alpha type are both kUnpremul. This will
395 // We ensure we use the long array once per src and read color type and otherwise use the
398 // equivalent. Just ensure each redundant AT is tested once with each CT (src and read).
401 // We consider a src or read CT thoroughly tested once it has run through the long rect array
426 auto src = srcFactory(srcPixels);
427 if (!src) {
468 Result r = runTest(src, srcPixels, readInfo, offset);
506 [direct, origin, renderable](const SkPixmap& src) {
508 direct, src.info(), SkBackingFit::kExact, origin, renderable);
510 sc->writePixels(direct, src, {0, 0});
605 [context = ctxInfo.directContext(), origin](const SkPixmap& src) {
608 src.info(),
613 surf->writePixels(src, 0, 0);
620 [context = ctxInfo.directContext(), origin](const SkPixmap& src) {
627 src.info(),
631 surf->writePixels(src, 0, 0);
680 auto factory = std::function<GpuSrcFactory<Image>>([&](const SkPixmap& src) {
681 return sk_gpu_test::MakeBackendTextureImage(ctxInfo.directContext(), src,
982 // We ensure we use the long array once per src and read color type and otherwise use the
1133 SkPixmap src;
1134 SkAssertResult(ref.extractSubset(&src, SkIRect::MakeSize(level.dimensions())));
1135 SkAssertResult(GrConvertPixels(level, src));
1162 SkPixmap src;
1164 SkAssertResult(ref.extractSubset(&src, SkIRect::MakeWH(w, h)));
1165 SkAssertResult(GrConvertPixels(keepAlive, src));