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

Side by Side Diff: cc/test/scheduler_test_common.cc

Issue 696413003: cc: Introduce forward_begin_frames_to_children and use_external_begin_frame_source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@sep
Patch Set: rebase on master Created 6 years, 1 month 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/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 "cc/test/scheduler_test_common.h" 5 #include "cc/test/scheduler_test_common.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 10
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 if (!scheduler->settings_.throttle_frame_production) { 77 if (!scheduler->settings_.throttle_frame_production) {
78 TRACE_EVENT1( 78 TRACE_EVENT1(
79 "cc", 79 "cc",
80 "TestSchedulerFrameSourcesConstructor::ConstructPrimaryFrameSource", 80 "TestSchedulerFrameSourcesConstructor::ConstructPrimaryFrameSource",
81 "source", 81 "source",
82 "TestBackToBackBeginFrameSource"); 82 "TestBackToBackBeginFrameSource");
83 DCHECK(!scheduler->primary_frame_source_internal_); 83 DCHECK(!scheduler->primary_frame_source_internal_);
84 scheduler->primary_frame_source_internal_ = 84 scheduler->primary_frame_source_internal_ =
85 TestBackToBackBeginFrameSource::Create(now_src_, test_task_runner_); 85 TestBackToBackBeginFrameSource::Create(now_src_, test_task_runner_);
86 return scheduler->primary_frame_source_internal_.get(); 86 return scheduler->primary_frame_source_internal_.get();
87 } else if (scheduler->settings_.begin_frame_scheduling_enabled) { 87 } else if (scheduler->settings_.use_external_begin_frame_source) {
88 return SchedulerFrameSourcesConstructor::ConstructPrimaryFrameSource( 88 return SchedulerFrameSourcesConstructor::ConstructPrimaryFrameSource(
89 scheduler); 89 scheduler);
90 } else { 90 } else {
91 TRACE_EVENT1( 91 TRACE_EVENT1(
92 "cc", 92 "cc",
93 "TestSchedulerFrameSourcesConstructor::ConstructPrimaryFrameSource", 93 "TestSchedulerFrameSourcesConstructor::ConstructPrimaryFrameSource",
94 "source", 94 "source",
95 "TestSyntheticBeginFrameSource"); 95 "TestSyntheticBeginFrameSource");
96 scoped_ptr<TestSyntheticBeginFrameSource> synthetic_source = 96 scoped_ptr<TestSyntheticBeginFrameSource> synthetic_source =
97 TestSyntheticBeginFrameSource::Create( 97 TestSyntheticBeginFrameSource::Create(
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 } 141 }
142 142
143 base::TimeTicks TestScheduler::Now() const { 143 base::TimeTicks TestScheduler::Now() const {
144 return now_src_->Now(); 144 return now_src_->Now();
145 } 145 }
146 146
147 TestScheduler::~TestScheduler() { 147 TestScheduler::~TestScheduler() {
148 } 148 }
149 149
150 } // namespace cc 150 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/layer_tree_test.cc ('k') | cc/trees/layer_tree_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698