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

Unified Diff: cc/trees/layer_tree_host_impl.cc

Issue 12623026: cc: Chromify TimeSource, DelayBasedTimeSource and test (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Back to doubles Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/scheduler_test_common.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_impl.cc
diff --git a/cc/trees/layer_tree_host_impl.cc b/cc/trees/layer_tree_host_impl.cc
index 4c803ebab9e77865ed0ff0187378c79a471edd9e..870b6e78cf1f9a37dc42641da011a320f77b863d 100644
--- a/cc/trees/layer_tree_host_impl.cc
+++ b/cc/trees/layer_tree_host_impl.cc
@@ -83,11 +83,11 @@ class LayerTreeHostImplTimeSourceAdapter : public TimeSourceClient {
time_source));
}
virtual ~LayerTreeHostImplTimeSourceAdapter() {
- time_source_->setClient(NULL);
- time_source_->setActive(false);
+ time_source_->SetClient(NULL);
+ time_source_->SetActive(false);
}
- virtual void onTimerTick() OVERRIDE {
+ virtual void OnTimerTick() OVERRIDE {
// In single threaded mode we attempt to simulate changing the current
// thread by maintaining a fake thread id. When we switch from one
// thread to another, we construct DebugScopedSetXXXThread objects that
@@ -114,8 +114,8 @@ class LayerTreeHostImplTimeSourceAdapter : public TimeSourceClient {
}
void SetActive(bool active) {
- if (active != time_source_->active())
- time_source_->setActive(active);
+ if (active != time_source_->Active())
+ time_source_->SetActive(active);
}
private:
@@ -124,7 +124,7 @@ class LayerTreeHostImplTimeSourceAdapter : public TimeSourceClient {
scoped_refptr<DelayBasedTimeSource> time_source)
: layer_tree_host_impl_(layer_tree_host_impl),
time_source_(time_source) {
- time_source_->setClient(this);
+ time_source_->SetClient(this);
}
LayerTreeHostImpl* layer_tree_host_impl_;
@@ -664,7 +664,7 @@ void LayerTreeHostImpl::SetBackgroundTickingEnabled(bool enabled) {
if (!time_source_client_adapter_) {
time_source_client_adapter_ = LayerTreeHostImplTimeSourceAdapter::Create(
this,
- DelayBasedTimeSource::create(LowFrequencyAnimationInterval(),
+ DelayBasedTimeSource::Create(LowFrequencyAnimationInterval(),
proxy_->CurrentThread()));
}
« no previous file with comments | « cc/test/scheduler_test_common.cc ('k') | cc/trees/thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698