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

Unified Diff: cc/layers/picture_layer_impl_unittest.cc

Issue 900073003: cc: Rework how picture layer tiling set gets into raster queues. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update Created 5 years, 10 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/resources/eviction_tile_priority_queue.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 d9da4d998d82b744a32df184cd9c994e59f55011..66c7baf575b3692428bd44acd61e3e7bc378cb58 100644
--- a/cc/layers/picture_layer_impl_unittest.cc
+++ b/cc/layers/picture_layer_impl_unittest.cc
@@ -1504,7 +1504,7 @@ TEST_F(PictureLayerImplTest, ReleaseResources) {
EXPECT_EQ(2u, pending_layer_->tilings()->num_tilings());
}
-TEST_F(PictureLayerImplTest, ClampTilesToToMaxTileSize) {
+TEST_F(PictureLayerImplTest, ClampTilesToMaxTileSize) {
// The default max tile size is larger than 400x400.
gfx::Size tile_size(400, 400);
gfx::Size layer_bounds(5000, 5000);
@@ -4891,8 +4891,10 @@ TEST_F(TileSizeTest, TileSizes) {
host_impl_.CreatePendingTree();
LayerTreeImpl* pending_tree = host_impl_.pending_tree();
- scoped_ptr<FakePictureLayerImpl> layer =
+ scoped_ptr<FakePictureLayerImpl> scoped_layer =
FakePictureLayerImpl::Create(pending_tree, id_);
+ FakePictureLayerImpl* layer = scoped_layer.get();
+ pending_tree->SetRootLayer(scoped_layer.Pass());
host_impl_.SetViewportSize(gfx::Size(1000, 1000));
gfx::Size result;
« no previous file with comments | « cc/layers/picture_layer_impl.cc ('k') | cc/resources/eviction_tile_priority_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698