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

Side by Side Diff: samplecode/SampleApp.cpp

Issue 760023002: add sample to exercise hittesting (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years 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
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 801 matching lines...) Expand 10 before | Expand all | Expand 10 after
812 SkString title; 812 SkString title;
813 if (readTitleFromPrefs(&title)) { 813 if (readTitleFromPrefs(&title)) {
814 fCurrIndex = findByTitle(title.c_str()); 814 fCurrIndex = findByTitle(title.c_str());
815 } 815 }
816 } 816 }
817 817
818 if (fCurrIndex < 0) { 818 if (fCurrIndex < 0) {
819 fCurrIndex = 0; 819 fCurrIndex = 0;
820 } 820 }
821 821
822 static SkTaskGroup::Enabler enabled(-1); 822 static SkTaskGroup::Enabler enabled(0);
823 gSampleWindow = this; 823 gSampleWindow = this;
824 824
825 #ifdef PIPE_FILE 825 #ifdef PIPE_FILE
826 //Clear existing file or create file if it doesn't exist 826 //Clear existing file or create file if it doesn't exist
827 FILE* f = fopen(FILE_PATH, "wb"); 827 FILE* f = fopen(FILE_PATH, "wb");
828 fclose(f); 828 fclose(f);
829 #endif 829 #endif
830 830
831 fDeviceType = kRaster_DeviceType; 831 fDeviceType = kRaster_DeviceType;
832 832
(...skipping 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after
2433 setenv("ANDROID_ROOT", "/android/device/data", 0); 2433 setenv("ANDROID_ROOT", "/android/device/data", 0);
2434 #endif 2434 #endif
2435 SkGraphics::Init(); 2435 SkGraphics::Init();
2436 SkEvent::Init(); 2436 SkEvent::Init();
2437 } 2437 }
2438 2438
2439 void application_term() { 2439 void application_term() {
2440 SkEvent::Term(); 2440 SkEvent::Term();
2441 SkGraphics::Term(); 2441 SkGraphics::Term();
2442 } 2442 }
OLDNEW
« no previous file with comments | « gyp/SampleApp.gyp ('k') | samplecode/SampleHT.cpp » ('j') | samplecode/SampleHT.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698