| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 return CreateSamplePdfFileViewer(fFilename.c_str()); | 67 return CreateSamplePdfFileViewer(fFilename.c_str()); |
| 68 } | 68 } |
| 69 }; | 69 }; |
| 70 #endif // SAMPLE_PDF_FILE_VIEWER | 70 #endif // SAMPLE_PDF_FILE_VIEWER |
| 71 | 71 |
| 72 #if SK_COMMAND_BUFFER | 72 #if SK_COMMAND_BUFFER |
| 73 #define DEFAULT_TO_COMMAND_BUFFER 1 | 73 #define DEFAULT_TO_COMMAND_BUFFER 1 |
| 74 #elif SK_ANGLE | 74 #elif SK_ANGLE |
| 75 //#define DEFAULT_TO_ANGLE 1 | 75 //#define DEFAULT_TO_ANGLE 1 |
| 76 #else | 76 #else |
| 77 #define DEFAULT_TO_GPU 0 // if 1 default rendering is on GPU | 77 #define DEFAULT_TO_GPU 1 // if 1 default rendering is on GPU |
| 78 #endif | 78 #endif |
| 79 | 79 |
| 80 #define ANIMATING_EVENTTYPE "nextSample" | 80 #define ANIMATING_EVENTTYPE "nextSample" |
| 81 #define ANIMATING_DELAY 250 | 81 #define ANIMATING_DELAY 250 |
| 82 | 82 |
| 83 #ifdef SK_DEBUG | 83 #ifdef SK_DEBUG |
| 84 #define FPS_REPEAT_MULTIPLIER 1 | 84 #define FPS_REPEAT_MULTIPLIER 1 |
| 85 #else | 85 #else |
| 86 #define FPS_REPEAT_MULTIPLIER 10 | 86 #define FPS_REPEAT_MULTIPLIER 10 |
| 87 #endif | 87 #endif |
| (...skipping 2174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2262 #ifdef SK_BUILD_FOR_MAC | 2262 #ifdef SK_BUILD_FOR_MAC |
| 2263 setenv("ANDROID_ROOT", "/android/device/data", 0); | 2263 setenv("ANDROID_ROOT", "/android/device/data", 0); |
| 2264 #endif | 2264 #endif |
| 2265 SkGraphics::Init(); | 2265 SkGraphics::Init(); |
| 2266 SkEvent::Init(); | 2266 SkEvent::Init(); |
| 2267 } | 2267 } |
| 2268 | 2268 |
| 2269 void application_term() { | 2269 void application_term() { |
| 2270 SkEvent::Term(); | 2270 SkEvent::Term(); |
| 2271 } | 2271 } |
| OLD | NEW |