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

Side by Side Diff: dm/DM.cpp

Issue 1748823002: Revert of 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: 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 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 contextOptions = static_cast<GrContextFactory::GLContextOptions> ( 718 contextOptions = static_cast<GrContextFactory::GLContextOptions> (
719 contextOptions | GrContextFactory::kEnableNVPR_GLContextOpti ons); 719 contextOptions | GrContextFactory::kEnableNVPR_GLContextOpti ons);
720 } 720 }
721 GrContextFactory testFactory; 721 GrContextFactory testFactory;
722 if (!testFactory.get(contextType, contextOptions)) { 722 if (!testFactory.get(contextType, contextOptions)) {
723 SkDebugf("WARNING: can not create GPU context for config '%s'. " 723 SkDebugf("WARNING: can not create GPU context for config '%s'. "
724 "GM tests will be skipped.\n", gpuConfig->getTag().c_st r()); 724 "GM tests will be skipped.\n", gpuConfig->getTag().c_st r());
725 return nullptr; 725 return nullptr;
726 } 726 }
727 return new GPUSink(contextType, contextOptions, gpuConfig->getSample s(), 727 return new GPUSink(contextType, contextOptions, gpuConfig->getSample s(),
728 gpuConfig->getUseDIText(), gpuConfig->getColorTyp e(), 728 gpuConfig->getUseDIText(), FLAGS_gpu_threading);
729 gpuConfig->getProfileType(), FLAGS_gpu_threading) ;
730 } 729 }
731 } 730 }
732 #endif 731 #endif
733 732
734 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) { return new sink (__VA_ARGS__); } 733 #define SINK(t, sink, ...) if (config->getBackend().equals(t)) { return new sink (__VA_ARGS__); }
735 734
736 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK 735 #ifdef SK_BUILD_FOR_ANDROID_FRAMEWORK
737 SINK("hwui", HWUISink); 736 SINK("hwui", HWUISink);
738 #endif 737 #endif
739 738
(...skipping 634 matching lines...) Expand 10 before | Expand all | Expand 10 after
1374 Reporter* reporter, 1373 Reporter* reporter,
1375 GrContextFactory* fac tory); 1374 GrContextFactory* fac tory);
1376 } // namespace skiatest 1375 } // namespace skiatest
1377 1376
1378 #if !defined(SK_BUILD_FOR_IOS) 1377 #if !defined(SK_BUILD_FOR_IOS)
1379 int main(int argc, char** argv) { 1378 int main(int argc, char** argv) {
1380 SkCommandLineFlags::Parse(argc, argv); 1379 SkCommandLineFlags::Parse(argc, argv);
1381 return dm_main(); 1380 return dm_main();
1382 } 1381 }
1383 #endif 1382 #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