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

Unified Diff: device/vr/vr_service.mojom

Issue 2309523003: Plumbing through more WebVR presentation code (Closed)
Patch Set: Addressed Michael's feedack Created 4 years, 3 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_device.h ('k') | device/vr/vr_service_impl.h » ('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 253513d50c1802636c6416f244d354a9fe48b5fd..58458d5a6dac7fd993ef62c764667e7f67abebda 100644
--- a/device/vr/vr_service.mojom
+++ b/device/vr/vr_service.mojom
@@ -54,6 +54,13 @@ struct VRDisplay {
VREyeParameters rightEye;
};
+struct VRLayerBounds {
+ float left;
+ float top;
+ float width;
+ float height;
+};
+
interface VRService {
SetClient(VRServiceClient client);
@@ -61,6 +68,11 @@ interface VRService {
[Sync]
GetPose(uint32 index) => (VRPose pose);
ResetPose(uint32 index);
+
+ RequestPresent(uint32 index);
+ ExitPresent(uint32 index);
+ SubmitFrame(uint32 index);
+ UpdateLayerBounds(uint32 index, VRLayerBounds leftBounds, VRLayerBounds rightBounds);
};
interface VRServiceClient {
« no previous file with comments | « device/vr/vr_device.h ('k') | device/vr/vr_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698