| 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 1540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1551 } | 1551 } |
| 1552 } | 1552 } |
| 1553 if ((gmFlags & GM::kSkip565_Flag) && | 1553 if ((gmFlags & GM::kSkip565_Flag) && |
| 1554 (kRaster_Backend == config.fBackend) && | 1554 (kRaster_Backend == config.fBackend) && |
| 1555 (SkBitmap::kRGB_565_Config == config.fConfig)) { | 1555 (SkBitmap::kRGB_565_Config == config.fConfig)) { |
| 1556 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, | 1556 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, |
| 1557 renderModeDescriptor); | 1557 renderModeDescriptor); |
| 1558 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); | 1558 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); |
| 1559 continue; | 1559 continue; |
| 1560 } | 1560 } |
| 1561 if ((gmFlags & GM::kSkipGPU_Flag) && | 1561 if (((gmFlags & GM::kSkipGPU_Flag) && kGPU_Backend == config.fBackend) |
| |
| 1562 kGPU_Backend == config.fBackend) { | 1562 ((gmFlags & GM::kGPUOnly_Flag) && kGPU_Backend != config.fBackend))
{ |
| 1563 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, | 1563 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP
lusConfig, |
| 1564 renderModeDescriptor); | 1564 renderModeDescriptor); |
| 1565 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); | 1565 errorsForAllConfigs.add(kIntentionallySkipped_ErrorType); |
| 1566 continue; | 1566 continue; |
| 1567 } | 1567 } |
| 1568 | 1568 |
| 1569 // Now we know that we want to run this test and record its | 1569 // Now we know that we want to run this test and record its |
| 1570 // success or failure. | 1570 // success or failure. |
| 1571 ErrorCombination errorsForThisConfig; | 1571 ErrorCombination errorsForThisConfig; |
| 1572 GrSurface* gpuTarget = NULL; | 1572 GrSurface* gpuTarget = NULL; |
| (...skipping 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2298 if (FLAGS_forceBWtext) { | 2298 if (FLAGS_forceBWtext) { |
| 2299 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); | 2299 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); |
| 2300 } | 2300 } |
| 2301 } | 2301 } |
| 2302 | 2302 |
| 2303 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) | 2303 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) |
| 2304 int main(int argc, char * const argv[]) { | 2304 int main(int argc, char * const argv[]) { |
| 2305 return tool_main(argc, (char**) argv); | 2305 return tool_main(argc, (char**) argv); |
| 2306 } | 2306 } |
| 2307 #endif | 2307 #endif |
| OLD | NEW |