OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 6 #define SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <set> | 9 #include <set> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 cc::mojom::MojoCompositorFrameSinkRequest request, | 53 cc::mojom::MojoCompositorFrameSinkRequest request, |
54 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, | 54 cc::mojom::MojoCompositorFrameSinkPrivateRequest private_request, |
55 cc::mojom::MojoCompositorFrameSinkClientPtr client); | 55 cc::mojom::MojoCompositorFrameSinkClientPtr client); |
56 | 56 |
57 ~GpuCompositorFrameSink() override; | 57 ~GpuCompositorFrameSink() override; |
58 | 58 |
59 // cc::mojom::MojoCompositorFrameSink: | 59 // cc::mojom::MojoCompositorFrameSink: |
60 void SetNeedsBeginFrame(bool needs_begin_frame) override; | 60 void SetNeedsBeginFrame(bool needs_begin_frame) override; |
61 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id, | 61 void SubmitCompositorFrame(const cc::LocalFrameId& local_frame_id, |
62 cc::CompositorFrame frame) override; | 62 cc::CompositorFrame frame) override; |
| 63 void EvictFrame() override; |
63 | 64 |
64 // cc::mojom::MojoCompositorFrameSinkPrivate: | 65 // cc::mojom::MojoCompositorFrameSinkPrivate: |
65 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; | 66 void AddChildFrameSink(const cc::FrameSinkId& child_frame_sink_id) override; |
66 void RemoveChildFrameSink( | 67 void RemoveChildFrameSink( |
67 const cc::FrameSinkId& child_frame_sink_id) override; | 68 const cc::FrameSinkId& child_frame_sink_id) override; |
68 | 69 |
69 private: | 70 private: |
70 void InitDisplay( | 71 void InitDisplay( |
71 gpu::SurfaceHandle widget, | 72 gpu::SurfaceHandle widget, |
72 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 73 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_; | 132 mojo::Binding<cc::mojom::MojoCompositorFrameSinkPrivate> private_binding_; |
132 | 133 |
133 base::WeakPtrFactory<GpuCompositorFrameSink> weak_factory_; | 134 base::WeakPtrFactory<GpuCompositorFrameSink> weak_factory_; |
134 | 135 |
135 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); | 136 DISALLOW_COPY_AND_ASSIGN(GpuCompositorFrameSink); |
136 }; | 137 }; |
137 | 138 |
138 } // namespace ui | 139 } // namespace ui |
139 | 140 |
140 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ | 141 #endif // SERVICES_UI_SURFACES_GPU_COMPOSITOR_FRAME_SINK_H_ |
OLD | NEW |