| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" | 9 #include "cc/ipc/mojo_compositor_frame_sink.mojom.h" |
| 10 #include "cc/output/compositor_frame_sink.h" | 10 #include "cc/output/compositor_frame_sink.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 std::unique_ptr<ClientCompositorFrameSinkBinding>* | 31 std::unique_ptr<ClientCompositorFrameSinkBinding>* |
| 32 compositor_frame_sink_binding); | 32 compositor_frame_sink_binding); |
| 33 | 33 |
| 34 ~ClientCompositorFrameSink() override; | 34 ~ClientCompositorFrameSink() override; |
| 35 | 35 |
| 36 // cc::CompositorFrameSink implementation. | 36 // cc::CompositorFrameSink implementation. |
| 37 bool BindToClient(cc::CompositorFrameSinkClient* client) override; | 37 bool BindToClient(cc::CompositorFrameSinkClient* client) override; |
| 38 void DetachFromClient() override; | 38 void DetachFromClient() override; |
| 39 void SetLocalSurfaceId(const cc::LocalSurfaceId& local_surface_id) override; | 39 void SetLocalSurfaceId(const cc::LocalSurfaceId& local_surface_id) override; |
| 40 void SubmitCompositorFrame(cc::CompositorFrame frame) override; | 40 void SubmitCompositorFrame(cc::CompositorFrame frame) override; |
| 41 void EvictFrame() override; |
| 41 | 42 |
| 42 private: | 43 private: |
| 43 ClientCompositorFrameSink( | 44 ClientCompositorFrameSink( |
| 44 const cc::FrameSinkId& frame_sink_id, | 45 const cc::FrameSinkId& frame_sink_id, |
| 45 scoped_refptr<cc::ContextProvider> context_provider, | 46 scoped_refptr<cc::ContextProvider> context_provider, |
| 46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 47 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
| 47 cc::mojom::MojoCompositorFrameSinkPtrInfo compositor_frame_sink_info, | 48 cc::mojom::MojoCompositorFrameSinkPtrInfo compositor_frame_sink_info, |
| 48 cc::mojom::MojoCompositorFrameSinkClientRequest client_request); | 49 cc::mojom::MojoCompositorFrameSinkClientRequest client_request); |
| 49 | 50 |
| 50 // cc::mojom::MojoCompositorFrameSinkClient implementation: | 51 // cc::mojom::MojoCompositorFrameSinkClient implementation: |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 compositor_frame_sink_client); | 96 compositor_frame_sink_client); |
| 96 | 97 |
| 97 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request_; | 98 cc::mojom::MojoCompositorFrameSinkRequest compositor_frame_sink_request_; |
| 98 cc::mojom::MojoCompositorFrameSinkClientPtrInfo compositor_frame_sink_client_; | 99 cc::mojom::MojoCompositorFrameSinkClientPtrInfo compositor_frame_sink_client_; |
| 99 | 100 |
| 100 DISALLOW_COPY_AND_ASSIGN(ClientCompositorFrameSinkBinding); | 101 DISALLOW_COPY_AND_ASSIGN(ClientCompositorFrameSinkBinding); |
| 101 }; | 102 }; |
| 102 } // namespace ui | 103 } // namespace ui |
| 103 | 104 |
| 104 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ | 105 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_COMPOSITOR_FRAME_SINK_H_ |
| OLD | NEW |