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

Unified Diff: Source/core/html/canvas/WebGLRenderingContextBase.cpp

Issue 189833009: Trace where timers were scheduled in Blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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: Source/core/html/canvas/WebGLRenderingContextBase.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
index 41dbd23d306f571c20f7bf5f30639e0323032d70..e15cb46dd1f238c1c6a85e0123e9d61cd4ba4b3c 100644
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
@@ -4144,7 +4144,7 @@ void WebGLRenderingContextBase::loseContextImpl(WebGLRenderingContextBase::LostC
// Always defer the dispatch of the context lost event, to implement
// the spec behavior of queueing a task.
- m_dispatchContextLostEventTimer.startOneShot(0);
+ m_dispatchContextLostEventTimer.startOneShot(0, FROM_HERE);
}
void WebGLRenderingContextBase::forceRestoreContext()
@@ -4161,7 +4161,7 @@ void WebGLRenderingContextBase::forceRestoreContext()
}
if (!m_restoreTimer.isActive())
- m_restoreTimer.startOneShot(0);
+ m_restoreTimer.startOneShot(0, FROM_HERE);
}
blink::WebLayer* WebGLRenderingContextBase::platformLayer() const
@@ -5309,7 +5309,7 @@ void WebGLRenderingContextBase::dispatchContextLostEvent(Timer<WebGLRenderingCon
m_restoreAllowed = event->defaultPrevented();
deactivateContext(this, m_contextLostMode != RealLostContext && m_restoreAllowed);
if ((m_contextLostMode == RealLostContext || m_contextLostMode == AutoRecoverSyntheticLostContext) && m_restoreAllowed)
- m_restoreTimer.startOneShot(0);
+ m_restoreTimer.startOneShot(0, FROM_HERE);
}
void WebGLRenderingContextBase::maybeRestoreContext(Timer<WebGLRenderingContextBase>*)
@@ -5338,7 +5338,7 @@ void WebGLRenderingContextBase::maybeRestoreContext(Timer<WebGLRenderingContextB
OwnPtr<blink::WebGraphicsContext3D> context = adoptPtr(blink::Platform::current()->createOffscreenGraphicsContext3D(attributes));
if (!context) {
if (m_contextLostMode == RealLostContext) {
- m_restoreTimer.startOneShot(secondsBetweenRestoreAttempts);
+ m_restoreTimer.startOneShot(secondsBetweenRestoreAttempts, FROM_HERE);
} else {
// This likely shouldn't happen but is the best way to report it to the WebGL app.
synthesizeGLError(GL_INVALID_OPERATION, "", "error restoring context");

Powered by Google App Engine
This is Rietveld 408576698