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

Unified Diff: cc/trees/layer_tree_host_unittest.cc

Issue 811953005: cc: Remove tile and scale specific code from raster source (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updated some newer tests 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/test/fake_picture_pile_impl.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 093878e58a238f1b4db10ea0915033991031be6e..5299d701430a0e83597a44ba09844a450c3094ee 100644
--- a/cc/trees/layer_tree_host_unittest.cc
+++ b/cc/trees/layer_tree_host_unittest.cc
@@ -43,6 +43,7 @@
#include "cc/test/fake_scoped_ui_resource.h"
#include "cc/test/fake_video_frame_provider.h"
#include "cc/test/geometry_test_utils.h"
+#include "cc/test/impl_side_painting_settings.h"
#include "cc/test/layer_tree_test.h"
#include "cc/test/test_shared_bitmap_manager.h"
#include "cc/test/test_web_graphics_context_3d.h"
@@ -5573,7 +5574,9 @@ class LayerTreeHostTestCrispUpAfterPinchEnds : public LayerTreeHostTest {
pinch->SetIsContainerForFixedPositionLayers(true);
root->AddChild(pinch);
- scoped_ptr<FakePicturePile> pile(new FakePicturePile);
+ scoped_ptr<FakePicturePile> pile(
+ new FakePicturePile(ImplSidePaintingSettings().minimum_contents_scale,
+ ImplSidePaintingSettings().default_tile_grid_size));
pile->SetPlaybackAllowedEvent(&playback_allowed_event_);
scoped_refptr<FakePictureLayer> layer =
FakePictureLayer::CreateWithRecordingSource(&client_, pile.Pass());
@@ -5776,7 +5779,9 @@ class RasterizeWithGpuRasterizationCreatesResources : public LayerTreeHostTest {
scoped_refptr<Layer> root = Layer::Create();
root->SetBounds(gfx::Size(500, 500));
- scoped_ptr<FakePicturePile> pile(new FakePicturePile);
+ scoped_ptr<FakePicturePile> pile(
+ new FakePicturePile(ImplSidePaintingSettings().minimum_contents_scale,
+ ImplSidePaintingSettings().default_tile_grid_size));
scoped_refptr<FakePictureLayer> layer =
FakePictureLayer::CreateWithRecordingSource(&client_, pile.Pass());
layer->SetBounds(gfx::Size(500, 500));
@@ -5816,7 +5821,9 @@ class GpuRasterizationRasterizesVisibleOnly : public LayerTreeHostTest {
void SetupTree() override {
client_.set_fill_with_nonsolid_color(true);
- scoped_ptr<FakePicturePile> pile(new FakePicturePile);
+ scoped_ptr<FakePicturePile> pile(
+ new FakePicturePile(ImplSidePaintingSettings().minimum_contents_scale,
+ ImplSidePaintingSettings().default_tile_grid_size));
scoped_refptr<FakePictureLayer> root =
FakePictureLayer::CreateWithRecordingSource(&client_, pile.Pass());
root->SetBounds(gfx::Size(viewport_size_.width(), 10000));
@@ -5886,7 +5893,9 @@ class LayerTreeHostTestContinuousDrawWhenCreatingVisibleTiles
pinch->SetIsContainerForFixedPositionLayers(true);
root->AddChild(pinch);
- scoped_ptr<FakePicturePile> pile(new FakePicturePile);
+ scoped_ptr<FakePicturePile> pile(
+ new FakePicturePile(ImplSidePaintingSettings().minimum_contents_scale,
+ ImplSidePaintingSettings().default_tile_grid_size));
pile->SetPlaybackAllowedEvent(&playback_allowed_event_);
scoped_refptr<FakePictureLayer> layer =
FakePictureLayer::CreateWithRecordingSource(&client_, pile.Pass());
« no previous file with comments | « cc/test/fake_picture_pile_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698