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_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 5 #ifndef CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
6 #define CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 6 #define CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 26 matching lines...) Expand all Loading... |
37 class MusBrowserCompositorOutputSurface | 37 class MusBrowserCompositorOutputSurface |
38 : public GpuBrowserCompositorOutputSurface, | 38 : public GpuBrowserCompositorOutputSurface, |
39 public cc::CompositorFrameSinkClient { | 39 public cc::CompositorFrameSinkClient { |
40 public: | 40 public: |
41 // TODO(mfomitchev): Remove this constructor once we complete the switch to | 41 // TODO(mfomitchev): Remove this constructor once we complete the switch to |
42 // Aura-Mus. | 42 // Aura-Mus. |
43 MusBrowserCompositorOutputSurface( | 43 MusBrowserCompositorOutputSurface( |
44 ui::Window* window, | 44 ui::Window* window, |
45 scoped_refptr<ContextProviderCommandBuffer> context, | 45 scoped_refptr<ContextProviderCommandBuffer> context, |
46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 46 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
47 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, | 47 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, |
48 cc::SyntheticBeginFrameSource* begin_frame_source, | |
49 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 48 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
50 overlay_candidate_validator); | 49 overlay_candidate_validator); |
51 | 50 |
52 MusBrowserCompositorOutputSurface( | 51 MusBrowserCompositorOutputSurface( |
53 aura::Window* window, | 52 aura::Window* window, |
54 scoped_refptr<ContextProviderCommandBuffer> context, | 53 scoped_refptr<ContextProviderCommandBuffer> context, |
55 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, | 54 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, |
56 scoped_refptr<ui::CompositorVSyncManager> vsync_manager, | 55 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, |
57 cc::SyntheticBeginFrameSource* begin_frame_source, | |
58 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> | 56 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> |
59 overlay_candidate_validator); | 57 overlay_candidate_validator); |
60 | 58 |
61 ~MusBrowserCompositorOutputSurface() override; | 59 ~MusBrowserCompositorOutputSurface() override; |
62 | 60 |
63 protected: | 61 protected: |
64 // cc::OutputSurface implementation. | 62 // cc::OutputSurface implementation. |
65 void SwapBuffers(cc::OutputSurfaceFrame frame) override; | 63 void SwapBuffers(cc::OutputSurfaceFrame frame) override; |
66 | 64 |
67 // cc::CompositorFrameSinkClient: | 65 // cc::CompositorFrameSinkClient: |
(...skipping 23 matching lines...) Expand all Loading... |
91 std::unique_ptr<aura::WindowCompositorFrameSink> compositor_frame_sink_; | 89 std::unique_ptr<aura::WindowCompositorFrameSink> compositor_frame_sink_; |
92 std::vector<uint32_t> free_resource_ids_; | 90 std::vector<uint32_t> free_resource_ids_; |
93 std::vector<gpu::Mailbox> mailboxes_; | 91 std::vector<gpu::Mailbox> mailboxes_; |
94 | 92 |
95 DISALLOW_COPY_AND_ASSIGN(MusBrowserCompositorOutputSurface); | 93 DISALLOW_COPY_AND_ASSIGN(MusBrowserCompositorOutputSurface); |
96 }; | 94 }; |
97 | 95 |
98 } // namespace content | 96 } // namespace content |
99 | 97 |
100 #endif // CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ | 98 #endif // CONTENT_BROWSER_COMPOSITOR_MUS_BROWSER_COMPOSITOR_OUTPUT_SURFACE_H_ |
OLD | NEW |