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

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

Issue 2562733002: Implement our own GLThread for VR Shell. (Closed)
Patch Set: sigh Created 4 years 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
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/vr_shell/vr_shell_delegate.h
diff --git a/chrome/browser/android/vr_shell/vr_shell_delegate.h b/chrome/browser/android/vr_shell/vr_shell_delegate.h
index 0d3cbf47ade3cb6ac31852690f2d3c22c21c7acd..97bf2bb8ea5456ffc91961836b825330d798458b 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.h
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.h
@@ -24,7 +24,8 @@ class VrShellDelegate : public device::GvrDelegateProvider {
static VrShellDelegate* GetNativeDelegate(JNIEnv* env, jobject jdelegate);
- base::WeakPtr<device::GvrDeviceProvider> GetDeviceProvider();
+ void SetDelegate(const base::WeakPtr<device::GvrDelegate>& delegate);
+ void RemoveDelegate();
void SetPresentResult(JNIEnv* env, jobject obj, jboolean result);
void DisplayActivate(JNIEnv* env, jobject obj);
@@ -44,6 +45,7 @@ class VrShellDelegate : public device::GvrDelegateProvider {
std::unique_ptr<device::GvrDelegate> non_presenting_delegate_;
base::android::ScopedJavaGlobalRef<jobject> j_vr_shell_delegate_;
base::WeakPtr<device::GvrDeviceProvider> device_provider_;
+ base::WeakPtr<device::GvrDelegate> delegate_;
base::Callback<void(bool)> present_callback_;
DISALLOW_COPY_AND_ASSIGN(VrShellDelegate);
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell.cc ('k') | chrome/browser/android/vr_shell/vr_shell_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698