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

Unified Diff: third_party/WebKit/Source/core/layout/ImageQualityController.h

Issue 2191533003: Refactor Timer classes in preparation for landing FrameTimers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More build fixes Created 4 years, 5 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/core/layout/ImageQualityController.h
diff --git a/third_party/WebKit/Source/core/layout/ImageQualityController.h b/third_party/WebKit/Source/core/layout/ImageQualityController.h
index d6636b7d3f9ae9a5600c2aa8e5d317de5e6865a8..bef00355b81d4235faa7a3d158cfebb60997e400 100644
--- a/third_party/WebKit/Source/core/layout/ImageQualityController.h
+++ b/third_party/WebKit/Source/core/layout/ImageQualityController.h
@@ -77,14 +77,14 @@ private:
void objectDestroyed(const LayoutObject&);
bool isEmpty() { return m_objectLayerSizeMap.isEmpty(); }
- void highQualityRepaintTimerFired(Timer<ImageQualityController>*);
+ void highQualityRepaintTimerFired(TimerBase*);
void restartTimer(double lastFrameTimeMonotonic);
// Only for use in testing.
- void setTimer(Timer<ImageQualityController>*);
+ void setTimer(std::unique_ptr<TimerBase>);
ObjectLayerSizeMap m_objectLayerSizeMap;
- std::unique_ptr<Timer<ImageQualityController>> m_timer;
+ std::unique_ptr<TimerBase> m_timer;
double m_frameTimeWhenTimerStarted;
// For calling set().

Powered by Google App Engine
This is Rietveld 408576698