Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1511)

Unified Diff: dm/DM.cpp

Issue 1416673010: Delete dead subset test code from dm (Closed) Base URL: https://skia.googlesource.com/skia.git@delete
Patch Set: Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm/DM.cpp
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 34513dd5d3656775f065404c689aeed818b8b16b..444584d89639644567cf158a8ef813422552af19 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -385,15 +385,6 @@ static bool brd_color_type_supported(SkBitmapRegionDecoder::Strategy strategy,
return true;
}
return false;
- case SkBitmapRegionDecoder::kOriginal_Strategy:
- switch (dstColorType) {
- case CodecSrc::kGetFromCanvas_DstColorType:
- case CodecSrc::kIndex8_Always_DstColorType:
- case CodecSrc::kGrayscale_Always_DstColorType:
- return true;
- default:
- return false;
- }
case SkBitmapRegionDecoder::kAndroidCodec_Strategy:
switch (dstColorType) {
case CodecSrc::kGetFromCanvas_DstColorType:
@@ -416,9 +407,6 @@ static void push_brd_src(Path path, SkBitmapRegionDecoder::Strategy strategy,
case SkBitmapRegionDecoder::kCanvas_Strategy:
folder.append("brd_canvas");
break;
- case SkBitmapRegionDecoder::kOriginal_Strategy:
- folder.append("brd_sample");
- break;
case SkBitmapRegionDecoder::kAndroidCodec_Strategy:
folder.append("brd_android_codec");
break;
@@ -464,7 +452,6 @@ static void push_brd_srcs(Path path) {
const SkBitmapRegionDecoder::Strategy strategies[] = {
SkBitmapRegionDecoder::kCanvas_Strategy,
- SkBitmapRegionDecoder::kOriginal_Strategy,
SkBitmapRegionDecoder::kAndroidCodec_Strategy,
};
@@ -559,7 +546,6 @@ static void gather_srcs() {
for (SkString file; it.next(&file); ) {
SkString path = SkOSPath::Join(flag, file.c_str());
push_src("image", "decode", new ImageSrc(path)); // Decode entire image
- push_src("image", "subset", new ImageSrc(path, 2)); // Decode into 2x2 subsets
push_codec_srcs(path);
if (brd_supported(exts[j])) {
push_brd_srcs(path);
@@ -569,7 +555,6 @@ static void gather_srcs() {
} else if (sk_exists(flag)) {
// assume that FLAGS_images[i] is a valid image if it is a file.
push_src("image", "decode", new ImageSrc(flag)); // Decode entire image.
- push_src("image", "subset", new ImageSrc(flag, 2)); // Decode into 2 x 2 subsets
push_codec_srcs(flag);
push_brd_srcs(flag);
}
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698