| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 OffscreenCanvasFrameDispatcher_h | 5 #ifndef OffscreenCanvasFrameDispatcher_h |
| 6 #define OffscreenCanvasFrameDispatcher_h | 6 #define OffscreenCanvasFrameDispatcher_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/WebTaskRunner.h" | 9 #include "platform/WebTaskRunner.h" |
| 10 #include "wtf/RefPtr.h" | 10 #include "platform/wtf/RefPtr.h" |
| 11 #include "wtf/WeakPtr.h" | 11 #include "platform/wtf/WeakPtr.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class StaticBitmapImage; | 15 class StaticBitmapImage; |
| 16 | 16 |
| 17 class OffscreenCanvasFrameDispatcherClient { | 17 class OffscreenCanvasFrameDispatcherClient { |
| 18 public: | 18 public: |
| 19 virtual void beginFrame() = 0; | 19 virtual void beginFrame() = 0; |
| 20 }; | 20 }; |
| 21 | 21 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 41 : m_weakPtrFactory(this), m_client(client) {} | 41 : m_weakPtrFactory(this), m_client(client) {} |
| 42 | 42 |
| 43 private: | 43 private: |
| 44 WeakPtrFactory<OffscreenCanvasFrameDispatcher> m_weakPtrFactory; | 44 WeakPtrFactory<OffscreenCanvasFrameDispatcher> m_weakPtrFactory; |
| 45 OffscreenCanvasFrameDispatcherClient* m_client; | 45 OffscreenCanvasFrameDispatcherClient* m_client; |
| 46 }; | 46 }; |
| 47 | 47 |
| 48 } // namespace blink | 48 } // namespace blink |
| 49 | 49 |
| 50 #endif // OffscreenCanvasFrameDispatcher_h | 50 #endif // OffscreenCanvasFrameDispatcher_h |
| OLD | NEW |