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

Unified Diff: cc/resources/tile_manager_unittest.cc

Issue 69343005: Added preliminary support for tile rasterization with Ganesh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase (ScopedResource). Created 7 years 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/test/fake_tile_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/tile_manager_unittest.cc
diff --git a/cc/resources/tile_manager_unittest.cc b/cc/resources/tile_manager_unittest.cc
index fd74c3f01eef3dbf359544554b009a4453fb2060..13c08ce23b63970c0df1a579de94c590ba7c109b 100644
--- a/cc/resources/tile_manager_unittest.cc
+++ b/cc/resources/tile_manager_unittest.cc
@@ -533,6 +533,21 @@ INSTANTIATE_TEST_CASE_P(TileManagerTests,
TileManagerTest,
::testing::Values(true, false));
+TEST_P(TileManagerTest, TileManagerGpuRasterizationRouting) {
+ // Ensure that tiles marked for gpu rasterization
+ // get sent to the GpuRasterizer.
+
+ Initialize(3, ALLOW_ABSOLUTE_MINIMUM, SMOOTHNESS_TAKES_PRIORITY);
+ TileVector active_now =
+ CreateTiles(3, TilePriorityForNowBin(), TilePriority());
+ active_now[0]->set_use_gpu_rasterizer(true);
+ active_now[1]->set_use_gpu_rasterizer(true);
+
+ tile_manager()->ManageTiles(global_state_);
+ EXPECT_EQ(2, tile_manager()->CompletedGpuRasterizedTiles());
+ tile_manager()->CheckForCompletedTasks();
+}
+
} // namespace
} // namespace cc
« no previous file with comments | « cc/resources/tile_manager.cc ('k') | cc/test/fake_tile_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698