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

Unified Diff: device/vr/vr_service.mojom

Issue 2612333002: Allow VRDisplay to specify which frame the layer bounds should be updated at. (Closed)
Patch Set: Created 3 years, 11 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
Index: device/vr/vr_service.mojom
diff --git a/device/vr/vr_service.mojom b/device/vr/vr_service.mojom
index d41b1a9ed09da0fe5157c51d9de5af058d4e1a0d..1cc159e1d955f58e615e8eeca010fa0fb62fa6a4 100644
--- a/device/vr/vr_service.mojom
+++ b/device/vr/vr_service.mojom
@@ -1,5 +1,6 @@
// Copyright 2015 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
module device.mojom;
@@ -21,8 +22,8 @@ struct VRPose {
array<float, 3>? linearVelocity;
array<float, 3>? angularAcceleration;
array<float, 3>? linearAcceleration;
- // The poseIndex is a sequential ID that's incremented on each distinct
- // getPose result, it may wrap around for long sessions.
+ // The poseIndex is a nonzero sequential ID that's incremented on each
+ // distinct getPose result, it may wrap around for long sessions.
uint32 poseIndex;
};
@@ -70,17 +71,19 @@ enum VRDisplayEventReason {
UNMOUNTED = 3
};
-// TODO(shaobo.yan@intel.com) : Add comments to describe these interfaces about how to use and where they live.
+// TODO(shaobo.yan@intel.com) : Add comments to describe these interfaces about
+// how to use and where they live.
interface VRService {
- // TODO(shaobo.yan@intel.com) : Use a factory function which took a VRServiceClient
- // so we would never have a half-initialized VRService.
+ // TODO(shaobo.yan@intel.com) : Use a factory function which took a
+ // VRServiceClient so we would never have a half-initialized VRService.
SetClient(VRServiceClient client) => (uint32 numberOfConnectedDevices);
// Inform the service that the page is listening for vrdisplayactivate events.
SetListeningForActivate(bool listening);
};
interface VRServiceClient {
- OnDisplayConnected(VRDisplay display, VRDisplayClient& request, VRDisplayInfo displayInfo);
+ OnDisplayConnected(VRDisplay display, VRDisplayClient& request,
+ VRDisplayInfo displayInfo);
};
interface VRDisplay {
@@ -91,7 +94,8 @@ interface VRDisplay {
RequestPresent(bool secureOrigin) => (bool success);
ExitPresent();
SubmitFrame(VRPose? pose);
- UpdateLayerBounds(VRLayerBounds leftBounds, VRLayerBounds rightBounds);
+ UpdateLayerBounds(uint32 frameIndex, VRLayerBounds leftBounds,
+ VRLayerBounds rightBounds);
};
interface VRDisplayClient {

Powered by Google App Engine
This is Rietveld 408576698