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

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

Issue 2742083002: Revert of Re-land WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: 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 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 539c3cde4e6f6108edcbb3bab5847f1f96c68170..3b5161db11a4a526b78401644b5201af9c311902 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.h
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.h
@@ -49,17 +49,16 @@
void Destroy(JNIEnv* env, const base::android::JavaParamRef<jobject>& obj);
void ShowTab(int id);
void OpenNewTab(bool incognito);
- device::mojom::VRSubmitFrameClientPtr TakeSubmitFrameClient();
device::GvrDeviceProvider* device_provider() { return device_provider_; }
+ void OnVRVsyncProviderRequest(device::mojom::VRVSyncProviderRequest request);
base::WeakPtr<VrShellDelegate> GetWeakPtr();
private:
// device::GvrDelegateProvider implementation
void SetDeviceProvider(device::GvrDeviceProvider* device_provider) override;
void ClearDeviceProvider() override;
- void RequestWebVRPresent(device::mojom::VRSubmitFrameClientPtr submit_client,
- const base::Callback<void(bool)>& callback) override;
+ void RequestWebVRPresent(const base::Callback<void(bool)>& callback) override;
void ExitWebVRPresent() override;
device::GvrDelegate* GetDelegate() override;
void SetListeningForActivate(bool listening) override;
@@ -73,7 +72,10 @@
base::Callback<void(bool)> present_callback_;
int64_t timebase_nanos_ = 0;
double interval_seconds_ = 0;
- device::mojom::VRSubmitFrameClientPtr submit_client_;
+
+ // TODO(mthiesse): Remove the need for this to be stored here.
+ // crbug.com/674594
+ gvr_context* context_ = nullptr;
base::WeakPtrFactory<VrShellDelegate> weak_ptr_factory_;
« 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