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

Side by Side Diff: tools/viewer/Viewer.h

Issue 2129613002: More accurate render time and continuous fresh (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 5 months 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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 static const int kMeasurementCount = 64; // should be power of 2 for fast m od 46 static const int kMeasurementCount = 64; // should be power of 2 for fast m od
47 double fMeasurements[kMeasurementCount]; 47 double fMeasurements[kMeasurementCount];
48 int fCurrentMeasurement; 48 int fCurrentMeasurement;
49 49
50 SkAnimTimer fAnimTimer; 50 SkAnimTimer fAnimTimer;
51 SkTArray<sk_sp<Slide>> fSlides; 51 SkTArray<sk_sp<Slide>> fSlides;
52 int fCurrentSlide; 52 int fCurrentSlide;
53 53
54 bool fDisplayStats; 54 bool fDisplayStats;
55 bool fRefresh; // whether to continuously refresh for meas uring render time
55 56
56 // whether to split the screen and draw two copies of the slide, one with sR GB and one without 57 // whether to split the screen and draw two copies of the slide, one with sR GB and one without
57 bool fSplitScreen; 58 bool fSplitScreen;
58 59
59 sk_app::Window::BackendType fBackendType; 60 sk_app::Window::BackendType fBackendType;
60 61
61 // transform data 62 // transform data
62 SkScalar fZoomCenterX; 63 SkScalar fZoomCenterX;
63 SkScalar fZoomCenterY; 64 SkScalar fZoomCenterY;
64 SkScalar fZoomLevel; 65 SkScalar fZoomLevel;
65 SkScalar fZoomScale; 66 SkScalar fZoomScale;
66 67
67 sk_app::CommandSet fCommands; 68 sk_app::CommandSet fCommands;
68 69
69 SkTouchGesture fGesture; 70 SkTouchGesture fGesture;
70 71
71 // identity unless the window initially scales the content to fit the screen . 72 // identity unless the window initially scales the content to fit the screen .
72 SkMatrix fDefaultMatrix; 73 SkMatrix fDefaultMatrix;
73 SkMatrix fDefaultMatrixInv; 74 SkMatrix fDefaultMatrixInv;
74 75
75 Json::Value fAllSlideNames; // cache all slide names for fast upd ateUIState 76 Json::Value fAllSlideNames; // cache all slide names for fast upd ateUIState
76 }; 77 };
77 78
78 79
79 #endif 80 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698