| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |