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

Unified Diff: cc/paint/discardable_image_map_unittest.cc

Issue 2881063003: cc: Change RTree::Search to return results, add comments, more tests. (Closed)
Patch Set: Created 3 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/paint/discardable_image_map_unittest.cc
diff --git a/cc/paint/discardable_image_map_unittest.cc b/cc/paint/discardable_image_map_unittest.cc
index 015e539141cae96a76a2d6df1e93cb68f314d47e..06800169162c97c3ea7f24bbff491078e9bed364 100644
--- a/cc/paint/discardable_image_map_unittest.cc
+++ b/cc/paint/discardable_image_map_unittest.cc
@@ -66,8 +66,7 @@ class DiscardableImageMapTest : public testing::Test {
image_map.GetDiscardableImagesInRect(rect, 1.f, target_color_space,
&draw_images);
- std::vector<size_t> indices;
- image_map.images_rtree_.Search(rect, &indices);
+ std::vector<size_t> indices = image_map.images_rtree_.Search(rect);
danakj 2017/05/15 20:35:34 as well here if u want
vmpstr 2017/05/15 20:46:34 Done.
std::vector<PositionScaleDrawImage> position_draw_images;
for (size_t index : indices) {
position_draw_images.push_back(

Powered by Google App Engine
This is Rietveld 408576698