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

Unified Diff: third_party/WebKit/Source/modules/vr/VRDisplay.h

Issue 2711173002: Prevent browser crash resulting from misbehaving WebVR renderer requesting multiple VSyncs. (Closed)
Patch Set: rebase 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: third_party/WebKit/Source/modules/vr/VRDisplay.h
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.h b/third_party/WebKit/Source/modules/vr/VRDisplay.h
index 5e29e95c13de602b18e4fb0580a9a752d0e29c77..af955c5091b8593e17a0810ed81e71b42581ee3a 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.h
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.h
@@ -136,7 +136,8 @@ class VRDisplay final : public EventTargetWithInlineData,
void OnVSync(device::mojom::blink::VRPosePtr,
mojo::common::mojom::blink::TimeDeltaPtr,
- int16_t frameId);
+ int16_t frameId,
+ device::mojom::blink::VRVSyncProvider::Status);
void ConnectVSyncProvider();
ScriptedAnimationController& ensureScriptedAnimationController(Document*);
@@ -171,6 +172,7 @@ class VRDisplay final : public EventTargetWithInlineData,
Member<ScriptedAnimationController> m_scriptedAnimationController;
bool m_pendingRaf = false;
+ bool m_pendingVsync = false;
bool m_inAnimationFrame = false;
bool m_displayBlurred = false;
bool m_reenteredFullscreen = false;
« no previous file with comments | « third_party/WebKit/LayoutTests/vr/resources/mock-vr-service.js ('k') | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698