OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TimedCanvasDrawListener_h | 5 #ifndef TimedCanvasDrawListener_h |
6 #define TimedCanvasDrawListener_h | 6 #define TimedCanvasDrawListener_h |
7 | 7 |
| 8 #include <memory> |
8 #include "core/html/canvas/CanvasDrawListener.h" | 9 #include "core/html/canvas/CanvasDrawListener.h" |
9 #include "platform/Timer.h" | 10 #include "platform/Timer.h" |
10 #include "platform/heap/Handle.h" | 11 #include "platform/heap/Handle.h" |
11 #include "public/platform/WebCanvasCaptureHandler.h" | 12 #include "public/platform/WebCanvasCaptureHandler.h" |
12 #include "third_party/skia/include/core/SkRefCnt.h" | 13 #include "third_party/skia/include/core/SkRefCnt.h" |
13 #include <memory> | |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class TimedCanvasDrawListener final | 17 class TimedCanvasDrawListener final |
18 : public GarbageCollectedFinalized<TimedCanvasDrawListener>, | 18 : public GarbageCollectedFinalized<TimedCanvasDrawListener>, |
19 public CanvasDrawListener { | 19 public CanvasDrawListener { |
20 USING_GARBAGE_COLLECTED_MIXIN(TimedCanvasDrawListener); | 20 USING_GARBAGE_COLLECTED_MIXIN(TimedCanvasDrawListener); |
21 | 21 |
22 public: | 22 public: |
23 ~TimedCanvasDrawListener(); | 23 ~TimedCanvasDrawListener(); |
(...skipping 10 matching lines...) Expand all Loading... |
34 // Implementation of TimerFiredFunction. | 34 // Implementation of TimerFiredFunction. |
35 void requestFrameTimerFired(TimerBase*); | 35 void requestFrameTimerFired(TimerBase*); |
36 | 36 |
37 double m_frameInterval; | 37 double m_frameInterval; |
38 UnthrottledThreadTimer<TimedCanvasDrawListener> m_requestFrameTimer; | 38 UnthrottledThreadTimer<TimedCanvasDrawListener> m_requestFrameTimer; |
39 }; | 39 }; |
40 | 40 |
41 } // namespace blink | 41 } // namespace blink |
42 | 42 |
43 #endif | 43 #endif |
OLD | NEW |