OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2011 Google Inc. | 2 * Copyright 2011 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 /* | 8 /* |
9 * Code for the "gm" (Golden Master) rendering comparison tool. | 9 * Code for the "gm" (Golden Master) rendering comparison tool. |
10 * | 10 * |
(...skipping 1490 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1501 } | 1501 } |
1502 } | 1502 } |
1503 if ((gmFlags & GM::kSkip565_Flag) && | 1503 if ((gmFlags & GM::kSkip565_Flag) && |
1504 (kRaster_Backend == config.fBackend) && | 1504 (kRaster_Backend == config.fBackend) && |
1505 (SkBitmap::kRGB_565_Config == config.fConfig)) { | 1505 (SkBitmap::kRGB_565_Config == config.fConfig)) { |
1506 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, | 1506 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, |
1507 renderModeDescriptor); | 1507 renderModeDescriptor); |
1508 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); | 1508 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); |
1509 continue; | 1509 continue; |
1510 } | 1510 } |
1511 if ((gmFlags & GM::kSkipGPU_Flag) && | 1511 if (((gmFlags & GM::kSkipGPU_Flag) && kGPU_Backend == config.fBackend) |
| |
1512 kGPU_Backend == config.fBackend) { | 1512 ((gmFlags & GM::kGPUOnly_Flag) && kGPU_Backend != config.fBackend))
{ |
1513 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, | 1513 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, |
1514 renderModeDescriptor); | 1514 renderModeDescriptor); |
1515 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); | 1515 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); |
1516 continue; | 1516 continue; |
1517 } | 1517 } |
1518 | 1518 |
1519 // Now we know that we want to run this test and record its | 1519 // Now we know that we want to run this test and record its |
1520 // success or failure. | 1520 // success or failure. |
1521 ErrorCombination errorsForThisConfig; | 1521 ErrorCombination errorsForThisConfig; |
1522 GrSurface* gpuTarget = NULL; | 1522 GrSurface* gpuTarget = NULL; |
(...skipping 661 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2184 if (FLAGS_forceBWtext) { | 2184 if (FLAGS_forceBWtext) { |
2185 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2185 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
2186 } | 2186 } |
2187 } | 2187 } |
2188 | 2188 |
2189 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2189 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
2190 int main(int argc, char * const argv[]) { | 2190 int main(int argc, char * const argv[]) { |
2191 return tool_main(argc, (char**) argv); | 2191 return tool_main(argc, (char**) argv); |
2192 } | 2192 } |
2193 #endif | 2193 #endif |
OLD | NEW |