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

Unified Diff: cc/test/fake_picture_layer_tiling_client.cc

Issue 820703002: c:: Give the raster source to the PictureLayerTilings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rastersource: . Created 6 years 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_layer_tiling_client.h ('k') | cc/test/fake_picture_pile_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_tiling_client.cc
diff --git a/cc/test/fake_picture_layer_tiling_client.cc b/cc/test/fake_picture_layer_tiling_client.cc
index 7fa410275eb9e4fdb277bb029b097ec29d528ef5..293d4f6563e82ad1cf0fe684fa7fdc55bce5bb06 100644
--- a/cc/test/fake_picture_layer_tiling_client.cc
+++ b/cc/test/fake_picture_layer_tiling_client.cc
@@ -17,7 +17,6 @@ FakePictureLayerTilingClient::FakePictureLayerTilingClient()
twin_set_(nullptr),
twin_tiling_(nullptr),
recycled_twin_tiling_(nullptr),
- allow_create_tile_(true),
max_tile_priority_bin_(TilePriority::NOW) {
}
@@ -31,7 +30,6 @@ FakePictureLayerTilingClient::FakePictureLayerTilingClient(
twin_set_(nullptr),
twin_tiling_(nullptr),
recycled_twin_tiling_(nullptr),
- allow_create_tile_(true),
max_tile_priority_bin_(TilePriority::NOW) {
}
@@ -39,10 +37,8 @@ FakePictureLayerTilingClient::~FakePictureLayerTilingClient() {
}
scoped_refptr<Tile> FakePictureLayerTilingClient::CreateTile(
- PictureLayerTiling*,
+ float content_scale,
const gfx::Rect& rect) {
- if (!allow_create_tile_)
- return scoped_refptr<Tile>();
return tile_manager_->CreateTile(pile_.get(), tile_size_, rect, 1, 0, 0, 0);
}
« no previous file with comments | « cc/test/fake_picture_layer_tiling_client.h ('k') | cc/test/fake_picture_pile_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698