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 CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ |
6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include "cc/surfaces/surface_factory.h" | 8 #include "cc/surfaces/surface_factory.h" |
9 #include "cc/surfaces/surface_factory_client.h" | 9 #include "cc/surfaces/surface_factory_client.h" |
10 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c
anvas_surface.mojom.h" | 10 #include "third_party/WebKit/public/platform/modules/offscreencanvas/offscreen_c
anvas_surface.mojom.h" |
(...skipping 14 matching lines...) Expand all Loading... |
25 cc::mojom::MojoCompositorFrameSinkRequest request); | 25 cc::mojom::MojoCompositorFrameSinkRequest request); |
26 | 26 |
27 // cc::mojom::MojoCompositorFrameSink implementation. | 27 // cc::mojom::MojoCompositorFrameSink implementation. |
28 void SubmitCompositorFrame( | 28 void SubmitCompositorFrame( |
29 cc::CompositorFrame frame, | 29 cc::CompositorFrame frame, |
30 const SubmitCompositorFrameCallback& callback) override; | 30 const SubmitCompositorFrameCallback& callback) override; |
31 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 31 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
32 | 32 |
33 // cc::SurfaceFactoryClient implementation. | 33 // cc::SurfaceFactoryClient implementation. |
34 void ReturnResources(const cc::ReturnedResourceArray& resources) override; | 34 void ReturnResources(const cc::ReturnedResourceArray& resources) override; |
35 void WillDrawSurface(const cc::SurfaceId& id, | 35 void WillDrawSurface(const cc::LocalFrameId& id, |
36 const gfx::Rect& damage_rect) override; | 36 const gfx::Rect& damage_rect) override; |
37 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; | 37 void SetBeginFrameSource(cc::BeginFrameSource* begin_frame_source) override; |
38 | 38 |
39 private: | 39 private: |
40 cc::SurfaceId surface_id_; | 40 cc::SurfaceId surface_id_; |
41 std::unique_ptr<cc::SurfaceFactory> surface_factory_; | 41 std::unique_ptr<cc::SurfaceFactory> surface_factory_; |
42 cc::mojom::MojoCompositorFrameSinkClientPtr client_; | 42 cc::mojom::MojoCompositorFrameSinkClientPtr client_; |
43 | 43 |
44 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink); | 44 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSink); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace content | 47 } // namespace content |
48 | 48 |
49 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_
H_ | 49 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_
H_ |
OLD | NEW |