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

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

Issue 2890563003: VR: Update UiSceneManager with audio/video capturing flags (Closed)
Patch Set: rebase 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
115 private: 111 private:
116 void GvrInit(gvr_context* gvr_api); 112 void GvrInit(gvr_context* gvr_api);
117 void InitializeRenderer(); 113 void InitializeRenderer();
118 void DrawFrame(int16_t frame_index); 114 void DrawFrame(int16_t frame_index);
119 void DrawWorldElements(const vr::Mat4f& head_pose); 115 void DrawWorldElements(const vr::Mat4f& head_pose);
120 void DrawHeadLockedElements(); 116 void DrawHeadLockedElements();
121 void DrawUiView(const vr::Mat4f& head_pose, 117 void DrawUiView(const vr::Mat4f& head_pose,
122 const std::vector<const UiElement*>& elements, 118 const std::vector<const UiElement*>& elements,
123 const gfx::Size& render_size, 119 const gfx::Size& render_size,
124 int viewport_offset, 120 int viewport_offset,
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 gfx::Point3F pointer_start_; 271 gfx::Point3F pointer_start_;
276 272
277 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 273 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
278 274
279 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 275 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
280 }; 276 };
281 277
282 } // namespace vr_shell 278 } // namespace vr_shell
283 279
284 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 280 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
OLDNEW
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_shell_gl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698