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 #include "services/ui/surfaces/direct_output_surface_ozone.h" | 5 #include "services/ui/surfaces/direct_output_surface_ozone.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
11 #include "cc/output/compositor_frame.h" | 11 #include "cc/output/compositor_frame.h" |
12 #include "cc/output/context_provider.h" | 12 #include "cc/output/context_provider.h" |
13 #include "cc/output/output_surface_client.h" | 13 #include "cc/output/output_surface_client.h" |
14 #include "cc/scheduler/begin_frame_source.h" | 14 #include "cc/scheduler/begin_frame_source.h" |
15 #include "components/display_compositor/buffer_queue.h" | 15 #include "components/display_compositor/buffer_queue.h" |
16 #include "gpu/command_buffer/client/context_support.h" | 16 #include "gpu/command_buffer/client/context_support.h" |
17 #include "gpu/command_buffer/client/gles2_interface.h" | 17 #include "gpu/command_buffer/client/gles2_interface.h" |
18 #include "services/ui/common/gpu_service.h" | |
19 #include "services/ui/common/mojo_gpu_memory_buffer_manager.h" | |
20 #include "services/ui/gpu/mus_gpu_memory_buffer_manager.h" | 18 #include "services/ui/gpu/mus_gpu_memory_buffer_manager.h" |
21 #include "services/ui/surfaces/surfaces_context_provider.h" | 19 #include "services/ui/surfaces/surfaces_context_provider.h" |
22 #include "ui/display/types/display_snapshot.h" | 20 #include "ui/display/types/display_snapshot.h" |
23 | 21 |
24 using display_compositor::BufferQueue; | 22 using display_compositor::BufferQueue; |
25 | 23 |
26 namespace ui { | 24 namespace ui { |
27 | 25 |
28 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( | 26 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( |
29 scoped_refptr<SurfacesContextProvider> context_provider, | 27 scoped_refptr<SurfacesContextProvider> context_provider, |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size, | 148 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size, |
151 float scale_factor, | 149 float scale_factor, |
152 const gfx::ColorSpace& color_space, | 150 const gfx::ColorSpace& color_space, |
153 bool alpha) { | 151 bool alpha) { |
154 OutputSurface::Reshape(size, scale_factor, color_space, alpha); | 152 OutputSurface::Reshape(size, scale_factor, color_space, alpha); |
155 DCHECK(buffer_queue_); | 153 DCHECK(buffer_queue_); |
156 buffer_queue_->Reshape(SurfaceSize(), scale_factor, color_space); | 154 buffer_queue_->Reshape(SurfaceSize(), scale_factor, color_space); |
157 } | 155 } |
158 | 156 |
159 } // namespace ui | 157 } // namespace ui |
OLD | NEW |