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

Unified Diff: cc/trees/occlusion_tracker_unittest.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, 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
« no previous file with comments | « cc/trees/occlusion_tracker.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker_unittest.cc
diff --git a/cc/trees/occlusion_tracker_unittest.cc b/cc/trees/occlusion_tracker_unittest.cc
index 28bd9ecf7c12dc0ff8041e3576ebd8c779772253..78ad3ea0d3d240655ade3a964152b97aed12eac7 100644
--- a/cc/trees/occlusion_tracker_unittest.cc
+++ b/cc/trees/occlusion_tracker_unittest.cc
@@ -214,10 +214,10 @@ class OcclusionTrackerTest : public testing::Test {
}
void AddCopyRequest(LayerImpl* layer) {
- std::vector<std::unique_ptr<CopyOutputRequest>> requests;
- requests.push_back(CopyOutputRequest::CreateBitmapRequest(base::Bind(
- &OcclusionTrackerTest::CopyOutputCallback, base::Unretained(this))));
- layer->PassCopyRequests(&requests);
+ layer->test_properties()->copy_requests.push_back(
+ CopyOutputRequest::CreateBitmapRequest(
+ base::Bind(&OcclusionTrackerTest::CopyOutputCallback,
+ base::Unretained(this))));
}
void CalcDrawEtc(TestContentLayerImpl* root) {
« no previous file with comments | « cc/trees/occlusion_tracker.cc ('k') | cc/trees/property_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698