summaryrefslogtreecommitdiffstats
path: root/cc/resources/managed_tile_state.h
diff options
context:
space:
mode:
authorvmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-13 19:34:10 +0000
committervmpstr@chromium.org <vmpstr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-13 19:34:10 +0000
commitda9c84a3699e85b4c32c817313dd4652c5ecbab8 (patch)
treed9172ee4283d94732a7ed8cca85e1461d205423d /cc/resources/managed_tile_state.h
parentceea12202cd521eb7c11ec76842a3de65f54b883 (diff)
downloadchromium_src-da9c84a3699e85b4c32c817313dd4652c5ecbab8.zip
chromium_src-da9c84a3699e85b4c32c817313dd4652c5ecbab8.tar.gz
chromium_src-da9c84a3699e85b4c32c817313dd4652c5ecbab8.tar.bz2
cc: Remove analysis from tile manager
Analysis is only used by the raster task. It's the part that fills in the analysis, and it's also the part that consumes it. I think it makes sense moving it deeper in, instead of allocating it early and passing it around. BUG=248765 Review URL: https://chromiumcodereview.appspot.com/16341005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206134 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/resources/managed_tile_state.h')
-rw-r--r--cc/resources/managed_tile_state.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/cc/resources/managed_tile_state.h b/cc/resources/managed_tile_state.h
index 371f129..200997b 100644
--- a/cc/resources/managed_tile_state.h
+++ b/cc/resources/managed_tile_state.h
@@ -90,6 +90,10 @@ class CC_EXPORT ManagedTileState {
resource_id_ = 0;
}
+ void set_has_text(bool has_text) {
+ has_text_ = has_text;
+ }
+
void set_rasterize_on_demand() {
mode_ = PICTURE_PILE_MODE;
resource_id_ = 0;
@@ -97,6 +101,7 @@ class CC_EXPORT ManagedTileState {
Mode mode_;
SkColor solid_color_;
+ bool has_text_;
// TODO(reveman): Eliminate the need for |resource_id_|
// and |resource_format_| and | forced_upload_| by re-factoring
@@ -119,9 +124,6 @@ class CC_EXPORT ManagedTileState {
TileVersion tile_versions[NUM_RASTER_MODES];
RasterMode raster_mode;
- bool picture_pile_analyzed;
- PicturePileImpl::Analysis picture_pile_analysis;
-
// Ephemeral state, valid only during TileManager::ManageTiles.
bool is_in_never_bin_on_both_trees() const {
return bin[HIGH_PRIORITY_BIN] == NEVER_BIN &&