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

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: Updated 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
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/canvas/WebGLRenderingContextBase.cpp
diff --git a/Source/core/html/canvas/WebGLRenderingContextBase.cpp b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
index 17d2a38b73aa29b8db6b3aaf639a0360bd4c4091..b39bd861403e9c8eb86681d430d4704717223d58 100644
--- a/Source/core/html/canvas/WebGLRenderingContextBase.cpp
+++ b/Source/core/html/canvas/WebGLRenderingContextBase.cpp
@@ -4147,7 +4147,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()
@@ -4164,7 +4164,7 @@ void WebGLRenderingContextBase::forceRestoreContext()
}
if (!m_restoreTimer.isActive())
- m_restoreTimer.startOneShot(0);
+ m_restoreTimer.startOneShot(0, FROM_HERE);
}
blink::WebLayer* WebGLRenderingContextBase::platformLayer() const
@@ -5312,7 +5312,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>*)
@@ -5341,7 +5341,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");
« no previous file with comments | « Source/core/html/MediaController.cpp ('k') | Source/core/html/forms/SearchInputType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698