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

Side by Side Diff: chrome/browser/android/vr_shell/vr_shell_gl.h

Issue 2878893003: VR: Poll media access flags (Closed)
Patch Set: VR: Poll media access flags Created 3 years, 7 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 // 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 CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <queue> 9 #include <queue>
10 #include <utility> 10 #include <utility>
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 void UpdateVSyncInterval(int64_t timebase_nanos, double interval_seconds); 101 void UpdateVSyncInterval(int64_t timebase_nanos, double interval_seconds);
102 102
103 void OnRequest(device::mojom::VRVSyncProviderRequest request); 103 void OnRequest(device::mojom::VRVSyncProviderRequest request);
104 void CreateVRDisplayInfo( 104 void CreateVRDisplayInfo(
105 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, 105 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
106 uint32_t device_id); 106 uint32_t device_id);
107 void SubmitWebVRFrame(int16_t frame_index, const gpu::MailboxHolder& mailbox); 107 void SubmitWebVRFrame(int16_t frame_index, const gpu::MailboxHolder& mailbox);
108 void SetSubmitClient( 108 void SetSubmitClient(
109 device::mojom::VRSubmitFrameClientPtrInfo submit_client_info); 109 device::mojom::VRSubmitFrameClientPtrInfo submit_client_info);
110 110
111 void SetAudioCapturingWarning(bool is_capturing);
112 void SetVideoCapturingWarning(bool is_capturing);
113 void SetScreenCapturingWarning(bool is_capturing);
114
111 private: 115 private:
112 void GvrInit(gvr_context* gvr_api); 116 void GvrInit(gvr_context* gvr_api);
113 void InitializeRenderer(); 117 void InitializeRenderer();
114 void DrawFrame(int16_t frame_index); 118 void DrawFrame(int16_t frame_index);
115 void DrawWorldElements(const vr::Mat4f& head_pose); 119 void DrawWorldElements(const vr::Mat4f& head_pose);
116 void DrawHeadLockedElements(); 120 void DrawHeadLockedElements();
117 void DrawUiView(const vr::Mat4f& head_pose, 121 void DrawUiView(const vr::Mat4f& head_pose,
118 const std::vector<const UiElement*>& elements, 122 const std::vector<const UiElement*>& elements,
119 const gfx::Size& render_size, 123 const gfx::Size& render_size,
120 int viewport_offset, 124 int viewport_offset,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
242 gfx::Point3F pointer_start_; 246 gfx::Point3F pointer_start_;
243 247
244 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 248 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
245 249
246 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 250 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
247 }; 251 };
248 252
249 } // namespace vr_shell 253 } // namespace vr_shell
250 254
251 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 255 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698