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

Unified Diff: cc/test/fake_picture_layer_impl.cc

Issue 540663002: cc: Don't require low res to activate for shared ready-to-draw tiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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/test/fake_picture_layer_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/fake_picture_layer_impl.cc
diff --git a/cc/test/fake_picture_layer_impl.cc b/cc/test/fake_picture_layer_impl.cc
index 78924cdaa93b78d4394e7e1e76667de4ddfac15a..98e0f6e58554b202d74fce8311bdcc571691744e 100644
--- a/cc/test/fake_picture_layer_impl.cc
+++ b/cc/test/fake_picture_layer_impl.cc
@@ -140,13 +140,17 @@ void FakePictureLayerImpl::SetAllTilesReadyInTiling(
std::vector<Tile*> tiles = tiling->AllTilesForTesting();
for (size_t tile_idx = 0; tile_idx < tiles.size(); ++tile_idx) {
Tile* tile = tiles[tile_idx];
- ManagedTileState& state = tile->managed_state();
- for (size_t mode_idx = 0; mode_idx < NUM_RASTER_MODES; ++mode_idx)
- state.tile_versions[mode_idx].SetSolidColorForTesting(true);
- DCHECK(tile->IsReadyToDraw());
+ SetTileReady(tile);
}
}
+void FakePictureLayerImpl::SetTileReady(Tile* tile) {
+ ManagedTileState& state = tile->managed_state();
+ for (size_t mode_idx = 0; mode_idx < NUM_RASTER_MODES; ++mode_idx)
+ state.tile_versions[mode_idx].SetSolidColorForTesting(true);
+ DCHECK(tile->IsReadyToDraw());
+}
+
void FakePictureLayerImpl::CreateDefaultTilingsAndTiles() {
layer_tree_impl()->UpdateDrawProperties();
« no previous file with comments | « cc/test/fake_picture_layer_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698