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

Unified Diff: device/vr/vr_service.mojom

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/vr_display_impl.cc ('k') | gpu/ipc/common/mailbox_holder.typemap » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/vr/vr_service.mojom
diff --git a/device/vr/vr_service.mojom b/device/vr/vr_service.mojom
index 2af38f579633e856444ee7611122b8e7cb1118eb..07e657f05d3c8b4d31898d387bd69c724bbe8419 100644
--- a/device/vr/vr_service.mojom
+++ b/device/vr/vr_service.mojom
@@ -5,6 +5,8 @@
module device.mojom;
import "mojo/common/time.mojom";
+import "gpu/ipc/common/mailbox_holder.mojom";
+import "gpu/ipc/common/sync_token.mojom";
// A field of view, given by 4 degrees describing the view from a center point.
struct VRFieldOfView {
@@ -85,14 +87,21 @@ interface VRServiceClient {
VRDisplayInfo displayInfo);
};
+interface VRSubmitFrameClient {
+ OnSubmitFrameTransferred();
+ OnSubmitFrameRendered();
+};
+
interface VRDisplay {
ResetPose();
RequestPresent(bool secureOrigin) => (bool success);
ExitPresent();
- SubmitFrame(VRPose? pose);
+ SubmitFrame(int16 frameId, gpu.mojom.MailboxHolder mailboxHolder,
+ VRSubmitFrameClient client);
UpdateLayerBounds(int16 frameId, VRLayerBounds leftBounds,
- VRLayerBounds rightBounds);
+ VRLayerBounds rightBounds, int16 sourceWidth,
+ int16 sourceHeight);
GetVRVSyncProvider(VRVSyncProvider& request);
};
« no previous file with comments | « device/vr/vr_display_impl.cc ('k') | gpu/ipc/common/mailbox_holder.typemap » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698