| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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(©_requests); | 214 root_layer()->PassCopyRequests(©_requests); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace cc | 217 } // namespace cc |
| OLD | NEW |