Lines Matching refs:path
102 "are thrown out. This is useful for finding a reduced repo case for path drawing bugs.");
408 SkString path(FLAGS_readPath[0]);
409 path.append("/dm.json");
410 if (!JsonWriter::ReadJson(path.c_str(), add_gold)) {
411 fail(SkStringPrintf("Couldn't read %s for golden results.", path.c_str()));
480 static void push_codec_src(Path path, CodecSrc::Mode mode, CodecSrc::DstColorType dstColorType,
540 CodecSrc* src = new CodecSrc(path, mode, dstColorType, dstAlphaType, scale);
544 static void push_android_codec_src(Path path, CodecSrc::DstColorType dstColorType,
575 AndroidCodecSrc* src = new AndroidCodecSrc(path, dstColorType, dstAlphaType, sampleSize);
579 static void push_image_gen_src(Path path, ImageGenSrc::Mode mode, SkAlphaType alphaType, bool isGpu)
609 ImageGenSrc* src = new ImageGenSrc(path, mode, alphaType, isGpu);
614 static void push_brd_src(Path path, CodecSrc::DstColorType dstColorType, BRDSrc::Mode mode,
643 BRDSrc* src = new BRDSrc(path, mode, dstColorType, sampleSize);
647 static void push_brd_srcs(Path path, bool gray) {
653 push_brd_src(path, CodecSrc::kGrayscale_Always_DstColorType,
668 push_brd_src(path, CodecSrc::kGetFromCanvas_DstColorType, mode, sampleSize);
674 static void push_codec_srcs(Path path) {
675 sk_sp<SkData> encoded(SkData::MakeFromFileName(path.c_str()));
677 info("Couldn't read %s.", path.c_str());
682 info("Couldn't create codec for %s.", path.c_str());
737 push_codec_src(path, mode, colorType, alphaType, 1.0f);
746 push_codec_src(path, mode, colorType, alphaType, scale);
759 push_codec_src(path, CodecSrc::kAnimated_Mode, dstCT, at, 1.0f);
763 push_codec_src(path, CodecSrc::kAnimated_Mode, CodecSrc::kGetFromCanvas_DstColorType,
785 push_android_codec_src(path, colorType, alphaType, sampleSize);
790 const char* ext = strrchr(path.c_str(), '.');
813 push_brd_srcs(path, gray);
821 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, codec->getInfo().alphaType(), true);
825 push_image_gen_src(path, ImageGenSrc::kCodec_Mode, alphaType, false);
832 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, false);
838 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, false);
841 push_image_gen_src(path, ImageGenSrc::kPlatform_Mode, alphaType, false);
856 const char* path = flags[i];
857 if (sk_isdir(path)) {
858 SkOSFile::Iter it(path, ext);
860 push_src(src_name, "", new T(SkOSPath::Join(path, file.c_str())));
863 push_src(src_name, "", new T(path));
1359 SkString path;
1361 path = SkOSPath::Join(dir, result.md5.c_str());
1362 path.append(".");
1363 path.append(ext);
1364 if (sk_exists(path.c_str())) {
1368 path = SkOSPath::Join(dir, task.sink.tag.c_str());
1369 sk_mkdir(path.c_str());
1370 path = SkOSPath::Join(path.c_str(), task.src.tag.c_str());
1371 sk_mkdir(path.c_str());
1373 path = SkOSPath::Join(path.c_str(), task.src.options.c_str());
1374 sk_mkdir(path.c_str());
1376 path = SkOSPath::Join(path.c_str(), task.src->name().c_str());
1377 path.append(".");
1378 path.append(ext);
1381 SkFILEWStream file(path.c_str());
1383 fail(SkStringPrintf("Can't open %s for writing.\n", path.c_str()));
1392 fail(SkStringPrintf("Can't encode PNG to %s.\n", path.c_str()));
1397 fail(SkStringPrintf("Can't write to %s.\n", path.c_str()));