Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(151)

Side by Side Diff: services/ui/surfaces/direct_output_surface_ozone.cc

Issue 2119963002: Move mus to //services/ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 "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 "components/mus/common/gpu_service.h"
17 #include "components/mus/common/mojo_gpu_memory_buffer_manager.h"
18 #include "components/mus/gpu/mus_gpu_memory_buffer_manager.h"
19 #include "components/mus/surfaces/surfaces_context_provider.h"
20 #include "gpu/command_buffer/client/context_support.h" 16 #include "gpu/command_buffer/client/context_support.h"
21 #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"
21 #include "services/ui/surfaces/surfaces_context_provider.h"
22 22
23 using display_compositor::BufferQueue; 23 using display_compositor::BufferQueue;
24 24
25 namespace mus { 25 namespace mus {
26 26
27 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( 27 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone(
28 scoped_refptr<SurfacesContextProvider> context_provider, 28 scoped_refptr<SurfacesContextProvider> context_provider,
29 gfx::AcceleratedWidget widget, 29 gfx::AcceleratedWidget widget,
30 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source, 30 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source,
31 uint32_t target, 31 uint32_t target,
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size, 157 void DirectOutputSurfaceOzone::Reshape(const gfx::Size& size,
158 float scale_factor, 158 float scale_factor,
159 const gfx::ColorSpace& color_space, 159 const gfx::ColorSpace& color_space,
160 bool alpha) { 160 bool alpha) {
161 OutputSurface::Reshape(size, scale_factor, color_space, alpha); 161 OutputSurface::Reshape(size, scale_factor, color_space, alpha);
162 DCHECK(buffer_queue_); 162 DCHECK(buffer_queue_);
163 buffer_queue_->Reshape(SurfaceSize(), scale_factor); 163 buffer_queue_->Reshape(SurfaceSize(), scale_factor);
164 } 164 }
165 165
166 } // namespace mus 166 } // namespace mus
OLDNEW
« no previous file with comments | « services/ui/surfaces/direct_output_surface_ozone.h ('k') | services/ui/surfaces/display_compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698