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 CanvasSurfaceLayerBridgeClientImpl_h | 5 #ifndef CanvasSurfaceLayerBridgeClientImpl_h |
6 #define CanvasSurfaceLayerBridgeClientImpl_h | 6 #define CanvasSurfaceLayerBridgeClientImpl_h |
7 | 7 |
8 #include "platform/graphics/CanvasSurfaceLayerBridgeClient.h" | 8 #include "platform/graphics/CanvasSurfaceLayerBridgeClient.h" |
9 #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
-blink.h" | 9 #include "public/platform/modules/offscreencanvas/offscreen_canvas_surface.mojom
-blink.h" |
10 #include "wtf/RefPtr.h" | 10 #include "wtf/RefPtr.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class PLATFORM_EXPORT CanvasSurfaceLayerBridgeClientImpl final : public CanvasSu
rfaceLayerBridgeClient { | 14 class PLATFORM_EXPORT CanvasSurfaceLayerBridgeClientImpl final : public CanvasSu
rfaceLayerBridgeClient { |
15 public: | 15 public: |
16 explicit CanvasSurfaceLayerBridgeClientImpl(); | 16 explicit CanvasSurfaceLayerBridgeClientImpl(); |
17 ~CanvasSurfaceLayerBridgeClientImpl() override; | 17 ~CanvasSurfaceLayerBridgeClientImpl() override; |
18 | 18 |
19 bool syncGetSurfaceId(cc::SurfaceId*) override; | 19 bool syncGetSurfaceId(cc::SurfaceId*) override; |
20 void asyncRequestSurfaceCreation(const cc::SurfaceId&) override; | |
21 void asyncRequire(const cc::SurfaceId&, const cc::SurfaceSequence&) override
; | 20 void asyncRequire(const cc::SurfaceId&, const cc::SurfaceSequence&) override
; |
22 void asyncSatisfy(const cc::SurfaceSequence&) override; | 21 void asyncSatisfy(const cc::SurfaceSequence&) override; |
23 | 22 |
24 private: | 23 private: |
25 mojom::blink::OffscreenCanvasSurfacePtr m_service; | 24 mojom::blink::OffscreenCanvasSurfacePtr m_service; |
26 }; | 25 }; |
27 | 26 |
28 } // namespace blink | 27 } // namespace blink |
29 | 28 |
30 #endif // CanvasSurfaceLayerBridgeClientImpl_h | 29 #endif // CanvasSurfaceLayerBridgeClientImpl_h |
OLD | NEW |