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

Side by Side Diff: cc/trees/layer_tree_host_unittest.cc

Issue 2216203002: Refactor MutatorHostClient from LayerTreeHost to LayerTree. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes according to code review. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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/trees/layer_tree_host.h" 5 #include "cc/trees/layer_tree_host.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 5588 matching lines...) Expand 10 before | Expand all | Expand 10 after
5599 std::unique_ptr<SwapPromise> swap_promise1( 5599 std::unique_ptr<SwapPromise> swap_promise1(
5600 new TestSwapPromise(&swap_promise_result_[1])); 5600 new TestSwapPromise(&swap_promise_result_[1]));
5601 layer_tree_host()->QueueSwapPromise(std::move(swap_promise1)); 5601 layer_tree_host()->QueueSwapPromise(std::move(swap_promise1));
5602 layer_tree_host()->SetNeedsCommit(); 5602 layer_tree_host()->SetNeedsCommit();
5603 layer_tree_host()->Composite(base::TimeTicks::Now()); 5603 layer_tree_host()->Composite(base::TimeTicks::Now());
5604 5604
5605 // Fail to draw (not visible). 5605 // Fail to draw (not visible).
5606 std::unique_ptr<SwapPromise> swap_promise2( 5606 std::unique_ptr<SwapPromise> swap_promise2(
5607 new TestSwapPromise(&swap_promise_result_[2])); 5607 new TestSwapPromise(&swap_promise_result_[2]));
5608 layer_tree_host()->QueueSwapPromise(std::move(swap_promise2)); 5608 layer_tree_host()->QueueSwapPromise(std::move(swap_promise2));
5609 layer_tree_host()->SetNeedsDisplayOnAllLayers(); 5609 layer_tree()->SetNeedsDisplayOnAllLayers();
5610 layer_tree_host()->SetVisible(false); 5610 layer_tree_host()->SetVisible(false);
5611 layer_tree_host()->Composite(base::TimeTicks::Now()); 5611 layer_tree_host()->Composite(base::TimeTicks::Now());
5612 5612
5613 EndTest(); 5613 EndTest();
5614 } 5614 }
5615 5615
5616 void DidCommit() override { 5616 void DidCommit() override {
5617 commit_count_++; 5617 commit_count_++;
5618 ASSERT_LE(commit_count_, 3); 5618 ASSERT_LE(commit_count_, 3);
5619 } 5619 }
(...skipping 1431 matching lines...) Expand 10 before | Expand all | Expand 10 after
7051 private: 7051 private:
7052 FakeContentLayerClient client_; 7052 FakeContentLayerClient client_;
7053 const gfx::Size viewport_size_; 7053 const gfx::Size viewport_size_;
7054 const gfx::Size large_image_size_; 7054 const gfx::Size large_image_size_;
7055 }; 7055 };
7056 7056
7057 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationSucceedsWithLargeImage); 7057 SINGLE_AND_MULTI_THREAD_TEST_F(GpuRasterizationSucceedsWithLargeImage);
7058 7058
7059 } // namespace 7059 } // namespace
7060 } // namespace cc 7060 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698