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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 839143002: Roll Chrome into Mojo. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 11 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/layers/picture_layer_impl.cc ('k') | cc/layers/surface_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_unittest.cc
diff --git a/cc/layers/picture_layer_impl_unittest.cc b/cc/layers/picture_layer_impl_unittest.cc
index 695ccd2ee08762bbeffce14fad2748677da200a5..9814cad36ce3578b2c61b0e84726425c9de1d0a7 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -1613,10 +1613,10 @@ TEST_F(NoLowResPictureLayerImplTest, MarkRequiredOffscreenTiles) {
int num_visible = 0;
int num_offscreen = 0;
- for (PictureLayerTiling::TilingRasterTileIterator iter(
- pending_layer_->HighResTiling());
- iter; ++iter) {
- const Tile* tile = *iter;
+ scoped_ptr<TilingSetRasterQueue> queue =
+ pending_layer_->CreateRasterQueue(false);
+ for (; !queue->IsEmpty(); queue->Pop()) {
+ const Tile* tile = queue->Top();
DCHECK(tile);
if (tile->priority(PENDING_TREE).distance_to_visible == 0.f) {
EXPECT_TRUE(tile->required_for_activation());
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/layers/surface_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698