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

Unified Diff: device/vr/android/gvr/gvr_device_provider.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 | « device/vr/android/gvr/gvr_device.cc ('k') | device/vr/android/gvr/gvr_device_provider.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/android/gvr/gvr_device_provider.h
diff --git a/device/vr/android/gvr/gvr_device_provider.h b/device/vr/android/gvr/gvr_device_provider.h
index 5793021566859838b80056bb5871fdc0cc82756f..d215e603b89730283de7f327e089ddcef9d5996d 100644
--- a/device/vr/android/gvr/gvr_device_provider.h
+++ b/device/vr/android/gvr/gvr_device_provider.h
@@ -11,9 +11,11 @@
#include "base/macros.h"
#include "device/vr/vr_device_provider.h"
#include "device/vr/vr_export.h"
+#include "device/vr/vr_service.mojom.h"
namespace device {
+class GvrDelegateProvider;
class GvrDevice;
class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider {
@@ -27,14 +29,17 @@ class DEVICE_VR_EXPORT GvrDeviceProvider : public VRDeviceProvider {
void SetListeningForActivate(bool listening) override;
// Called from GvrDevice.
- void RequestPresent(const base::Callback<void(bool)>& callback);
+ void RequestPresent(mojom::VRSubmitFrameClientPtr submit_client,
+ const base::Callback<void(bool)>& callback);
void ExitPresent();
+ device::GvrDelegateProvider* GetDelegateProvider();
+
GvrDevice* Device() { return vr_device_.get(); }
private:
+ void Initialize(device::GvrDelegateProvider* provider);
std::unique_ptr<GvrDevice> vr_device_;
- bool initialized_ = false;
DISALLOW_COPY_AND_ASSIGN(GvrDeviceProvider);
};
« no previous file with comments | « device/vr/android/gvr/gvr_device.cc ('k') | device/vr/android/gvr/gvr_device_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698