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

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

Issue 2349743004: cc: Remove things from OutputSurface and CompositorFrameSink. (Closed)
Patch Set: delete-stuff-cfs: comment-and-rebase Created 4 years, 3 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/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"
(...skipping 11 matching lines...) Expand all
22 22
23 namespace ui { 23 namespace ui {
24 24
25 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone( 25 DirectOutputSurfaceOzone::DirectOutputSurfaceOzone(
26 scoped_refptr<SurfacesContextProvider> context_provider, 26 scoped_refptr<SurfacesContextProvider> context_provider,
27 gfx::AcceleratedWidget widget, 27 gfx::AcceleratedWidget widget,
28 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source, 28 cc::SyntheticBeginFrameSource* synthetic_begin_frame_source,
29 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager, 29 gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager,
30 uint32_t target, 30 uint32_t target,
31 uint32_t internalformat) 31 uint32_t internalformat)
32 : cc::OutputSurface(context_provider, nullptr, nullptr), 32 : cc::OutputSurface(context_provider),
33 gl_helper_(context_provider->ContextGL(), 33 gl_helper_(context_provider->ContextGL(),
34 context_provider->ContextSupport()), 34 context_provider->ContextSupport()),
35 synthetic_begin_frame_source_(synthetic_begin_frame_source), 35 synthetic_begin_frame_source_(synthetic_begin_frame_source),
36 weak_ptr_factory_(this) { 36 weak_ptr_factory_(this) {
37 buffer_queue_.reset( 37 buffer_queue_.reset(
38 new BufferQueue(context_provider->ContextGL(), target, internalformat, 38 new BufferQueue(context_provider->ContextGL(), target, internalformat,
39 ui::DisplaySnapshot::PrimaryFormat(), &gl_helper_, 39 ui::DisplaySnapshot::PrimaryFormat(), &gl_helper_,
40 gpu_memory_buffer_manager, widget)); 40 gpu_memory_buffer_manager, widget));
41 41
42 capabilities_.uses_default_gl_framebuffer = false; 42 capabilities_.uses_default_gl_framebuffer = false;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 const gfx::ColorSpace& color_space, 150 const gfx::ColorSpace& color_space,
151 bool alpha) { 151 bool alpha) {
152 OutputSurface::Reshape(size, scale_factor, color_space, alpha); 152 OutputSurface::Reshape(size, scale_factor, color_space, alpha);
153 DCHECK(buffer_queue_); 153 DCHECK(buffer_queue_);
154 buffer_queue_->Reshape(SurfaceSize(), scale_factor, color_space); 154 buffer_queue_->Reshape(SurfaceSize(), scale_factor, color_space);
155 } 155 }
156 156
157 } // namespace ui 157 } // namespace ui
OLDNEW
« no previous file with comments | « services/ui/surfaces/direct_output_surface.cc ('k') | ui/compositor/test/in_process_context_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698