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

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: 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
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 008cbab6973d203a9f33a9b9b80a8031cccfc256..f76059606c91f84eb6734617442ba3ae3b84d891 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_;
@@ -658,7 +658,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()));
}

Powered by Google App Engine
This is Rietveld 408576698