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

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

Issue 2622943002: Fix WebVR requestAnimationFrame leaking (Closed)
Patch Set: Properly fix leak 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: third_party/WebKit/Source/modules/vr/VRDisplay.cpp
diff --git a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
index b2d9678e3df6bc57f8254ec94587ab0119655b2b..5193460cff93d4206d279d51d842e7346d2e8c8f 100644
--- a/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
+++ b/third_party/WebKit/Source/modules/vr/VRDisplay.cpp
@@ -752,6 +752,7 @@ const AtomicString& VRDisplay::interfaceName() const {
void VRDisplay::contextDestroyed() {
mthiesse 2017/01/13 00:34:19 Why ::contextDestroyed() rather than ::dispose()?
forceExitPresent();
+ m_scriptedAnimationController.clear();
}
bool VRDisplay::hasPendingActivity() const {

Powered by Google App Engine
This is Rietveld 408576698