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

Unified Diff: cc/layers/picture_layer_impl.cc

Issue 1274693004: cc: Declare high res tilings to not have low res content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: waseverlowres: . Created 5 years, 4 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 | « no previous file | 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.cc
diff --git a/cc/layers/picture_layer_impl.cc b/cc/layers/picture_layer_impl.cc
index 353e670d510e5c71ad5fe1a369e7f6fd79837b88..53a6a0a836b5c0a2a782c4e85745385e6dc5f733 100644
--- a/cc/layers/picture_layer_impl.cc
+++ b/cc/layers/picture_layer_impl.cc
@@ -813,10 +813,13 @@ void PictureLayerImpl::AddTilingsForRasterScale() {
if (!high_res) {
// We always need a high res tiling, so create one if it doesn't exist.
high_res = AddTiling(raster_contents_scale_);
- } else if (high_res->was_ever_low_resolution()) {
+ } else if (high_res->may_contain_low_resolution_tiles()) {
// If the tiling we find here was LOW_RESOLUTION previously, it may not be
// fully rastered, so destroy the old tiles.
high_res->Reset();
+ // Reset the flag now that we'll make it high res, it will have fully
+ // rastered content.
+ high_res->reset_may_contain_low_resolution_tiles();
}
high_res->set_resolution(HIGH_RESOLUTION);
« no previous file with comments | « no previous file | cc/layers/picture_layer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698