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

Side by Side Diff: third_party/WebKit/Source/modules/vr/VRDisplay.h

Issue 2640793008: Move VRDisplay timer to frame-specific TaskRunnerTimer. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef VRDisplay_h 5 #ifndef VRDisplay_h
6 #define VRDisplay_h 6 #define VRDisplay_h
7 7
8 #include "core/dom/Document.h" 8 #include "core/dom/Document.h"
9 #include "core/dom/FrameRequestCallback.h" 9 #include "core/dom/FrameRequestCallback.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 Member<VRStageParameters> m_stageParameters; 144 Member<VRStageParameters> m_stageParameters;
145 Member<VREyeParameters> m_eyeParametersLeft; 145 Member<VREyeParameters> m_eyeParametersLeft;
146 Member<VREyeParameters> m_eyeParametersRight; 146 Member<VREyeParameters> m_eyeParametersRight;
147 device::mojom::blink::VRPosePtr m_framePose; 147 device::mojom::blink::VRPosePtr m_framePose;
148 VRLayer m_layer; 148 VRLayer m_layer;
149 double m_depthNear; 149 double m_depthNear;
150 double m_depthFar; 150 double m_depthFar;
151 151
152 void dispose(); 152 void dispose();
153 153
154 Timer<VRDisplay> m_fullscreenCheckTimer; 154 TaskRunnerTimer<VRDisplay> m_fullscreenCheckTimer;
155 String m_fullscreenOrigWidth; 155 String m_fullscreenOrigWidth;
156 String m_fullscreenOrigHeight; 156 String m_fullscreenOrigHeight;
157 gpu::gles2::GLES2Interface* m_contextGL; 157 gpu::gles2::GLES2Interface* m_contextGL;
158 Member<WebGLRenderingContextBase> m_renderingContext; 158 Member<WebGLRenderingContextBase> m_renderingContext;
159 159
160 Member<ScriptedAnimationController> m_scriptedAnimationController; 160 Member<ScriptedAnimationController> m_scriptedAnimationController;
161 bool m_animationCallbackRequested; 161 bool m_animationCallbackRequested;
162 bool m_inAnimationFrame; 162 bool m_inAnimationFrame;
163 bool m_displayBlurred; 163 bool m_displayBlurred;
164 bool m_reenteredFullscreen; 164 bool m_reenteredFullscreen;
(...skipping 22 matching lines...) Expand all
187 ServiceInactive = 11, 187 ServiceInactive = 11,
188 RequestDenied = 12, 188 RequestDenied = 12,
189 PresentationResultMax, // Must be last member of enum. 189 PresentationResultMax, // Must be last member of enum.
190 }; 190 };
191 191
192 void ReportPresentationResult(PresentationResult); 192 void ReportPresentationResult(PresentationResult);
193 193
194 } // namespace blink 194 } // namespace blink
195 195
196 #endif // VRDisplay_h 196 #endif // VRDisplay_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698