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

Unified Diff: cc/layers/picture_layer_impl_perftest.cc

Issue 1362663002: cc: Remove PicturePile and PicturePileImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and update Created 5 years, 3 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.h ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/picture_layer_impl_perftest.cc
diff --git a/cc/layers/picture_layer_impl_perftest.cc b/cc/layers/picture_layer_impl_perftest.cc
index 9e7d82bf6fc33e20e7b0f7bce47a2819c973b113..371f8a61967a1399852268e9c2c131fd61972f1e 100644
--- a/cc/layers/picture_layer_impl_perftest.cc
+++ b/cc/layers/picture_layer_impl_perftest.cc
@@ -6,11 +6,11 @@
#include "base/thread_task_runner_handle.h"
#include "cc/debug/lap_timer.h"
+#include "cc/test/fake_display_list_raster_source.h"
#include "cc/test/fake_impl_proxy.h"
#include "cc/test/fake_layer_tree_host_impl.h"
#include "cc/test/fake_output_surface.h"
#include "cc/test/fake_picture_layer_impl.h"
-#include "cc/test/fake_picture_pile_impl.h"
#include "cc/test/test_shared_bitmap_manager.h"
#include "cc/test/test_task_graph_runner.h"
#include "cc/tiles/tiling_set_raster_queue_all.h"
@@ -53,15 +53,15 @@ class PictureLayerImplPerfTest : public testing::Test {
host_impl_.InitializeRenderer(FakeOutputSurface::Create3d());
}
- void SetupActiveTree(const gfx::Size& layer_bounds,
- const gfx::Size& tile_size) {
- scoped_refptr<FakePicturePileImpl> pile =
- FakePicturePileImpl::CreateFilledPile(tile_size, layer_bounds);
+ void SetupActiveTree(const gfx::Size& layer_bounds) {
+ scoped_refptr<FakeDisplayListRasterSource> raster_source =
+ FakeDisplayListRasterSource::CreateFilled(layer_bounds);
LayerTreeImpl* active_tree = host_impl_.active_tree();
active_tree->DetachLayerTree();
scoped_ptr<FakePictureLayerImpl> active_layer =
- FakePictureLayerImpl::CreateWithRasterSource(active_tree, 7, pile);
+ FakePictureLayerImpl::CreateWithRasterSource(active_tree, 7,
+ raster_source);
active_layer->SetDrawsContent(true);
active_layer->SetHasRenderSurface(true);
active_tree->SetRootLayer(active_layer.Pass());
@@ -173,7 +173,7 @@ class PictureLayerImplPerfTest : public testing::Test {
};
TEST_F(PictureLayerImplPerfTest, TilingSetRasterQueueConstructAndIterate) {
- SetupActiveTree(gfx::Size(10000, 10000), gfx::Size(256, 256));
+ SetupActiveTree(gfx::Size(10000, 10000));
float low_res_factor = host_impl_.settings().low_res_contents_scale_factor;
@@ -190,7 +190,7 @@ TEST_F(PictureLayerImplPerfTest, TilingSetRasterQueueConstructAndIterate) {
}
TEST_F(PictureLayerImplPerfTest, TilingSetRasterQueueConstruct) {
- SetupActiveTree(gfx::Size(10000, 10000), gfx::Size(256, 256));
+ SetupActiveTree(gfx::Size(10000, 10000));
float low_res_factor = host_impl_.settings().low_res_contents_scale_factor;
@@ -206,7 +206,7 @@ TEST_F(PictureLayerImplPerfTest, TilingSetRasterQueueConstruct) {
}
TEST_F(PictureLayerImplPerfTest, TilingSetEvictionQueueConstructAndIterate) {
- SetupActiveTree(gfx::Size(10000, 10000), gfx::Size(256, 256));
+ SetupActiveTree(gfx::Size(10000, 10000));
float low_res_factor = host_impl_.settings().low_res_contents_scale_factor;
@@ -231,7 +231,7 @@ TEST_F(PictureLayerImplPerfTest, TilingSetEvictionQueueConstructAndIterate) {
}
TEST_F(PictureLayerImplPerfTest, TilingSetEvictionQueueConstruct) {
- SetupActiveTree(gfx::Size(10000, 10000), gfx::Size(256, 256));
+ SetupActiveTree(gfx::Size(10000, 10000));
float low_res_factor = host_impl_.settings().low_res_contents_scale_factor;
« no previous file with comments | « cc/layers/picture_layer_impl.h ('k') | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698