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

Side by Side Diff: dm/DM.cpp

Issue 1750383002: Progress on gamma-correctness in the GPU backend. Fixed conversion of color and profile type to pix… (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove ANGLE sRGB, which isn't going to be supported in the near term. Created 4 years, 9 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') | no next file with comments »
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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 contextOptions = static_cast<GrContextFactory::GLContextOptions> ( 758 contextOptions = static_cast<GrContextFactory::GLContextOptions> (
759 contextOptions | GrContextFactory::kEnableNVPR_GLContextOpti ons); 759 contextOptions | GrContextFactory::kEnableNVPR_GLContextOpti ons);
760 } 760 }
761 GrContextFactory testFactory; 761 GrContextFactory testFactory;
762 if (!testFactory.get(contextType, contextOptions)) { 762 if (!testFactory.get(contextType, contextOptions)) {
763 info("WARNING: can not create GPU context for config '%s'. " 763 info("WARNING: can not create GPU context for config '%s'. "
764 "GM tests will be skipped.\n", gpuConfig->getTag().c_str()) ; 764 "GM tests will be skipped.\n", gpuConfig->getTag().c_str()) ;
765 return nullptr; 765 return nullptr;
766 } 766 }
767 return new GPUSink(contextType, contextOptions, gpuConfig->getSample s(), 767 return new GPUSink(contextType, contextOptions, gpuConfig->getSample s(),
768 gpuConfig->getUseDIText(), FLAGS_gpu_threading); 768 gpuConfig->getUseDIText(), gpuConfig->getColorTyp e(),
769 gpuConfig->getProfileType(), FLAGS_gpu_threading) ;
769 } 770 }
770 } 771 }
771 #endif 772 #endif
772 773
773 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) { return new sink (__VA_ARGS__); } 774 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) { return new sink (__VA_ARGS__); }
774 775
775 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK 776 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
776 SINK("hwui", HWUISink); 777 SINK("hwui", HWUISink);
777 #endif 778 #endif
778 779
(...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after
1429 Reporter* reporter, 1430 Reporter* reporter,
1430 GrContextFactory* fac tory); 1431 GrContextFactory* fac tory);
1431 } // namespace skiatest 1432 } // namespace skiatest
1432 1433
1433 #if !defined(SK_BUILD_FOR_IOS) 1434 #if !defined(SK_BUILD_FOR_IOS)
1434 int main(int argc, char** argv) { 1435 int main(int argc, char** argv) {
1435 SkCommandLineFlags::Parse(argc, argv); 1436 SkCommandLineFlags::Parse(argc, argv);
1436 return dm_main(); 1437 return dm_main();
1437 } 1438 }
1438 #endif 1439 #endif
OLDNEW
« 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