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

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

Issue 2727873002: Implement lazy initialization for VrShellDelegate (Closed)
Patch Set: Fix FindBugs errors - neat! Created 3 years, 9 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 void CreateContentSurface(); 75 void CreateContentSurface();
76 void ContentBoundsChanged(int width, int height); 76 void ContentBoundsChanged(int width, int height);
77 void ContentPhysicalBoundsChanged(int width, int height); 77 void ContentPhysicalBoundsChanged(int width, int height);
78 void UIBoundsChanged(int width, int height); 78 void UIBoundsChanged(int width, int height);
79 void UIPhysicalBoundsChanged(int width, int height); 79 void UIPhysicalBoundsChanged(int width, int height);
80 base::WeakPtr<VrShellGl> GetWeakPtr(); 80 base::WeakPtr<VrShellGl> GetWeakPtr();
81 81
82 void UpdateWebVRTextureBounds(int16_t frame_index, 82 void UpdateWebVRTextureBounds(int16_t frame_index,
83 const gvr::Rectf& left_bounds, 83 const gvr::Rectf& left_bounds,
84 const gvr::Rectf& right_bounds); 84 const gvr::Rectf& right_bounds);
85 void SetGvrPoseForWebVr(const gvr::Mat4f& pose, uint32_t pose_num);
86 gvr::Sizei GetWebVRCompositorSurfaceSize(); 85 gvr::Sizei GetWebVRCompositorSurfaceSize();
87 86
88 void UpdateScene(std::unique_ptr<base::ListValue> commands); 87 void UpdateScene(std::unique_ptr<base::ListValue> commands);
89 88
90 void UpdateVSyncInterval(int64_t timebase_nanos, double interval_seconds); 89 void UpdateVSyncInterval(int64_t timebase_nanos, double interval_seconds);
91 90
92 void OnRequest(device::mojom::VRVSyncProviderRequest request); 91 void OnRequest(device::mojom::VRVSyncProviderRequest request);
93 void ResetPose(); 92 void ResetPose();
94 void CreateVRDisplayInfo( 93 void CreateVRDisplayInfo(
95 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback, 94 const base::Callback<void(device::mojom::VRDisplayInfoPtr)>& callback,
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 uint16_t last_frame_index_ = -1; 205 uint16_t last_frame_index_ = -1;
207 206
208 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_; 207 base::WeakPtrFactory<VrShellGl> weak_ptr_factory_;
209 208
210 DISALLOW_COPY_AND_ASSIGN(VrShellGl); 209 DISALLOW_COPY_AND_ASSIGN(VrShellGl);
211 }; 210 };
212 211
213 } // namespace vr_shell 212 } // namespace vr_shell
214 213
215 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_ 214 #endif // CHROME_BROWSER_ANDROID_VR_SHELL_VR_SHELL_GL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698