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

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

Issue 2777903008: Removed deprecated WebVR functionality (Closed)
Patch Set: Created 3 years, 8 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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 void UpdateWebVRTextureBounds(int16_t frame_index, 94 void UpdateWebVRTextureBounds(int16_t frame_index,
95 const gvr::Rectf& left_bounds, 95 const gvr::Rectf& left_bounds,
96 const gvr::Rectf& right_bounds, 96 const gvr::Rectf& right_bounds,
97 const gvr::Sizei& source_size); 97 const gvr::Sizei& source_size);
98 98
99 void UpdateScene(std::unique_ptr<base::ListValue> commands); 99 void UpdateScene(std::unique_ptr<base::ListValue> commands);
100 100
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 ResetPose();
105 void CreateVRDisplayInfo( 104 void CreateVRDisplayInfo(
106 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, 105 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
107 uint32_t device_id); 106 uint32_t device_id);
108 void SubmitWebVRFrame(int16_t frame_index, const gpu::MailboxHolder& mailbox); 107 void SubmitWebVRFrame(int16_t frame_index, const gpu::MailboxHolder& mailbox);
109 void SetSubmitClient( 108 void SetSubmitClient(
110 device::mojom::VRSubmitFrameClientPtrInfo submit_client_info); 109 device::mojom::VRSubmitFrameClientPtrInfo submit_client_info);
111 110
112 private: 111 private:
113 void GvrInit(gvr_context* gvr_api); 112 void GvrInit(gvr_context* gvr_api);
114 void InitializeRenderer(); 113 void InitializeRenderer();
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 gvr::Vec3f controller_start_direction_; 237 gvr::Vec3f controller_start_direction_;
239 238
240 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 239 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
241 240
242 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 241 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
243 }; 242 };
244 243
245 } // namespace vr_shell 244 } // namespace vr_shell
246 245
247 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 246 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698