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

Unified Diff: chrome/browser/android/vr_shell/vr_shell_gl.h

Issue 2658643003: Refactor GvrDelegate ownership into GvrDelegateProvider and fix more threading violations. (Closed)
Patch Set: Address comments Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/android/vr_shell/vr_shell_gl.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_gl.h b/chrome/browser/android/vr_shell/vr_shell_gl.h
index cc9a2e72701ef08e098427ec5dd8c6796be60ead..55236b7178ce8433803866d048f579700e2bf74f 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -80,7 +80,6 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
void UpdateWebVRTextureBounds(int16_t frame_index,
const gvr::Rectf& left_bounds,
const gvr::Rectf& right_bounds);
- gvr::GvrApi* gvr_api();
void SetGvrPoseForWebVr(const gvr::Mat4f& pose, uint32_t pose_num);
gvr::Sizei GetWebVRCompositorSurfaceSize();
@@ -89,6 +88,10 @@ class VrShellGl : public device::mojom::VRVSyncProvider {
void UpdateVSyncInterval(long timebase_nanos, double interval_seconds);
void OnRequest(device::mojom::VRVSyncProviderRequest request);
+ void ResetPose();
+ void CreateVRDisplayInfo(
+ const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
+ uint32_t device_id);
private:
void GvrInit(gvr_context* gvr_api);
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_delegate.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