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

Unified Diff: third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h

Issue 2668573002: Migrate WebGL timers to TaskRunnerTimer (Closed)
Patch Set: add comment 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/webgl/WebGLRenderingContextBase.h
diff --git a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
index bb7392ec15658fc1e330f6ad7c87f972877e60fb..f0405f48c85c0427a0ca208eb8a251fd3d4f5cad 100644
--- a/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
+++ b/third_party/WebKit/Source/modules/webgl/WebGLRenderingContextBase.h
@@ -691,9 +691,9 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
// real ones, it's likely that there's no JavaScript on the stack, but that
// might be dependent on how exactly the platform discovers that the context
// was lost. For better portability we always defer the dispatch of the event.
- Timer<WebGLRenderingContextBase> m_dispatchContextLostEventTimer;
+ TaskRunnerTimer<WebGLRenderingContextBase> m_dispatchContextLostEventTimer;
bool m_restoreAllowed;
- Timer<WebGLRenderingContextBase> m_restoreTimer;
+ TaskRunnerTimer<WebGLRenderingContextBase> m_restoreTimer;
bool m_markedCanvasDirty;
@@ -1636,6 +1636,7 @@ class MODULES_EXPORT WebGLRenderingContextBase : public CanvasRenderingContext,
private:
WebGLRenderingContextBase(HTMLCanvasElement*,
OffscreenCanvas*,
+ RefPtr<WebTaskRunner>,
std::unique_ptr<WebGraphicsContext3DProvider>,
const CanvasContextCreationAttributes&,
unsigned);

Powered by Google App Engine
This is Rietveld 408576698