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

Unified Diff: device/vr/vr_device.h

Issue 2738683002: WebVR compositor bypass via BrowserMain context + mailbox (Closed)
Patch Set: Less hacked up version 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/test/fake_vr_device.cc ('k') | device/vr/vr_display_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_device.h
diff --git a/device/vr/vr_device.h b/device/vr/vr_device.h
index be836ee12016272cdbcb11abc704cd63380d2396..32eca92dad071e172acc1364d8d24262594dbbb2 100644
--- a/device/vr/vr_device.h
+++ b/device/vr/vr_device.h
@@ -30,10 +30,14 @@ 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::MailboxHolder& mailbox,
+ 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);
« no previous file with comments | « device/vr/test/fake_vr_device.cc ('k') | device/vr/vr_display_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698