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

Side by Side Diff: content/browser/compositor/browser_compositor_output_surface.cc

Issue 1931213002: display_compositor: Move CompositorOverlayCandidateValidator from content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@DONE_2016.04.28_dc-overlay-candidate-validator
Patch Set: . Created 4 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/browser/compositor/browser_compositor_output_surface.h" 5 #include "content/browser/compositor/browser_compositor_output_surface.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
13 #include "cc/base/switches.h" 13 #include "cc/base/switches.h"
14 #include "cc/output/output_surface_client.h" 14 #include "cc/output/output_surface_client.h"
15 #include "content/browser/compositor/browser_compositor_overlay_candidate_valida tor.h" 15 #include "components/display_compositor/compositor_overlay_candidate_validator.h "
16 #include "content/browser/compositor/reflector_impl.h" 16 #include "content/browser/compositor/reflector_impl.h"
17 #include "content/common/gpu/client/context_provider_command_buffer.h" 17 #include "content/common/gpu/client/context_provider_command_buffer.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface( 21 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface(
22 const scoped_refptr<cc::ContextProvider>& context_provider, 22 const scoped_refptr<cc::ContextProvider>& context_provider,
23 const scoped_refptr<cc::ContextProvider>& worker_context_provider, 23 const scoped_refptr<cc::ContextProvider>& worker_context_provider,
24 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager, 24 const scoped_refptr<ui::CompositorVSyncManager>& vsync_manager,
25 base::SingleThreadTaskRunner* task_runner, 25 base::SingleThreadTaskRunner* task_runner,
26 std::unique_ptr<BrowserCompositorOverlayCandidateValidator> 26 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator>
27 overlay_candidate_validator) 27 overlay_candidate_validator)
28 : OutputSurface(context_provider, worker_context_provider), 28 : OutputSurface(context_provider, worker_context_provider),
29 vsync_manager_(vsync_manager), 29 vsync_manager_(vsync_manager),
30 synthetic_begin_frame_source_(new cc::SyntheticBeginFrameSource( 30 synthetic_begin_frame_source_(new cc::SyntheticBeginFrameSource(
31 task_runner, 31 task_runner,
32 cc::BeginFrameArgs::DefaultInterval())), 32 cc::BeginFrameArgs::DefaultInterval())),
33 reflector_(nullptr), 33 reflector_(nullptr),
34 use_begin_frame_scheduling_( 34 use_begin_frame_scheduling_(
35 base::CommandLine::ForCurrentProcess()->HasSwitch( 35 base::CommandLine::ForCurrentProcess()->HasSwitch(
36 cc::switches::kEnableBeginFrameScheduling)) { 36 cc::switches::kEnableBeginFrameScheduling)) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 BrowserCompositorOutputSurface::CreateCompositionStartedCallback() { 146 BrowserCompositorOutputSurface::CreateCompositionStartedCallback() {
147 return base::Closure(); 147 return base::Closure();
148 } 148 }
149 149
150 cc::OverlayCandidateValidator* 150 cc::OverlayCandidateValidator*
151 BrowserCompositorOutputSurface::GetOverlayCandidateValidator() const { 151 BrowserCompositorOutputSurface::GetOverlayCandidateValidator() const {
152 return overlay_candidate_validator_.get(); 152 return overlay_candidate_validator_.get();
153 } 153 }
154 154
155 } // namespace content 155 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698