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

Side by Side Diff: gm/gmmain.cpp

Issue 50713004: GM is passing the wrong flag to beginRecording() for --rtree. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 1 month 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 | « no previous file | no next file » | 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 1706 matching lines...) Expand 10 before | Expand all | Expand 10 after
1717 } 1717 }
1718 1718
1719 if (FLAGS_rtree) { 1719 if (FLAGS_rtree) {
1720 const char renderModeDescriptor[] = "-rtree"; 1720 const char renderModeDescriptor[] = "-rtree";
1721 if (gmFlags & GM::kSkipPicture_Flag) { 1721 if (gmFlags & GM::kSkipPicture_Flag) {
1722 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP lusConfig, 1722 gmmain.RecordTestResults(kIntentionallySkipped_ErrorType, shortNameP lusConfig,
1723 renderModeDescriptor); 1723 renderModeDescriptor);
1724 errorsForAllModes.add(kIntentionallySkipped_ErrorType); 1724 errorsForAllModes.add(kIntentionallySkipped_ErrorType);
1725 } else { 1725 } else {
1726 SkPicture* pict = gmmain.generate_new_picture( 1726 SkPicture* pict = gmmain.generate_new_picture(
1727 gm, kRTree_BbhType, SkPicture::kUsePathBoundsForClip_RecordingFl ag); 1727 gm, kRTree_BbhType, SkPicture::kOptimizeForClippedPlayback_Recor dingFlag);
epoger 2013/10/29 20:36:43 LGTM I don't know anything about either flag, so
1728 SkAutoUnref aur(pict); 1728 SkAutoUnref aur(pict);
1729 SkBitmap bitmap; 1729 SkBitmap bitmap;
1730 gmmain.generate_image_from_picture(gm, compareConfig, pict, &bitmap) ; 1730 gmmain.generate_image_from_picture(gm, compareConfig, pict, &bitmap) ;
1731 errorsForAllModes.add(gmmain.compare_test_results_to_reference_bitma p( 1731 errorsForAllModes.add(gmmain.compare_test_results_to_reference_bitma p(
1732 gm->shortName(), compareConfig.fName, renderModeDescriptor, bitm ap, 1732 gm->shortName(), compareConfig.fName, renderModeDescriptor, bitm ap,
1733 &comparisonBitmap)); 1733 &comparisonBitmap));
1734 } 1734 }
1735 } 1735 }
1736 1736
1737 if (FLAGS_tileGrid) { 1737 if (FLAGS_tileGrid) {
(...skipping 637 matching lines...) Expand 10 before | Expand all | Expand 10 after
2375 if (FLAGS_forceBWtext) { 2375 if (FLAGS_forceBWtext) {
2376 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref(); 2376 canvas->setDrawFilter(SkNEW(BWTextDrawFilter))->unref();
2377 } 2377 }
2378 } 2378 }
2379 2379
2380 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL) 2380 #if !defined(SK_BUILD_FOR_IOS) && !defined(SK_BUILD_FOR_NACL)
2381 int main(int argc, char * const argv[]) { 2381 int main(int argc, char * const argv[]) {
2382 return tool_main(argc, (char**) argv); 2382 return tool_main(argc, (char**) argv);
2383 } 2383 }
2384 #endif 2384 #endif
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698