Chromium Code Reviews| Index: device/vr/vr_service.mojom |
| diff --git a/device/vr/vr_service.mojom b/device/vr/vr_service.mojom |
| index 19717b8c5cffa81b52babb983ae5ed7b2221627c..b8c8fa238f3d0293cc1b694af82c34ee4391b98b 100644 |
| --- a/device/vr/vr_service.mojom |
| +++ b/device/vr/vr_service.mojom |
| @@ -97,10 +97,16 @@ interface VRDisplay { |
| }; |
| interface VRVSyncProvider { |
| + enum Error { |
| + ERROR_NONE, |
|
dcheng
2017/02/23 19:36:58
Nit: Error => Status { SUCCESS, TRY_AGAIN };
?
mthiesse
2017/02/23 20:39:58
Fun fact, I can't use TRY_AGAIN as an enum value,
|
| + ERROR_TRY_AGAIN, |
| + ERROR_BAD_REQUEST, |
|
dcheng
2017/02/23 19:36:58
I would just omit BAD_REQUEST from the enum comple
mthiesse
2017/02/23 19:41:35
How would you recommend we handle the bad request
dcheng
2017/02/23 19:45:27
We shouldn't have to invoke the callback on a bad
mthiesse
2017/02/23 20:39:58
Acknowledged.
|
| + }; |
| + |
| // The frameId maps a VSync to a frame arriving from the compositor. IDs will |
| // be reused after the frame arrives from the compositor. Negative IDs imply |
| // no mapping. |
| - GetVSync() => (VRPose? pose, mojo.common.mojom.TimeDelta time, int16 frameId); |
| + GetVSync() => (VRPose? pose, mojo.common.mojom.TimeDelta time, int16 frameId, Error error); |
|
dcheng
2017/02/23 19:36:58
Nit: 80 chars
mthiesse
2017/02/23 20:39:58
Done.
|
| }; |
| interface VRDisplayClient { |