OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2016 Google Inc. | 2 * Copyright 2016 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 #ifndef Viewer_DEFINED | 8 #ifndef Viewer_DEFINED |
9 #define Viewer_DEFINED | 9 #define Viewer_DEFINED |
10 | 10 |
(...skipping 30 matching lines...) Expand all Loading... |
41 static const int kMeasurementCount = 64; // should be power of 2 for fast m
od | 41 static const int kMeasurementCount = 64; // should be power of 2 for fast m
od |
42 double fMeasurements[kMeasurementCount]; | 42 double fMeasurements[kMeasurementCount]; |
43 int fCurrentMeasurement; | 43 int fCurrentMeasurement; |
44 | 44 |
45 SkAnimTimer fAnimTimer; | 45 SkAnimTimer fAnimTimer; |
46 SkTArray<sk_sp<Slide>> fSlides; | 46 SkTArray<sk_sp<Slide>> fSlides; |
47 int fCurrentSlide; | 47 int fCurrentSlide; |
48 | 48 |
49 bool fDisplayStats; | 49 bool fDisplayStats; |
50 | 50 |
| 51 sk_app::Window::BackendType fBackendType; |
| 52 |
51 // transform data | 53 // transform data |
52 SkScalar fZoomCenterX; | 54 SkScalar fZoomCenterX; |
53 SkScalar fZoomCenterY; | 55 SkScalar fZoomCenterY; |
54 SkScalar fZoomLevel; | 56 SkScalar fZoomLevel; |
55 SkScalar fZoomScale; | 57 SkScalar fZoomScale; |
56 | 58 |
57 sk_app::CommandSet fCommands; | 59 sk_app::CommandSet fCommands; |
58 | 60 |
59 SkTouchGesture fGesture; | 61 SkTouchGesture fGesture; |
60 }; | 62 }; |
61 | 63 |
62 | 64 |
63 #endif | 65 #endif |
OLD | NEW |