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 #include "SampleApp.h" | 7 #include "SampleApp.h" |
8 | 8 |
9 #include "SkData.h" | 9 #include "SkData.h" |
10 #include "SkCanvas.h" | 10 #include "SkCanvas.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 #ifdef PIPE_FILE | 71 #ifdef PIPE_FILE |
72 #define FILE_PATH "/path/to/drawing.data" | 72 #define FILE_PATH "/path/to/drawing.data" |
73 #endif | 73 #endif |
74 | 74 |
75 #define PIPE_NETx | 75 #define PIPE_NETx |
76 #ifdef PIPE_NET | 76 #ifdef PIPE_NET |
77 #include "SkSockets.h" | 77 #include "SkSockets.h" |
78 SkTCPServer gServer; | 78 SkTCPServer gServer; |
79 #endif | 79 #endif |
80 | 80 |
81 #define USE_ARROWS_FOR_ZOOM false | 81 #define USE_ARROWS_FOR_ZOOM true |
82 | 82 |
83 #if SK_ANGLE | 83 #if SK_ANGLE |
84 //#define DEFAULT_TO_ANGLE 1 | 84 //#define DEFAULT_TO_ANGLE 1 |
85 #else | 85 #else |
86 #define DEFAULT_TO_GPU 0 // if 1 default rendering is on GPU | 86 #define DEFAULT_TO_GPU 0 // if 1 default rendering is on GPU |
87 #endif | 87 #endif |
88 | 88 |
89 #define ANIMATING_EVENTTYPE "nextSample" | 89 #define ANIMATING_EVENTTYPE "nextSample" |
90 #define ANIMATING_DELAY 250 | 90 #define ANIMATING_DELAY 250 |
91 | 91 |
(...skipping 2466 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2558 SkGraphics::Init(); | 2558 SkGraphics::Init(); |
2559 SkEvent::Init(); | 2559 SkEvent::Init(); |
2560 } | 2560 } |
2561 | 2561 |
2562 // FIXME: this should be in a header | 2562 // FIXME: this should be in a header |
2563 void application_term(); | 2563 void application_term(); |
2564 void application_term() { | 2564 void application_term() { |
2565 SkEvent::Term(); | 2565 SkEvent::Term(); |
2566 SkGraphics::Term(); | 2566 SkGraphics::Term(); |
2567 } | 2567 } |
OLD | NEW |