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

Unified Diff: cc/trees/layer_tree_host_unittest_animation.cc

Issue 550073002: Revert of cc: Single-threaded impl-side painting for unit tests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/trees/layer_tree_host_unittest.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest_animation.cc
diff --git a/cc/trees/layer_tree_host_unittest_animation.cc b/cc/trees/layer_tree_host_unittest_animation.cc
index a81bf713574ce4c72518e50876729afd04569863..fff628b1cb352c4fa098aad77114422b27216568 100644
--- a/cc/trees/layer_tree_host_unittest_animation.cc
+++ b/cc/trees/layer_tree_host_unittest_animation.cc
@@ -397,8 +397,7 @@
virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
// At the start of every commit, block activations and make sure
// we are backgrounded.
- if (host_impl->settings().impl_side_painting)
- host_impl->BlockNotifyReadyToActivateForTesting(true);
+ host_impl->BlockNotifyReadyToActivateForTesting(true);
PostSetVisibleToMainThread(false);
}
@@ -427,8 +426,7 @@
}
virtual void UnblockActivations(LayerTreeHostImpl* host_impl) {
- if (host_impl->settings().impl_side_painting)
- host_impl->BlockNotifyReadyToActivateForTesting(false);
+ host_impl->BlockNotifyReadyToActivateForTesting(false);
}
virtual void DidActivateTreeOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
@@ -484,7 +482,7 @@
bool active_tree_was_animated_;
};
-SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(
+SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestNoBackgroundTickingWithoutActiveTree);
// Ensure that an animation's timing function is respected.
@@ -1171,8 +1169,7 @@
}
virtual void BeginCommitOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
- if (host_impl->settings().impl_side_painting)
- host_impl->BlockNotifyReadyToActivateForTesting(true);
+ host_impl->BlockNotifyReadyToActivateForTesting(true);
}
virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) OVERRIDE {
@@ -1180,10 +1177,9 @@
// blocking activation. We want to verify that even with activation blocked,
// the animation on the layer that's already in the active tree won't get a
// head start.
- if (host_impl->settings().impl_side_painting &&
- host_impl->pending_tree()->source_frame_number() != 2) {
+ if (!host_impl->settings().impl_side_painting ||
+ host_impl->pending_tree()->source_frame_number() != 2)
host_impl->BlockNotifyReadyToActivateForTesting(false);
- }
}
virtual void WillBeginImplFrameOnThread(LayerTreeHostImpl* host_impl,
@@ -1193,10 +1189,8 @@
return;
frame_count_with_pending_tree_++;
- if (frame_count_with_pending_tree_ == 2 &&
- host_impl->settings().impl_side_painting) {
+ if (frame_count_with_pending_tree_ == 2)
host_impl->BlockNotifyReadyToActivateForTesting(false);
- }
}
virtual void UpdateAnimationState(LayerTreeHostImpl* host_impl,
@@ -1227,7 +1221,7 @@
int frame_count_with_pending_tree_;
};
-SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(
+SINGLE_AND_MULTI_THREAD_TEST_F(
LayerTreeHostAnimationTestAnimationsAddedToNewAndExistingLayers);
class LayerTreeHostAnimationTestAddAnimationAfterAnimating
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698