Index: dm/DM.cpp |
diff --git a/dm/DM.cpp b/dm/DM.cpp |
index fe1432bf32f16332750f2d32c358f19d10ab740b..9dbd43adda05367aa7ec1fccbda964de73593d59 100644 |
--- a/dm/DM.cpp |
+++ b/dm/DM.cpp |
@@ -779,7 +779,7 @@ static bool gather_srcs() { |
} |
SkTArray<SkString> images; |
- if (!CollectImages(&images)) { |
+ if (!CollectImages(FLAGS_images, &images)) { |
return false; |
} |
@@ -795,6 +795,16 @@ static bool gather_srcs() { |
} |
} |
+ SkTArray<SkString> colorImages; |
+ if (!CollectImages(FLAGS_colorImages, &colorImages)) { |
+ return false; |
+ } |
+ |
+ for (auto colorImage : colorImages) { |
+ ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBaseline_Mode); |
+ push_src("image", "color_codec_baseline", src); |
+ } |
+ |
return true; |
} |