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

Side by Side Diff: content/browser/compositor/browser_compositor_output_surface.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 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/memory/ptr_util.h" 12 #include "base/memory/ptr_util.h"
13 #include "base/strings/string_number_conversions.h" 13 #include "base/strings/string_number_conversions.h"
14 #include "cc/output/output_surface_client.h" 14 #include "cc/output/output_surface_client.h"
15 #include "cc/scheduler/begin_frame_source.h" 15 #include "cc/scheduler/begin_frame_source.h"
16 #include "components/display_compositor/compositor_overlay_candidate_validator.h " 16 #include "components/viz/display_compositor/compositor_overlay_candidate_validat or.h"
17 #include "content/browser/compositor/reflector_impl.h" 17 #include "content/browser/compositor/reflector_impl.h"
18 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h" 18 #include "services/ui/public/cpp/gpu/context_provider_command_buffer.h"
19 19
20 namespace content { 20 namespace content {
21 21
22 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface( 22 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface(
23 scoped_refptr<cc::ContextProvider> context_provider, 23 scoped_refptr<cc::ContextProvider> context_provider,
24 const UpdateVSyncParametersCallback& update_vsync_parameters_callback, 24 const UpdateVSyncParametersCallback& update_vsync_parameters_callback,
25 std::unique_ptr<display_compositor::CompositorOverlayCandidateValidator> 25 std::unique_ptr<viz::CompositorOverlayCandidateValidator>
26 overlay_candidate_validator) 26 overlay_candidate_validator)
27 : OutputSurface(std::move(context_provider)), 27 : OutputSurface(std::move(context_provider)),
28 update_vsync_parameters_callback_(update_vsync_parameters_callback), 28 update_vsync_parameters_callback_(update_vsync_parameters_callback),
29 reflector_(nullptr) { 29 reflector_(nullptr) {
30 overlay_candidate_validator_ = std::move(overlay_candidate_validator); 30 overlay_candidate_validator_ = std::move(overlay_candidate_validator);
31 } 31 }
32 32
33 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface( 33 BrowserCompositorOutputSurface::BrowserCompositorOutputSurface(
34 std::unique_ptr<cc::SoftwareOutputDevice> software_device, 34 std::unique_ptr<cc::SoftwareOutputDevice> software_device,
35 const UpdateVSyncParametersCallback& update_vsync_parameters_callback) 35 const UpdateVSyncParametersCallback& update_vsync_parameters_callback)
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 return overlay_candidate_validator_.get(); 69 return overlay_candidate_validator_.get();
70 } 70 }
71 71
72 bool BrowserCompositorOutputSurface::HasExternalStencilTest() const { 72 bool BrowserCompositorOutputSurface::HasExternalStencilTest() const {
73 return false; 73 return false;
74 } 74 }
75 75
76 void BrowserCompositorOutputSurface::ApplyExternalStencil() {} 76 void BrowserCompositorOutputSurface::ApplyExternalStencil() {}
77 77
78 } // namespace content 78 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698