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

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

Issue 2873243002: Move components/display_compositor to components/viz/display_compositor (Closed)
Patch Set: Rebase Created 3 years, 7 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 "services/ui/surfaces/display_output_surface_ozone.h" 5 #include "services/ui/surfaces/display_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/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 "cc/output/output_surface_frame.h" 13 #include "cc/output/output_surface_frame.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/viz/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 "ui/display/types/display_snapshot.h" 18 #include "ui/display/types/display_snapshot.h"
19 19
20 using display_compositor::BufferQueue; 20 using viz::BufferQueue;
21 21
22 namespace ui { 22 namespace ui {
23 23
24 DisplayOutputSurfaceOzone::DisplayOutputSurfaceOzone( 24 DisplayOutputSurfaceOzone::DisplayOutputSurfaceOzone(
25 scoped_refptr<cc::InProcessContextProvider> context_provider, 25 scoped_refptr<cc::InProcessContextProvider> context_provider,
26 gfx::AcceleratedWidget widget, 26 gfx::AcceleratedWidget widget,
27 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source, 27 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source,
28 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 28 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
29 uint32_t target, 29 uint32_t target,
30 uint32_t internalformat) 30 uint32_t internalformat)
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 } 119 }
120 120
121 buffer_queue_->PageFlipComplete(); 121 buffer_queue_->PageFlipComplete();
122 client()->DidReceiveSwapBuffersAck(); 122 client()->DidReceiveSwapBuffersAck();
123 123
124 if (force_swap) 124 if (force_swap)
125 client()->SetNeedsRedrawRect(gfx::Rect(swap_size_)); 125 client()->SetNeedsRedrawRect(gfx::Rect(swap_size_));
126 } 126 }
127 127
128 } // namespace ui 128 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/surfaces/display_output_surface_ozone.h ('k') | services/ui/surfaces/mus_display_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698