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 OffscreenCanvasFrameDispatcherImpl_h | 5 #ifndef OffscreenCanvasFrameDispatcherImpl_h |
6 #define OffscreenCanvasFrameDispatcherImpl_h | 6 #define OffscreenCanvasFrameDispatcherImpl_h |
7 | 7 |
8 #include "cc/surfaces/surface_id.h" | 8 #include "cc/surfaces/surface_id.h" |
9 #include "platform/graphics/OffscreenCanvasFrameDispatcher.h" | 9 #include "platform/graphics/OffscreenCanvasFrameDispatcher.h" |
10 #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom -blink.h" | 10 #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom -blink.h" |
11 #include <memory> | 11 #include <memory> |
12 | 12 |
13 namespace blink { | 13 namespace blink { |
14 | 14 |
15 class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final : public Offscree nCanvasFrameDispatcher { | 15 class PLATFORM_EXPORT OffscreenCanvasFrameDispatcherImpl final : public Offscree nCanvasFrameDispatcher { |
16 public: | 16 public: |
17 explicit OffscreenCanvasFrameDispatcherImpl(uint32_t clientId, uint32_t loca lId, uint64_t nonce, int width, int height); | 17 explicit OffscreenCanvasFrameDispatcherImpl(uint32_t clientId, uint32_t loca lId, uint64_t nonce, int width, int height); |
18 | 18 |
19 // OffscreenCanvasFrameDispatcher implementation. | 19 // OffscreenCanvasFrameDispatcher implementation. |
20 ~OffscreenCanvasFrameDispatcherImpl() override {} | 20 ~OffscreenCanvasFrameDispatcherImpl() override {} |
21 void dispatchFrame() override; | 21 void dispatchFrame(PassRefPtr<StaticBitmapImage>) override; |
danakj
2016/09/09 20:51:42
Are we still using PassRefPtr in new code or shoul
| |
22 | 22 |
23 private: | 23 private: |
24 const cc::SurfaceId m_surfaceId; | 24 const cc::SurfaceId m_surfaceId; |
25 const int m_width; | 25 const int m_width; |
26 const int m_height; | 26 const int m_height; |
27 mojom::blink::OffscreenCanvasFrameReceiverPtr m_service; | 27 mojom::blink::OffscreenCanvasFrameReceiverPtr m_service; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace blink | 30 } // namespace blink |
31 | 31 |
32 #endif // OffscreenCanvasFrameDispatcherImpl_h | 32 #endif // OffscreenCanvasFrameDispatcherImpl_h |
OLD | NEW |