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

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

Issue 2812253004: WebVR: handle window.rAF while presenting (Closed)
Patch Set: WebVR: fix initial vsync and focus while presenting Created 3 years, 8 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 | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 16dead3e91412fcc91c619032c2c18ad0ba7448c..323a19d8d45901fc4dc49baf5e8a7dbb99bb792c 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.h
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.h
@@ -140,6 +140,7 @@ class VRDisplay final : public EventTargetWithInlineData,
void ConnectVSyncProvider();
void OnVSyncConnectionError();
+ bool IsPresentationFocused();
ScriptedAnimationController& EnsureScriptedAnimationController(Document*);
void ProcessScheduledAnimations(double timestamp);
void ProcessScheduledWindowAnimations(double timestamp);
@@ -179,7 +180,7 @@ class VRDisplay final : public EventTargetWithInlineData,
RefPtr<Image> previous_image_;
Member<ScriptedAnimationController> scripted_animation_controller_;
- bool pending_raf_ = false;
+ bool pending_vrdisplay_raf_ = false;
bool pending_vsync_ = false;
bool in_animation_frame_ = false;
bool in_display_activate_ = false;
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/vr/VRDisplay.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698