Chromium Code Reviews| Index: dm/DM.cpp |
| diff --git a/dm/DM.cpp b/dm/DM.cpp |
| index fe1432bf32f16332750f2d32c358f19d10ab740b..8de7a9f23c3371daadd415f74cb061ca5651eed0 100644 |
| --- a/dm/DM.cpp |
| +++ b/dm/DM.cpp |
| @@ -762,6 +762,11 @@ static bool brd_supported(const char* ext) { |
| return false; |
| } |
| +static void push_color_codec_srcs(Path path) { |
| + ColorCodecSrc* src = new ColorCodecSrc(path, ColorCodecSrc::kBaseline_Mode); |
|
scroggo
2016/04/29 15:36:51
Given that this is only two lines and only called
msarett
2016/04/29 16:37:24
Done.
|
| + push_src("image", "color_codec_baseline", src); |
| +} |
| + |
| static bool gather_srcs() { |
| for (const skiagm::GMRegistry* r = skiagm::GMRegistry::Head(); r; r = r->next()) { |
| push_src("gm", "", new GMSrc(r->factory())); |
| @@ -779,7 +784,7 @@ static bool gather_srcs() { |
| } |
| SkTArray<SkString> images; |
| - if (!CollectImages(&images)) { |
| + if (!CollectImages(FLAGS_images, &images)) { |
| return false; |
| } |
| @@ -795,6 +800,15 @@ static bool gather_srcs() { |
| } |
| } |
| + SkTArray<SkString> colorImages; |
| + if (!CollectImages(FLAGS_colorImages, &colorImages)) { |
| + return false; |
| + } |
| + |
| + for (auto colorImage : colorImages) { |
| + push_color_codec_srcs(colorImage); |
| + } |
| + |
| return true; |
| } |