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

Side by Side Diff: dm/DM.cpp

Issue 1952063002: Create SkColorSpaceXform to handle color conversions (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Comments Created 4 years, 7 months 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 unified diff | Download patch
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2013 Google Inc. 2 * Copyright 2013 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #include "CrashHandler.h" 8 #include "CrashHandler.h"
9 #include "DMJsonWriter.h" 9 #include "DMJsonWriter.h"
10 #include "DMSrcSink.h" 10 #include "DMSrcSink.h"
(...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after
796 } 796 }
797 797
798 SkTArray<SkString> colorImages; 798 SkTArray<SkString> colorImages;
799 if (!CollectImages(FLAGS_colorImages, &colorImages)) { 799 if (!CollectImages(FLAGS_colorImages, &colorImages)) {
800 return false; 800 return false;
801 } 801 }
802 802
803 for (auto colorImage : colorImages) { 803 for (auto colorImage : colorImages) {
804 ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBasel ine_Mode); 804 ColorCodecSrc* src = new ColorCodecSrc(colorImage, ColorCodecSrc::kBasel ine_Mode);
805 push_src("image", "color_codec_baseline", src); 805 push_src("image", "color_codec_baseline", src);
806
807 src = new ColorCodecSrc(colorImage, ColorCodecSrc::kSrcToLinear_Mode);
808 push_src("image", "color_codec_src_to_linear", src);
806 } 809 }
807 810
808 return true; 811 return true;
809 } 812 }
810 813
811 static void push_sink(const SkCommandLineConfig& config, Sink* s) { 814 static void push_sink(const SkCommandLineConfig& config, Sink* s) {
812 SkAutoTDelete<Sink> sink(s); 815 SkAutoTDelete<Sink> sink(s);
813 816
814 // Try a simple Src as a canary. If it fails, skip this sink. 817 // Try a simple Src as a canary. If it fails, skip this sink.
815 struct : public Src { 818 struct : public Src {
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1443 #endif 1446 #endif
1444 } 1447 }
1445 } // namespace skiatest 1448 } // namespace skiatest
1446 1449
1447 #if !defined(SK_BUILD_FOR_IOS) 1450 #if !defined(SK_BUILD_FOR_IOS)
1448 int main(int argc, char** argv) { 1451 int main(int argc, char** argv) {
1449 SkCommandLineFlags::Parse(argc, argv); 1452 SkCommandLineFlags::Parse(argc, argv);
1450 return dm_main(); 1453 return dm_main();
1451 } 1454 }
1452 #endif 1455 #endif
OLDNEW
« no previous file with comments | « no previous file | dm/DMSrcSink.h » ('j') | dm/DMSrcSink.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698