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

Unified Diff: cc/tiles/picture_layer_tiling.h

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 | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/picture_layer_tiling.h
diff --git a/cc/tiles/picture_layer_tiling.h b/cc/tiles/picture_layer_tiling.h
index a4e67d19fc944b9f88559ddef7f1bbc9d2c3f045..a0693d22a438bfc4e3b48188994a0256e71b4d59 100644
--- a/cc/tiles/picture_layer_tiling.h
+++ b/cc/tiles/picture_layer_tiling.h
@@ -113,10 +113,15 @@ class CC_EXPORT PictureLayerTiling {
void set_resolution(TileResolution resolution) {
resolution_ = resolution;
- was_ever_low_resolution_ |= resolution == LOW_RESOLUTION;
+ may_contain_low_resolution_tiles_ |= resolution == LOW_RESOLUTION;
}
TileResolution resolution() const { return resolution_; }
- bool was_ever_low_resolution() const { return was_ever_low_resolution_; }
+ bool may_contain_low_resolution_tiles() const {
+ return may_contain_low_resolution_tiles_;
+ }
+ void reset_may_contain_low_resolution_tiles() {
+ may_contain_low_resolution_tiles_ = false;
+ }
void set_can_require_tiles_for_activation(bool can_require_tiles) {
can_require_tiles_for_activation_ = can_require_tiles;
}
@@ -373,7 +378,7 @@ class CC_EXPORT PictureLayerTiling {
const WhichTree tree_;
scoped_refptr<RasterSource> raster_source_;
TileResolution resolution_;
- bool was_ever_low_resolution_;
+ bool may_contain_low_resolution_tiles_;
// Internal data.
TilingData tiling_data_;
« no previous file with comments | « cc/layers/picture_layer_impl_unittest.cc ('k') | cc/tiles/picture_layer_tiling.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698