OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |