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

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

Issue 2814443004: Refactor VR math off of GVR types, onto gfx types where possible. (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_H_ 5 #ifndef CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 6 #define CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
7 7
8 #include <jni.h> 8 #include <jni.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 void RenderViewHostChanged(content::RenderViewHost* old_host, 194 void RenderViewHostChanged(content::RenderViewHost* old_host,
195 content::RenderViewHost* new_host) override; 195 content::RenderViewHost* new_host) override;
196 void MainFrameWasResized(bool width_changed) override; 196 void MainFrameWasResized(bool width_changed) override;
197 void WebContentsDestroyed() override; 197 void WebContentsDestroyed() override;
198 198
199 // device::GvrDelegate implementation 199 // device::GvrDelegate implementation
200 void SetWebVRSecureOrigin(bool secure_origin) override; 200 void SetWebVRSecureOrigin(bool secure_origin) override;
201 void SubmitWebVRFrame(int16_t frame_index, 201 void SubmitWebVRFrame(int16_t frame_index,
202 const gpu::MailboxHolder& mailbox) override; 202 const gpu::MailboxHolder& mailbox) override;
203 void UpdateWebVRTextureBounds(int16_t frame_index, 203 void UpdateWebVRTextureBounds(int16_t frame_index,
204 const gvr::Rectf& left_bounds, 204 const gfx::RectF& left_bounds,
205 const gvr::Rectf& right_bounds, 205 const gfx::RectF& right_bounds,
206 const gvr::Sizei& source_size) override; 206 const gfx::Size& source_size) override;
207 void OnVRVsyncProviderRequest( 207 void OnVRVsyncProviderRequest(
208 device::mojom::VRVSyncProviderRequest request) override; 208 device::mojom::VRVSyncProviderRequest request) override;
209 void UpdateVSyncInterval(int64_t timebase_nanos, 209 void UpdateVSyncInterval(int64_t timebase_nanos,
210 double interval_seconds) override; 210 double interval_seconds) override;
211 void CreateVRDisplayInfo( 211 void CreateVRDisplayInfo(
212 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, 212 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
213 uint32_t device_id) override; 213 uint32_t device_id) override;
214 214
215 void ProcessTabArray(JNIEnv* env, jobjectArray tabs, bool incognito); 215 void ProcessTabArray(JNIEnv* env, jobjectArray tabs, bool incognito);
216 216
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 base::WeakPtrFactory<VrShell> weak_ptr_factory_; 256 base::WeakPtrFactory<VrShell> weak_ptr_factory_;
257 257
258 DISALLOW_COPY_AND_ASSIGN(VrShell); 258 DISALLOW_COPY_AND_ASSIGN(VrShell);
259 }; 259 };
260 260
261 bool RegisterVrShell(JNIEnv* env); 261 bool RegisterVrShell(JNIEnv* env);
262 262
263 } // namespace vr_shell 263 } // namespace vr_shell
264 264
265 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_ 265 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698