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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 1245643002: Generate platform specific fontmgr gm. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: add key placeholder to enable SampleApp and VisualBench to link Created 5 years, 5 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 | « gm/fontmgr.cpp ('k') | tools/VisualBench/VisualBench.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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after
693 static bool compareSampleTitle(const SkViewFactory* first, const SkViewFactory* second) { 693 static bool compareSampleTitle(const SkViewFactory* first, const SkViewFactory* second) {
694 return strcmp(getSampleTitle(first).c_str(), getSampleTitle(second).c_str()) < 0; 694 return strcmp(getSampleTitle(first).c_str(), getSampleTitle(second).c_str()) < 0;
695 } 695 }
696 696
697 DEFINE_string(slide, "", "Start on this sample."); 697 DEFINE_string(slide, "", "Start on this sample.");
698 DEFINE_int32(msaa, 0, "Request multisampling with this count."); 698 DEFINE_int32(msaa, 0, "Request multisampling with this count.");
699 DEFINE_string(pictureDir, "", "Read pictures from here."); 699 DEFINE_string(pictureDir, "", "Read pictures from here.");
700 DEFINE_string(picture, "", "Path to single picture."); 700 DEFINE_string(picture, "", "Path to single picture.");
701 DEFINE_bool(sort, false, "Sort samples by title."); 701 DEFINE_bool(sort, false, "Sort samples by title.");
702 DEFINE_bool(list, false, "List samples?"); 702 DEFINE_bool(list, false, "List samples?");
703 DEFINE_string(key, "", ""); // dummy to enable gm tests that have platform-spec ific names
703 #ifdef SAMPLE_PDF_FILE_VIEWER 704 #ifdef SAMPLE_PDF_FILE_VIEWER
704 DEFINE_string(pdfPath, "", "Path to direcotry of pdf files."); 705 DEFINE_string(pdfPath, "", "Path to direcotry of pdf files.");
705 #endif 706 #endif
706 707
707 #include "SkTaskGroup.h" 708 #include "SkTaskGroup.h"
708 709
709 SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev Manager) 710 SampleWindow::SampleWindow(void* hwnd, int argc, char** argv, DeviceManager* dev Manager)
710 : INHERITED(hwnd) 711 : INHERITED(hwnd)
711 , fDevManager(NULL) { 712 , fDevManager(NULL) {
712 713
(...skipping 1590 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 setenv("ANDROID_ROOT", "/android/device/data", 0); 2304 setenv("ANDROID_ROOT", "/android/device/data", 0);
2304 #endif 2305 #endif
2305 SkGraphics::Init(); 2306 SkGraphics::Init();
2306 SkEvent::Init(); 2307 SkEvent::Init();
2307 } 2308 }
2308 2309
2309 void application_term() { 2310 void application_term() {
2310 SkEvent::Term(); 2311 SkEvent::Term();
2311 SkGraphics::Term(); 2312 SkGraphics::Term();
2312 } 2313 }
OLDNEW
« no previous file with comments | « gm/fontmgr.cpp ('k') | tools/VisualBench/VisualBench.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698