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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 1239363003: Revert of cc: Call PrepareTiles when becoming visible in browser only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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_impl.cc ('k') | cc/trees/single_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_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 29a809535783bc03295f9f0ce76116214a69df62..6d9c9c67199fbe1de37c8e323c741e004d8b6798 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -272,35 +272,6 @@
// single threaded mode.
SINGLE_THREAD_TEST_F(LayerTreeHostTestReadyToDrawNonEmpty);
-// This tests that we get the ready to draw signal eventually even if we become
-// invisible and then become visible again.
-class LayerTreeHostTestReadyToDrawVisibility
- : public LayerTreeHostTestReadyToDrawNonEmpty {
- public:
- LayerTreeHostTestReadyToDrawVisibility()
- : LayerTreeHostTestReadyToDrawNonEmpty(), did_commit_(false) {}
-
- void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) override {
- EXPECT_FALSE(did_commit_);
- did_commit_ = true;
- PostSetVisibleToMainThread(false);
- }
-
- void DidSetVisibleOnImplTree(LayerTreeHostImpl* host_impl,
- bool visible) override {
- if (!visible) {
- EXPECT_TRUE(did_commit_);
- EXPECT_FALSE(did_notify_ready_to_draw_);
- PostSetVisibleToMainThread(true);
- }
- }
-
- protected:
- bool did_commit_;
-};
-
-SINGLE_THREAD_TEST_F(LayerTreeHostTestReadyToDrawVisibility);
-
class LayerTreeHostFreeWorkerContextResourcesTest : public LayerTreeHostTest {
public:
scoped_ptr<FakeOutputSurface> CreateFakeOutputSurface() override {
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/single_thread_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698