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

Side by Side Diff: components/mus/surfaces/direct_output_surface_ozone.cc

Issue 2020293003: Use mus::MojoGpuMemoryBufferManager in mus::GpuService. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update Created 4 years, 6 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
« no previous file with comments | « components/mus/public/cpp/lib/gpu_service.cc ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/gpu_service.cc ('k') | ui/views/mus/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698