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

Unified Diff: cc/output/delegating_renderer_unittest.cc

Issue 23023005: cc: refcount resources as we send them to the parent (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nits Created 7 years, 4 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/layers/delegated_renderer_layer.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/output/delegating_renderer_unittest.cc
diff --git a/cc/output/delegating_renderer_unittest.cc b/cc/output/delegating_renderer_unittest.cc
index 6cb532fe86bf0acb8b5ec35b264e3dd7b6f59f3c..b1e7c771a8e187e7f1c6cff60bb2514f5abaef02 100644
--- a/cc/output/delegating_renderer_unittest.cc
+++ b/cc/output/delegating_renderer_unittest.cc
@@ -129,11 +129,12 @@ class DelegatingRendererTestResources : public DelegatingRendererTest {
EXPECT_EQ(2u, last_frame.delegated_frame_data->render_pass_list.size());
// Each render pass has 10 resources in it. And the root render pass has a
- // mask resource used when drawing the child render pass. The number 10 may
- // change if AppendOneOfEveryQuadType() is updated, and the value here
- // should be updated accordingly.
+ // mask resource used when drawing the child render pass, as well as its
+ // replica (it's added twice). The number 10 may change if
+ // AppendOneOfEveryQuadType() is updated, and the value here should be
+ // updated accordingly.
EXPECT_EQ(
- 21u, last_frame.delegated_frame_data->resource_list.size());
+ 22u, last_frame.delegated_frame_data->resource_list.size());
EndTest();
}
« no previous file with comments | « cc/layers/delegated_renderer_layer.cc ('k') | cc/resources/resource_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698