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

Unified Diff: cc/trees/layer_tree_host_unittest.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/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/layer_tree_host_unittest.cc
diff --git a/cc/trees/layer_tree_host_unittest.cc b/cc/trees/layer_tree_host_unittest.cc
index 1481b99550feb70749e4acee17f94a34ffad82d9..c5cf51921caf29914347709dd1f0e90dc4b6a8a3 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -38,7 +38,6 @@
#include "cc/test/fake_painted_scrollbar_layer.h"
#include "cc/test/fake_picture_layer.h"
#include "cc/test/fake_picture_layer_impl.h"
-#include "cc/test/fake_picture_pile.h"
#include "cc/test/fake_proxy.h"
#include "cc/test/fake_scoped_ui_resource.h"
#include "cc/test/fake_video_frame_provider.h"
@@ -1150,17 +1149,17 @@ class LayerTreeHostTestDamageWithScale : public LayerTreeHostTest {
void SetupTree() override {
client_.set_fill_with_nonsolid_color(true);
- scoped_ptr<FakePicturePile> pile(
- new FakePicturePile(LayerTreeSettings().minimum_contents_scale,
- LayerTreeSettings().default_tile_grid_size));
+ scoped_ptr<FakeDisplayListRecordingSource> recording(
+ new FakeDisplayListRecordingSource(
+ LayerTreeSettings().default_tile_grid_size));
root_layer_ = FakePictureLayer::CreateWithRecordingSource(
- layer_settings(), &client_, pile.Pass());
+ layer_settings(), &client_, recording.Pass());
root_layer_->SetBounds(gfx::Size(50, 50));
- pile.reset(new FakePicturePile(LayerTreeSettings().minimum_contents_scale,
- LayerTreeSettings().default_tile_grid_size));
+ recording.reset(new FakeDisplayListRecordingSource(
+ LayerTreeSettings().default_tile_grid_size));
child_layer_ = FakePictureLayer::CreateWithRecordingSource(
- layer_settings(), &client_, pile.Pass());
+ layer_settings(), &client_, recording.Pass());
child_layer_->SetBounds(gfx::Size(25, 25));
child_layer_->SetIsDrawable(true);
child_layer_->SetContentsOpaque(true);
@@ -4933,13 +4932,13 @@ class LayerTreeHostTestCrispUpAfterPinchEnds : public LayerTreeHostTest {
pinch->SetIsContainerForFixedPositionLayers(true);
root->AddChild(pinch);
- scoped_ptr<FakePicturePile> pile(
- new FakePicturePile(LayerTreeSettings().minimum_contents_scale,
- LayerTreeSettings().default_tile_grid_size));
- pile->SetPlaybackAllowedEvent(&playback_allowed_event_);
+ scoped_ptr<FakeDisplayListRecordingSource> recording(
+ new FakeDisplayListRecordingSource(
+ LayerTreeSettings().default_tile_grid_size));
+ recording->SetPlaybackAllowedEvent(&playback_allowed_event_);
scoped_refptr<FakePictureLayer> layer =
FakePictureLayer::CreateWithRecordingSource(layer_settings(), &client_,
- pile.Pass());
+ recording.Pass());
layer->SetBounds(gfx::Size(500, 500));
layer->SetContentsOpaque(true);
// Avoid LCD text on the layer so we don't cause extra commits when we
@@ -5137,12 +5136,12 @@ class RasterizeWithGpuRasterizationCreatesResources : public LayerTreeHostTest {
scoped_refptr<Layer> root = Layer::Create(layer_settings());
root->SetBounds(gfx::Size(500, 500));
- scoped_ptr<FakePicturePile> pile(
- new FakePicturePile(LayerTreeSettings().minimum_contents_scale,
- LayerTreeSettings().default_tile_grid_size));
+ scoped_ptr<FakeDisplayListRecordingSource> recording(
+ new FakeDisplayListRecordingSource(
+ LayerTreeSettings().default_tile_grid_size));
scoped_refptr<FakePictureLayer> layer =
FakePictureLayer::CreateWithRecordingSource(layer_settings(), &client_,
- pile.Pass());
+ recording.Pass());
layer->SetBounds(gfx::Size(500, 500));
layer->SetContentsOpaque(true);
root->AddChild(layer);
@@ -5179,12 +5178,12 @@ class GpuRasterizationRasterizesBorderTiles : public LayerTreeHostTest {
void SetupTree() override {
client_.set_fill_with_nonsolid_color(true);
- scoped_ptr<FakePicturePile> pile(
- new FakePicturePile(LayerTreeSettings().minimum_contents_scale,
- LayerTreeSettings().default_tile_grid_size));
+ scoped_ptr<FakeDisplayListRecordingSource> recording(
+ new FakeDisplayListRecordingSource(
+ LayerTreeSettings().default_tile_grid_size));
scoped_refptr<FakePictureLayer> root =
FakePictureLayer::CreateWithRecordingSource(layer_settings(), &client_,
- pile.Pass());
+ recording.Pass());
root->SetBounds(gfx::Size(10000, 10000));
root->SetContentsOpaque(true);
@@ -5232,13 +5231,13 @@ class LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles
pinch->SetIsContainerForFixedPositionLayers(true);
root->AddChild(pinch);
- scoped_ptr<FakePicturePile> pile(
- new FakePicturePile(LayerTreeSettings().minimum_contents_scale,
- LayerTreeSettings().default_tile_grid_size));
- pile->SetPlaybackAllowedEvent(&playback_allowed_event_);
+ scoped_ptr<FakeDisplayListRecordingSource> recording(
+ new FakeDisplayListRecordingSource(
+ LayerTreeSettings().default_tile_grid_size));
+ recording->SetPlaybackAllowedEvent(&playback_allowed_event_);
scoped_refptr<FakePictureLayer> layer =
FakePictureLayer::CreateWithRecordingSource(layer_settings(), &client_,
- pile.Pass());
+ recording.Pass());
layer->SetBounds(gfx::Size(500, 500));
layer->SetContentsOpaque(true);
// Avoid LCD text on the layer so we don't cause extra commits when we
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698