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

Unified 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: 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 side-by-side diff with in-line comments
Download patch
Index: cc/test/layer_test_common.cc
diff --git a/cc/test/layer_test_common.cc b/cc/test/layer_test_common.cc
index a5d8e221e1243cded78a8f7ee8b25634f8fb7d73..ea49f5f1eab3832ea6b890dc2dd5c037613af001 100644
--- a/cc/test/layer_test_common.cc
+++ b/cc/test/layer_test_common.cc
@@ -209,10 +209,8 @@ void LayerTestCommon::LayerImplTest::AppendSurfaceQuadsWithOcclusion(
void EmptyCopyOutputCallback(std::unique_ptr<CopyOutputResult> result) {}
void LayerTestCommon::LayerImplTest::RequestCopyOfOutput() {
- std::vector<std::unique_ptr<CopyOutputRequest>> copy_requests;
- copy_requests.push_back(
+ root_layer()->test_properties()->copy_requests.push_back(
CopyOutputRequest::CreateRequest(base::Bind(&EmptyCopyOutputCallback)));
- root_layer()->PassCopyRequests(&copy_requests);
}
} // namespace cc

Powered by Google App Engine
This is Rietveld 408576698