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

Unified Diff: device/vr/vr_service.mojom

Issue 2711173002: Prevent browser crash resulting from misbehaving WebVR renderer requesting multiple VSyncs. (Closed)
Patch Set: Address comment Created 3 years, 10 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 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 {
« no previous file with comments | « chrome/browser/android/vr_shell/vr_shell_gl.cc ('k') | third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698