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

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

Issue 2017263002: cc: Move copy requests from layers to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix typo in comment Created 4 years, 6 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/test/fake_layer_tree_host.cc ('k') | cc/trees/draw_property_utils.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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(&copy_requests);
216 } 214 }
217 215
218 } // namespace cc 216 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/fake_layer_tree_host.cc ('k') | cc/trees/draw_property_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698