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

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

Issue 2729523002: Re-land^2 WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Rebase to 11e28fd6b9380b77273db51ef0b6ccc7ea341944 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 3b5161db11a4a526b78401644b5201af9c311902..539c3cde4e6f6108edcbb3bab5847f1f96c68170 100644
--- a/chrome/browser/android/vr_shell/vr_shell_delegate.h
+++ b/chrome/browser/android/vr_shell/vr_shell_delegate.h
@@ -49,16 +49,17 @@ class VrShellDelegate : public device::GvrDelegateProvider {
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(const base::Callback<void(bool)>& callback) override;
+ void RequestWebVRPresent(device::mojom::VRSubmitFrameClientPtr submit_client,
+ const base::Callback<void(bool)>& callback) override;
void ExitWebVRPresent() override;
device::GvrDelegate* GetDelegate() override;
void SetListeningForActivate(bool listening) override;
@@ -72,10 +73,7 @@ class VrShellDelegate : public device::GvrDelegateProvider {
base::Callback<void(bool)> present_callback_;
int64_t timebase_nanos_ = 0;
double interval_seconds_ = 0;
-
- // TODO(mthiesse): Remove the need for this to be stored here.
- // crbug.com/674594
- gvr_context* context_ = nullptr;
+ device::mojom::VRSubmitFrameClientPtr submit_client_;
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