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

Side by Side Diff: cc/test/layer_test_common.cc

Issue 1921503005: cc: Move main thread hierarchy dependencies into PropertyTreeBuilder (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 7 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
« no previous file with comments | « cc/layers/layer_position_constraint_unittest.cc ('k') | cc/test/layer_tree_host_common_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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/test/layer_test_common.h" 5 #include "cc/test/layer_test_common.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "cc/animation/animation_host.h" 9 #include "cc/animation/animation_host.h"
10 #include "cc/animation/animation_id_provider.h" 10 #include "cc/animation/animation_id_provider.h"
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 LayerTestCommon::LayerImplTest::~LayerImplTest() { 145 LayerTestCommon::LayerImplTest::~LayerImplTest() {
146 host_->animation_host()->RemoveAnimationTimeline(timeline_); 146 host_->animation_host()->RemoveAnimationTimeline(timeline_);
147 timeline_ = nullptr; 147 timeline_ = nullptr;
148 } 148 }
149 149
150 void LayerTestCommon::LayerImplTest::CalcDrawProps( 150 void LayerTestCommon::LayerImplTest::CalcDrawProps(
151 const gfx::Size& viewport_size) { 151 const gfx::Size& viewport_size) {
152 LayerImplList layer_list; 152 LayerImplList layer_list;
153 LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting inputs( 153 LayerTreeHostCommon::CalcDrawPropsImplInputsForTesting inputs(
154 root_layer(), viewport_size, &layer_list); 154 root_layer(), viewport_size, &layer_list);
155 LayerTreeHostCommon::CalculateDrawProperties(&inputs); 155 LayerTreeHostCommon::CalculateDrawPropertiesForTesting(&inputs);
156 } 156 }
157 157
158 void LayerTestCommon::LayerImplTest::AppendQuadsWithOcclusion( 158 void LayerTestCommon::LayerImplTest::AppendQuadsWithOcclusion(
159 LayerImpl* layer_impl, 159 LayerImpl* layer_impl,
160 const gfx::Rect& occluded) { 160 const gfx::Rect& occluded) {
161 AppendQuadsData data; 161 AppendQuadsData data;
162 162
163 render_pass_->quad_list.clear(); 163 render_pass_->quad_list.clear();
164 render_pass_->shared_quad_state_list.clear(); 164 render_pass_->shared_quad_state_list.clear();
165 165
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 void EmptyCopyOutputCallback(std::unique_ptr<CopyOutputResult> result) {} 208 void EmptyCopyOutputCallback(std::unique_ptr<CopyOutputResult> result) {}
209 209
210 void LayerTestCommon::LayerImplTest::RequestCopyOfOutput() { 210 void LayerTestCommon::LayerImplTest::RequestCopyOfOutput() {
211 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; 211 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests;
212 copy_requests.push_back( 212 copy_requests.push_back(
213 CopyOutputRequest::CreateRequest(base::Bind(&EmptyCopyOutputCallback))); 213 CopyOutputRequest::CreateRequest(base::Bind(&EmptyCopyOutputCallback)));
214 root_layer()->PassCopyRequests(&copy_requests); 214 root_layer()->PassCopyRequests(&copy_requests);
215 } 215 }
216 216
217 } // namespace cc 217 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_position_constraint_unittest.cc ('k') | cc/test/layer_tree_host_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698