Chromium Code Reviews| 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 "OverwriteLine.h" | 9 // #include "OverwriteLine.h" |
| 10 #include "Resources.h" | 10 #include "Resources.h" |
| 11 #include "SkBitmap.h" | 11 #include "SkBitmap.h" |
| 12 #include "SkCanvas.h" | 12 #include "SkCanvas.h" |
| 13 #include "SkColor.h" | 13 #include "SkColor.h" |
| 14 #include "SkColorPriv.h" | 14 #include "SkColorPriv.h" |
| 15 #include "SkCommandLineFlags.h" | 15 #include "SkCommandLineFlags.h" |
| 16 #include "SkForceLinking.h" | 16 #include "SkForceLinking.h" |
| 17 #include "SkGraphics.h" | 17 #include "SkGraphics.h" |
| 18 #include "SkImageEncoder.h" | 18 #include "SkImageEncoder.h" |
| 19 #include "SkOSFile.h" | 19 #include "SkOSFile.h" |
| 20 #include "SkPathOpsDebug.h" | 20 #include "SkPathOpsDebug.h" |
| 21 #include "SkPicture.h" | 21 #include "SkPicture.h" |
| 22 #include "SkRTConf.h" | |
| 23 #include "SkTSort.h" | 22 #include "SkTSort.h" |
| 24 #include "SkStream.h" | 23 #include "SkStream.h" |
| 25 #include "SkString.h" | 24 #include "SkString.h" |
| 26 #include "SkTArray.h" | 25 #include "SkTArray.h" |
| 27 #include "SkTDArray.h" | 26 #include "SkTDArray.h" |
| 28 #include "SkTaskGroup.h" | 27 #include "SkTaskGroup.h" |
| 29 #include "SkTemplates.h" | 28 #include "SkTemplates.h" |
| 29 #include "SkTSearch.h" | |
| 30 #include "SkTime.h" | 30 #include "SkTime.h" |
| 31 | 31 |
| 32 #include <stdlib.h> | 32 #include <stdlib.h> |
| 33 | 33 |
| 34 /* add local exceptions here */ | 34 /* add local exceptions here */ |
| 35 /* TODO : add command flag interface */ | 35 /* TODO : add command flag interface */ |
| 36 const struct SkipOverTest { | 36 const struct SkipOverTest { |
| 37 int directory; | 37 int directory; |
| 38 const char* filename; | 38 const char* filename; |
| 39 bool blamePathOps; | 39 bool blamePathOps; |
| (...skipping 694 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 734 } | 734 } |
| 735 #endif | 735 #endif |
| 736 } | 736 } |
| 737 checkEarlyExit: | 737 checkEarlyExit: |
| 738 ; | 738 ; |
| 739 } | 739 } |
| 740 return true; | 740 return true; |
| 741 } | 741 } |
| 742 | 742 |
| 743 static void initTest() { | 743 static void initTest() { |
| 744 #if !defined SK_BUILD_FOR_WIN && !defined SK_BUILD_FOR_MAC | 744 #if defined(SK_DEBUG) && !defined SK_BUILD_FOR_WIN && !defined SK_BUILD_FOR_MAC |
| 745 SK_CONF_SET("images.jpeg.suppressDecoderWarnings", true); | 745 c_suppressPNGImageDecoderWarnings = true; |
|
mtklein
2016/08/03 17:43:21
let's delete this for real
hal.canary
2016/08/03 21:23:43
Done.
| |
| 746 SK_CONF_SET("images.png.suppressDecoderWarnings", true); | |
| 747 #endif | 746 #endif |
| 748 } | 747 } |
| 749 | 748 |
| 750 static void testSkpClipEncode(TestState* data) { | 749 static void testSkpClipEncode(TestState* data) { |
| 751 data->fResult.testOne(); | 750 data->fResult.testOne(); |
| 752 if (verbose()) { | 751 if (verbose()) { |
| 753 SkDebugf("+"); | 752 SkDebugf("+"); |
| 754 } | 753 } |
| 755 } | 754 } |
| 756 | 755 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1092 } | 1091 } |
| 1093 } | 1092 } |
| 1094 return 0; | 1093 return 0; |
| 1095 } | 1094 } |
| 1096 | 1095 |
| 1097 #if !defined(SK_BUILD_FOR_IOS) | 1096 #if !defined(SK_BUILD_FOR_IOS) |
| 1098 int main(int argc, char * const argv[]) { | 1097 int main(int argc, char * const argv[]) { |
| 1099 return tool_main(argc, (char**) argv); | 1098 return tool_main(argc, (char**) argv); |
| 1100 } | 1099 } |
| 1101 #endif | 1100 #endif |
| OLD | NEW |