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

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: cleanup 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 bf285671ccc5354b13fb01dcf2f410ca000b1aa2..076ebc0af60a261cb96593c70a257410c592b2db 100644
--- a/chrome/browser/android/vr_shell/vr_shell_gl.h
+++ b/chrome/browser/android/vr_shell/vr_shell_gl.h
@@ -83,7 +83,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();
@@ -92,6 +91,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);

Powered by Google App Engine
This is Rietveld 408576698