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

Side by Side Diff: components/mus/surfaces/top_level_display_client.cc

Issue 1840223002: cc: Remove BeginFrameSource::Create methods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix test BFS and mus too Created 4 years, 8 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 | « cc/trees/single_thread_proxy.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/mus/surfaces/top_level_display_client.h" 5 #include "components/mus/surfaces/top_level_display_client.h"
6 6
7 #include "base/thread_task_runner_handle.h" 7 #include "base/thread_task_runner_handle.h"
8 #include "cc/output/compositor_frame.h" 8 #include "cc/output/compositor_frame.h"
9 #include "cc/output/copy_output_request.h" 9 #include "cc/output/copy_output_request.h"
10 #include "cc/scheduler/begin_frame_source.h" 10 #include "cc/scheduler/begin_frame_source.h"
(...skipping 29 matching lines...) Expand all
40 display_.reset(new cc::Display(this, surfaces_state_->manager(), nullptr, 40 display_.reset(new cc::Display(this, surfaces_state_->manager(), nullptr,
41 nullptr, cc::RendererSettings())); 41 nullptr, cc::RendererSettings()));
42 42
43 scoped_ptr<cc::OutputSurface> output_surface = 43 scoped_ptr<cc::OutputSurface> output_surface =
44 make_scoped_ptr(new DirectOutputSurface( 44 make_scoped_ptr(new DirectOutputSurface(
45 new SurfacesContextProvider(this, widget, gpu_state))); 45 new SurfacesContextProvider(this, widget, gpu_state)));
46 46
47 int max_frames_pending = output_surface->capabilities().max_frames_pending; 47 int max_frames_pending = output_surface->capabilities().max_frames_pending;
48 DCHECK_GT(max_frames_pending, 0); 48 DCHECK_GT(max_frames_pending, 0);
49 49
50 synthetic_frame_source_ = cc::SyntheticBeginFrameSource::Create( 50 synthetic_frame_source_.reset(new cc::SyntheticBeginFrameSource(
51 task_runner_.get(), cc::BeginFrameArgs::DefaultInterval()); 51 task_runner_.get(), cc::BeginFrameArgs::DefaultInterval()));
52 52
53 scheduler_.reset( 53 scheduler_.reset(
54 new cc::DisplayScheduler(display_.get(), synthetic_frame_source_.get(), 54 new cc::DisplayScheduler(display_.get(), synthetic_frame_source_.get(),
55 task_runner_.get(), max_frames_pending)); 55 task_runner_.get(), max_frames_pending));
56 56
57 if (gpu_state->HardwareRenderingAvailable()) { 57 if (gpu_state->HardwareRenderingAvailable()) {
58 display_->Initialize(std::move(output_surface), scheduler_.get()); 58 display_->Initialize(std::move(output_surface), scheduler_.get());
59 } else { 59 } else {
60 // TODO(rjkroege): Implement software compositing. 60 // TODO(rjkroege): Implement software compositing.
61 } 61 }
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 const cc::ReturnedResourceArray& resources) { 117 const cc::ReturnedResourceArray& resources) {
118 // TODO(fsamuel): Implement this. 118 // TODO(fsamuel): Implement this.
119 } 119 }
120 120
121 void TopLevelDisplayClient::SetBeginFrameSource( 121 void TopLevelDisplayClient::SetBeginFrameSource(
122 cc::BeginFrameSource* begin_frame_source) { 122 cc::BeginFrameSource* begin_frame_source) {
123 // TODO(tansell): Implement this. 123 // TODO(tansell): Implement this.
124 } 124 }
125 125
126 } // namespace mus 126 } // namespace mus
OLDNEW
« no previous file with comments | « cc/trees/single_thread_proxy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698