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

Unified Diff: third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h

Issue 1746443002: Use Timer in TimedCanvasDrawListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/mediacapturefromelement/TimedCanvasDrawListener.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h
diff --git a/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h b/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h
index 9d9062b82522f3d5c2943a008be00b5f44e0c93c..71fe53477b34772e60c678f95bf93603d4e99be6 100644
--- a/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h
+++ b/third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.h
@@ -6,6 +6,7 @@
#define TimedCanvasDrawListener_h
#include "core/html/canvas/CanvasDrawListener.h"
+#include "platform/Timer.h"
#include "platform/heap/Handle.h"
#include "public/platform/WebCanvasCaptureHandler.h"
@@ -21,9 +22,11 @@ public:
DEFINE_INLINE_TRACE() {}
private:
TimedCanvasDrawListener(const PassOwnPtr<WebCanvasCaptureHandler>&, double frameRate);
- void postRequestFrameCaptureTask();
+ // Implementation of TimerFiredFunction.
+ void requestFrameTimerFired(Timer<TimedCanvasDrawListener>*);
double m_frameInterval;
+ UnthrottledTimer<TimedCanvasDrawListener> m_requestFrameTimer;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/mediacapturefromelement/TimedCanvasDrawListener.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698