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

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

Issue 2665293002: Only send vrdisplayactivate events to focused frames (Closed)
Patch Set: Rebase + add comments Created 3 years, 10 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 unsigned m_displayId = 0; 143 unsigned m_displayId = 0;
144 String m_displayName; 144 String m_displayName;
145 bool m_isConnected = false; 145 bool m_isConnected = false;
146 bool m_isPresenting = false; 146 bool m_isPresenting = false;
147 bool m_isValidDeviceForPresenting = true; 147 bool m_isValidDeviceForPresenting = true;
148 Member<VRDisplayCapabilities> m_capabilities; 148 Member<VRDisplayCapabilities> m_capabilities;
149 Member<VRStageParameters> m_stageParameters; 149 Member<VRStageParameters> m_stageParameters;
150 Member<VREyeParameters> m_eyeParametersLeft; 150 Member<VREyeParameters> m_eyeParametersLeft;
151 Member<VREyeParameters> m_eyeParametersRight; 151 Member<VREyeParameters> m_eyeParametersRight;
152 device::mojom::blink::VRPosePtr m_framePose; 152 device::mojom::blink::VRPosePtr m_framePose;
153 int16_t m_frameId = -1; 153
154 // This frame ID is vr-specific and is used to track when frames arrive at the
155 // VR compositor so that it knows which poses to use, when to apply bounds
156 // updates, etc.
157 int16_t m_vrFrameId = -1;
154 VRLayer m_layer; 158 VRLayer m_layer;
155 double m_depthNear = 0.01; 159 double m_depthNear = 0.01;
156 double m_depthFar = 10000.0; 160 double m_depthFar = 10000.0;
157 161
158 void dispose(); 162 void dispose();
159 163
160 TaskRunnerTimer<VRDisplay> m_fullscreenCheckTimer; 164 TaskRunnerTimer<VRDisplay> m_fullscreenCheckTimer;
161 String m_fullscreenOrigWidth; 165 String m_fullscreenOrigWidth;
162 String m_fullscreenOrigHeight; 166 String m_fullscreenOrigHeight;
163 gpu::gles2::GLES2Interface* m_contextGL = nullptr; 167 gpu::gles2::GLES2Interface* m_contextGL = nullptr;
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 RequestDenied = 12, 200 RequestDenied = 12,
197 FullscreenNotEnabled = 13, 201 FullscreenNotEnabled = 13,
198 PresentationResultMax, // Must be last member of enum. 202 PresentationResultMax, // Must be last member of enum.
199 }; 203 };
200 204
201 void ReportPresentationResult(PresentationResult); 205 void ReportPresentationResult(PresentationResult);
202 206
203 } // namespace blink 207 } // namespace blink
204 208
205 #endif // VRDisplay_h 209 #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