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

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: merge 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
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager_perftest.cc
diff --git a/cc/resources/tile_manager_perftest.cc b/cc/resources/tile_manager_perftest.cc
index ae95212068d2d3f703529fcf6c25e6564c789f14..47088d7032ba6b70cabb423696076b1cfa3532f6 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);
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/resources/tile_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698