| 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 | 20 |
| 23 using display_compositor::BufferQueue; | 21 using display_compositor::BufferQueue; |
| 24 | 22 |
| 25 namespace ui { | 23 namespace ui { |
| 26 | 24 |
| 27 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( | 25 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( |
| 28 scoped_refptr<SurfacesContextProvider> context_provider, | 26 scoped_refptr<SurfacesContextProvider> context_provider, |
| 29 gfx::AcceleratedWidget widget, | 27 gfx::AcceleratedWidget widget, |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size, | 146 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size, |
| 149 float scale_factor, | 147 float scale_factor, |
| 150 const gfx::ColorSpace& color_space, | 148 const gfx::ColorSpace& color_space, |
| 151 bool alpha) { | 149 bool alpha) { |
| 152 OutputSurface::Reshape(size, scale_factor, color_space, alpha); | 150 OutputSurface::Reshape(size, scale_factor, color_space, alpha); |
| 153 DCHECK(buffer_queue_); | 151 DCHECK(buffer_queue_); |
| 154 buffer_queue_->Reshape(SurfaceSize(), scale_factor, color_space); | 152 buffer_queue_->Reshape(SurfaceSize(), scale_factor, color_space); |
| 155 } | 153 } |
| 156 | 154 |
| 157 } // namespace ui | 155 } // namespace ui |
| OLD | NEW |