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

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

Issue 2613493002: Fix namespace for src/ui/display/. (Closed)
Patch Set: Rebase. Created 3 years, 11 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 | « services/ui/display/screen_manager_ozone_unittests.cc ('k') | ui/display/display.h » ('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 "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"
(...skipping 17 matching lines...) Expand all
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)
31 : cc::OutputSurface(context_provider), 31 : cc::OutputSurface(context_provider),
32 gl_helper_(context_provider->ContextGL(), 32 gl_helper_(context_provider->ContextGL(),
33 context_provider->ContextSupport()), 33 context_provider->ContextSupport()),
34 synthetic_begin_frame_source_(synthetic_begin_frame_source), 34 synthetic_begin_frame_source_(synthetic_begin_frame_source),
35 weak_ptr_factory_(this) { 35 weak_ptr_factory_(this) {
36 buffer_queue_.reset( 36 buffer_queue_.reset(
37 new BufferQueue(context_provider->ContextGL(), target, internalformat, 37 new BufferQueue(context_provider->ContextGL(), target, internalformat,
38 ui::DisplaySnapshot::PrimaryFormat(), &gl_helper_, 38 display::DisplaySnapshot::PrimaryFormat(), &gl_helper_,
39 gpu_memory_buffer_manager, widget)); 39 gpu_memory_buffer_manager, widget));
40 40
41 capabilities_.uses_default_gl_framebuffer = false; 41 capabilities_.uses_default_gl_framebuffer = false;
42 capabilities_.flipped_output_surface = true; 42 capabilities_.flipped_output_surface = true;
43 // Set |max_frames_pending| to 2 for surfaceless, which aligns scheduling 43 // Set |max_frames_pending| to 2 for surfaceless, which aligns scheduling
44 // more closely with the previous surfaced behavior. 44 // more closely with the previous surfaced behavior.
45 // With a surface, swap buffer ack used to return early, before actually 45 // With a surface, swap buffer ack used to return early, before actually
46 // presenting the back buffer, enabling the browser compositor to run ahead. 46 // presenting the back buffer, enabling the browser compositor to run ahead.
47 // Surfaceless implementation acks at the time of actual buffer swap, which 47 // Surfaceless implementation acks at the time of actual buffer swap, which
48 // shifts the start of the new frame forward relative to the old 48 // shifts the start of the new frame forward relative to the old
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 void DisplayOutputSurfaceOzone::OnVSyncParametersUpdated( 166 void DisplayOutputSurfaceOzone::OnVSyncParametersUpdated(
167 base::TimeTicks timebase, 167 base::TimeTicks timebase,
168 base::TimeDelta interval) { 168 base::TimeDelta interval) {
169 // TODO(brianderson): We should not be receiving 0 intervals. 169 // TODO(brianderson): We should not be receiving 0 intervals.
170 synthetic_begin_frame_source_->OnUpdateVSyncParameters( 170 synthetic_begin_frame_source_->OnUpdateVSyncParameters(
171 timebase, 171 timebase,
172 interval.is_zero() ? cc::BeginFrameArgs::DefaultInterval() : interval); 172 interval.is_zero() ? cc::BeginFrameArgs::DefaultInterval() : interval);
173 } 173 }
174 174
175 } // namespace ui 175 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/display/screen_manager_ozone_unittests.cc ('k') | ui/display/display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698