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

Side by Side Diff: gm/gmmain.cpp

Issue 23352003: Create new target to hold gpu test code, enable direct testing of GrEffects in GM. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Rob's comments Created 7 years, 4 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 | Annotate | Revision Log
« no previous file with comments | « gm/gm.h ('k') | gyp/SampleApp.gyp » ('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 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
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
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
OLDNEW
« no previous file with comments | « gm/gm.h ('k') | gyp/SampleApp.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698