Chromium Code Reviews| 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 "wtf/RefPtr.h" | 9 #include "wtf/RefPtr.h" |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class StaticBitmapImage; | 13 class StaticBitmapImage; |
| 14 class WebLayer; | 14 class WebLayer; |
| 15 | 15 |
| 16 class PLATFORM_EXPORT OffscreenCanvasFrameDispatcher { | 16 class PLATFORM_EXPORT OffscreenCanvasFrameDispatcher { |
| 17 public: | 17 public: |
| 18 virtual ~OffscreenCanvasFrameDispatcher() {}; | 18 virtual ~OffscreenCanvasFrameDispatcher() {}; |
| 19 virtual void dispatchFrame(RefPtr<StaticBitmapImage>) = 0; | 19 virtual void dispatchFrame(RefPtr<StaticBitmapImage>, bool isAccelerated) = 0; |
|
Justin Novosad
2016/09/22 18:06:19
You should not need the isAccelerated argument. T
| |
| 20 }; | 20 }; |
| 21 | 21 |
| 22 } // namespace blink | 22 } // namespace blink |
| 23 | 23 |
| 24 #endif // OffscreenCanvasFrameDispatcher_h | 24 #endif // OffscreenCanvasFrameDispatcher_h |
| OLD | NEW |