| 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 surface_impl->AppendQuads( | 202 surface_impl->AppendQuads( |
| 203 render_pass_.get(), gfx::Transform(), | 203 render_pass_.get(), gfx::Transform(), |
| 204 Occlusion(gfx::Transform(), SimpleEnclosedRegion(occluded), | 204 Occlusion(gfx::Transform(), SimpleEnclosedRegion(occluded), |
| 205 SimpleEnclosedRegion()), | 205 SimpleEnclosedRegion()), |
| 206 SK_ColorBLACK, 1.f, nullptr, &data, RenderPassId(1, 1)); | 206 SK_ColorBLACK, 1.f, nullptr, &data, RenderPassId(1, 1)); |
| 207 } | 207 } |
| 208 | 208 |
| 209 void EmptyCopyOutputCallback(std::unique_ptr<CopyOutputResult> result) {} | 209 void EmptyCopyOutputCallback(std::unique_ptr<CopyOutputResult> result) {} |
| 210 | 210 |
| 211 void LayerTestCommon::LayerImplTest::RequestCopyOfOutput() { | 211 void LayerTestCommon::LayerImplTest::RequestCopyOfOutput() { |
| 212 std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests; | 212 root_layer()->test_properties()->copy_requests.push_back( |
| 213 copy_requests.push_back( | |
| 214 CopyOutputRequest::CreateRequest(base::Bind(&EmptyCopyOutputCallback))); | 213 CopyOutputRequest::CreateRequest(base::Bind(&EmptyCopyOutputCallback))); |
| 215 root_layer()->PassCopyRequests(©_requests); | |
| 216 } | 214 } |
| 217 | 215 |
| 218 } // namespace cc | 216 } // namespace cc |
| OLD | NEW |