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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 24503003: SampleApp - reduce unnecessary verbosity (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: rebased again Created 7 years, 2 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 | « 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 #include "SampleApp.h" 7 #include "SampleApp.h"
8 8
9 #include "SkData.h" 9 #include "SkData.h"
10 #include "SkCanvas.h" 10 #include "SkCanvas.h"
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 listTitles(); 783 listTitles();
784 } 784 }
785 } 785 }
786 } else if (strcmp(*argv, "--msaa") == 0) { 786 } else if (strcmp(*argv, "--msaa") == 0) {
787 ++argv; 787 ++argv;
788 if (argv < stop && **argv) { 788 if (argv < stop && **argv) {
789 fMSAASampleCount = atoi(*argv); 789 fMSAASampleCount = atoi(*argv);
790 } 790 }
791 } else if (strcmp(*argv, "--list") == 0) { 791 } else if (strcmp(*argv, "--list") == 0) {
792 listTitles(); 792 listTitles();
793 } else if (strcmp(*argv, "--pictureDir") == 0) {
794 ++argv; // This case is dealt with in registerPictFileSamples().
795 } else if (strcmp(*argv, "--picture") == 0) {
796 ++argv; // This case is dealt with in registerPictFileSample().
793 } 797 }
794 else { 798 else {
795 usage(commandName); 799 usage(commandName);
796 } 800 }
797 } 801 }
798 802
799 if (fCurrIndex < 0) { 803 if (fCurrIndex < 0) {
800 SkString title; 804 SkString title;
801 if (readTitleFromPrefs(&title)) { 805 if (readTitleFromPrefs(&title)) {
802 fCurrIndex = findByTitle(title.c_str()); 806 fCurrIndex = findByTitle(title.c_str());
(...skipping 1742 matching lines...) Expand 10 before | Expand all | Expand 10 after
2545 SkGraphics::Init(); 2549 SkGraphics::Init();
2546 SkEvent::Init(); 2550 SkEvent::Init();
2547 } 2551 }
2548 2552
2549 // FIXME: this should be in a header 2553 // FIXME: this should be in a header
2550 void application_term(); 2554 void application_term();
2551 void application_term() { 2555 void application_term() {
2552 SkEvent::Term(); 2556 SkEvent::Term();
2553 SkGraphics::Term(); 2557 SkGraphics::Term();
2554 } 2558 }
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