| 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_PRO
VIDER_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_PRO
VIDER_IMPL_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_PRO
VIDER_IMPL_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_PRO
VIDER_IMPL_H_ |
| 7 | 7 |
| 8 #include <unordered_map> | 8 #include <unordered_map> |
| 9 | 9 |
| 10 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h
" | 10 #include "content/browser/renderer_host/offscreen_canvas_compositor_frame_sink.h
" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // blink::mojom::OffscreenCanvasCompositorFrameSinkProvider implementation. | 26 // blink::mojom::OffscreenCanvasCompositorFrameSinkProvider implementation. |
| 27 void CreateCompositorFrameSink( | 27 void CreateCompositorFrameSink( |
| 28 const cc::FrameSinkId& frame_sink_id, | 28 const cc::FrameSinkId& frame_sink_id, |
| 29 cc::mojom::MojoCompositorFrameSinkClientPtr client, | 29 cc::mojom::MojoCompositorFrameSinkClientPtr client, |
| 30 cc::mojom::MojoCompositorFrameSinkRequest request) override; | 30 cc::mojom::MojoCompositorFrameSinkRequest request) override; |
| 31 | 31 |
| 32 cc::SurfaceManager* GetSurfaceManager(); | 32 cc::SurfaceManager* GetSurfaceManager(); |
| 33 | 33 |
| 34 void OnCompositorFrameSinkClientConnectionLost( | 34 void OnCompositorFrameSinkClientConnectionLost( |
| 35 const cc::FrameSinkId& frame_sink_id); | 35 const cc::FrameSinkId& frame_sink_id); |
| 36 void OnCompositorFrameSinkClientDestroyed( |
| 37 const cc::FrameSinkId& frame_sink_id); |
| 36 | 38 |
| 37 private: | 39 private: |
| 38 std::unordered_map<cc::FrameSinkId, | 40 std::unordered_map<cc::FrameSinkId, |
| 39 std::unique_ptr<OffscreenCanvasCompositorFrameSink>, | 41 std::unique_ptr<OffscreenCanvasCompositorFrameSink>, |
| 40 cc::FrameSinkIdHash> | 42 cc::FrameSinkIdHash> |
| 41 compositor_frame_sinks_; | 43 compositor_frame_sinks_; |
| 42 | 44 |
| 43 mojo::BindingSet<blink::mojom::OffscreenCanvasCompositorFrameSinkProvider> | 45 mojo::BindingSet<blink::mojom::OffscreenCanvasCompositorFrameSinkProvider> |
| 44 bindings_; | 46 bindings_; |
| 45 | 47 |
| 46 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSinkProviderImpl); | 48 DISALLOW_COPY_AND_ASSIGN(OffscreenCanvasCompositorFrameSinkProviderImpl); |
| 47 }; | 49 }; |
| 48 | 50 |
| 49 } // namespace content | 51 } // namespace content |
| 50 | 52 |
| 51 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_
PROVIDER_IMPL_H_ | 53 #endif // CONTENT_BROWSER_RENDERER_HOST_OFFSCREEN_CANVAS_COMPOSITOR_FRAME_SINK_
PROVIDER_IMPL_H_ |
| OLD | NEW |