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 "components/mus/surfaces/direct_output_surface_ozone.h" | 5 #include "components/mus/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 "cc/output/compositor_frame.h" | 10 #include "cc/output/compositor_frame.h" |
11 #include "cc/output/context_provider.h" | 11 #include "cc/output/context_provider.h" |
12 #include "cc/output/output_surface_client.h" | 12 #include "cc/output/output_surface_client.h" |
13 #include "components/display_compositor/buffer_queue.h" | 13 #include "components/display_compositor/buffer_queue.h" |
14 #include "components/mus/gles2/mojo_gpu_memory_buffer_manager.h" | 14 #include "components/mus/common/mojo_gpu_memory_buffer_manager.h" |
15 #include "components/mus/surfaces/surfaces_context_provider.h" | 15 #include "components/mus/surfaces/surfaces_context_provider.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 | 18 |
19 using display_compositor::BufferQueue; | 19 using display_compositor::BufferQueue; |
20 | 20 |
21 namespace mus { | 21 namespace mus { |
22 | 22 |
23 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( | 23 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( |
24 scoped_refptr<SurfacesContextProvider> context_provider, | 24 scoped_refptr<SurfacesContextProvider> context_provider, |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 // must create the native window in the size that the hardware reports. | 147 // must create the native window in the size that the hardware reports. |
148 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size, | 148 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size, |
149 float scale_factor, | 149 float scale_factor, |
150 bool alpha) { | 150 bool alpha) { |
151 OutputSurface::Reshape(size, scale_factor, alpha); | 151 OutputSurface::Reshape(size, scale_factor, alpha); |
152 DCHECK(buffer_queue_); | 152 DCHECK(buffer_queue_); |
153 buffer_queue_->Reshape(SurfaceSize(), scale_factor); | 153 buffer_queue_->Reshape(SurfaceSize(), scale_factor); |
154 } | 154 } |
155 | 155 |
156 } // namespace mus | 156 } // namespace mus |
OLD | NEW |