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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 428443002: Cleanup: Rename SkOSPath functions. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix Created 6 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
« no previous file with comments | « include/core/SkOSFile.h ('k') | samplecode/SampleUnpremul.cpp » ('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 #include "SampleApp.h" 8 #include "SampleApp.h"
9 9
10 #include "OverView.h" 10 #include "OverView.h"
(...skipping 737 matching lines...) Expand 10 before | Expand all | Expand 10 after
748 748
749 SkCommandLineFlags::Parse(argc, argv); 749 SkCommandLineFlags::Parse(argc, argv);
750 750
751 fCurrIndex = -1; 751 fCurrIndex = -1;
752 752
753 if (!FLAGS_pictureDir.isEmpty()) { 753 if (!FLAGS_pictureDir.isEmpty()) {
754 SkOSFile::Iter iter(FLAGS_pictureDir[0], "skp"); 754 SkOSFile::Iter iter(FLAGS_pictureDir[0], "skp");
755 SkString filename; 755 SkString filename;
756 while (iter.next(&filename)) { 756 while (iter.next(&filename)) {
757 *fSamples.append() = new PictFileFactory( 757 *fSamples.append() = new PictFileFactory(
758 SkOSPath::SkPathJoin(FLAGS_pictureDir[0], filename.c_str())) ; 758 SkOSPath::Join(FLAGS_pictureDir[0], filename.c_str()));
759 } 759 }
760 } 760 }
761 if (!FLAGS_picture.isEmpty()) { 761 if (!FLAGS_picture.isEmpty()) {
762 SkString path(FLAGS_picture[0]); 762 SkString path(FLAGS_picture[0]);
763 fCurrIndex = fSamples.count(); 763 fCurrIndex = fSamples.count();
764 *fSamples.append() = new PictFileFactory(path); 764 *fSamples.append() = new PictFileFactory(path);
765 } 765 }
766 #ifdef SAMPLE_PDF_FILE_VIEWER 766 #ifdef SAMPLE_PDF_FILE_VIEWER
767 if (!FLAGS_pdfPath.isEmpty()) { 767 if (!FLAGS_pdfPath.isEmpty()) {
768 SkOSFile::Iter iter(FLAGS_pdfPath[0], "pdf"); 768 SkOSFile::Iter iter(FLAGS_pdfPath[0], "pdf");
769 SkString filename; 769 SkString filename;
770 while (iter.next(&filename)) { 770 while (iter.next(&filename)) {
771 *fSamples.append() = new PdfFileViewerFactory( 771 *fSamples.append() = new PdfFileViewerFactory(
772 SkOSPath::SkPathJoin(FLAGS_pictureDir[0], filename.c_str())) ; 772 SkOSPath::Join(FLAGS_pictureDir[0], filename.c_str()));
773 } 773 }
774 } 774 }
775 #endif 775 #endif
776 SkGMRegistyToSampleRegistry(); 776 SkGMRegistyToSampleRegistry();
777 { 777 {
778 const SkViewRegister* reg = SkViewRegister::Head(); 778 const SkViewRegister* reg = SkViewRegister::Head();
779 while (reg) { 779 while (reg) {
780 *fSamples.append() = reg->factory(); 780 *fSamples.append() = reg->factory();
781 reg = reg->next(); 781 reg = reg->next();
782 } 782 }
(...skipping 1615 matching lines...) Expand 10 before | Expand all | Expand 10 after
2398 setenv("ANDROID_ROOT", "/android/device/data", 0); 2398 setenv("ANDROID_ROOT", "/android/device/data", 0);
2399 #endif 2399 #endif
2400 SkGraphics::Init(); 2400 SkGraphics::Init();
2401 SkEvent::Init(); 2401 SkEvent::Init();
2402 } 2402 }
2403 2403
2404 void application_term() { 2404 void application_term() {
2405 SkEvent::Term(); 2405 SkEvent::Term();
2406 SkGraphics::Term(); 2406 SkGraphics::Term();
2407 } 2407 }
OLDNEW
« no previous file with comments | « include/core/SkOSFile.h ('k') | samplecode/SampleUnpremul.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698