Home | History | Annotate | Download | only in tests

Lines Matching defs:dst

39  *  @param desiredConfig Config being copied to. If the copy succeeded, dst must have this Config.
42 * @param dst SkBitmap that was copied to.
46 const bool success, const SkBitmap& src, const SkBitmap& dst,
49 REPORTER_ASSERT(reporter, src.width() == dst.width());
50 REPORTER_ASSERT(reporter, src.height() == dst.height());
51 REPORTER_ASSERT(reporter, dst.config() == desiredConfig);
52 if (src.config() == dst.config()) {
58 REPORTER_ASSERT(reporter, src.getGenerationID() == dst.getGenerationID());
60 REPORTER_ASSERT(reporter, src.pixelRef() != NULL && dst.pixelRef() != NULL);
69 if (dst.getTexture() != NULL) {
70 bool readBack = dst.pixelRef()->readPixels(&dstReadBack);
73 // If dst is not a texture, do a copy instead, to the same config as srcReadBack.
74 bool copy = dst.copyTo(&dstReadBack, srcReadBack.config());
88 REPORTER_ASSERT(reporter, src.getGenerationID() != dst.getGenerationID());
91 // dst should be unchanged from its initial state
92 REPORTER_ASSERT(reporter, dst.config() == SkBitmap::kNo_Config);
93 REPORTER_ASSERT(reporter, dst.width() == 0);
94 REPORTER_ASSERT(reporter, dst.height() == 0);
129 SkBitmap src, dst;
149 dst.reset();
150 bool success = src.deepCopyTo(&dst, gPairs[j].fConfig);
170 TestIndividualCopy(reporter, gPairs[j].fConfig, success, src, dst);