Index: device/vr/vr_device.h |
diff --git a/device/vr/vr_device.h b/device/vr/vr_device.h |
index be836ee12016272cdbcb11abc704cd63380d2396..88b8678172b832bf9b564e51f17e7cfac173469e 100644 |
--- a/device/vr/vr_device.h |
+++ b/device/vr/vr_device.h |
@@ -10,6 +10,11 @@ |
#include "device/vr/vr_export.h" |
#include "device/vr/vr_service.mojom.h" |
+namespace gpu { |
+class Mailbox; |
+class SyncToken; |
+} |
+ |
namespace device { |
class VRDisplayImpl; |
@@ -30,10 +35,15 @@ class DEVICE_VR_EXPORT VRDevice { |
virtual void RequestPresent(const base::Callback<void(bool)>& callback) = 0; |
virtual void SetSecureOrigin(bool secure_origin) = 0; |
virtual void ExitPresent() = 0; |
- virtual void SubmitFrame(mojom::VRPosePtr pose) = 0; |
+ virtual void SubmitFrame(int16_t frame_index, |
+ const gpu::Mailbox& mailbox, |
+ const gpu::SyncToken& sync_token, |
+ mojom::VRSubmitFrameClientPtr submit_client) = 0; |
virtual void UpdateLayerBounds(int16_t frame_index, |
mojom::VRLayerBoundsPtr left_bounds, |
- mojom::VRLayerBoundsPtr right_bounds) = 0; |
+ mojom::VRLayerBoundsPtr right_bounds, |
+ int16_t source_width, |
+ int16_t source_height) = 0; |
virtual void GetVRVSyncProvider(mojom::VRVSyncProviderRequest request) = 0; |
virtual void AddDisplay(VRDisplayImpl* display); |