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

Unified Diff: cc/resources/tile_manager_perftest.cc

Issue 1130123003: cc: Separate the priority from the tile and put in new PrioritizedTile (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make reviewer happier Created 5 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/resources/tile_manager_perftest.cc
diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc
index 09136668e7794deb34cc9857692951599d755ae8..fd7cfe0e474c5748b6cd0faaf8ec3a83cac61c8e 100644
--- a/cc/resources/tile_manager_perftest.cc
+++ b/cc/resources/tile_manager_perftest.cc
@@ -221,7 +221,7 @@ class TileManagerPerfTest : public testing::Test {
priorities[priority_count], RasterTilePriorityQueue::Type::ALL));
while (count--) {
ASSERT_FALSE(queue->IsEmpty());
- ASSERT_TRUE(queue->Top() != NULL);
+ ASSERT_TRUE(queue->Top().tile());
queue->Pop();
}
priority_count = (priority_count + 1) % arraysize(priorities);
@@ -296,7 +296,7 @@ class TileManagerPerfTest : public testing::Test {
host_impl_.BuildEvictionQueue(priorities[priority_count]));
while (count--) {
ASSERT_FALSE(queue->IsEmpty());
- ASSERT_TRUE(queue->Top() != NULL);
+ ASSERT_TRUE(queue->Top().tile());
queue->Pop();
}
priority_count = (priority_count + 1) % arraysize(priorities);

Powered by Google App Engine
This is Rietveld 408576698