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

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: update 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
« no previous file with comments | « cc/paint/discardable_image_map.cc ('k') | cc/paint/display_item_list.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..2918f574321750738e611098906539b4790b1c02 100644
--- a/cc/paint/discardable_image_map_unittest.cc
+++ b/cc/paint/discardable_image_map_unittest.cc
@@ -66,10 +66,8 @@ 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<PositionScaleDrawImage> position_draw_images;
- for (size_t index : indices) {
+ for (size_t index : image_map.images_rtree_.Search(rect)) {
position_draw_images.push_back(
PositionScaleDrawImage(image_map.all_images_[index].first.image(),
image_map.all_images_[index].second,
« no previous file with comments | « cc/paint/discardable_image_map.cc ('k') | cc/paint/display_item_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698