| Index: cc/layers/layer.cc
|
| diff --git a/cc/layers/layer.cc b/cc/layers/layer.cc
|
| index 04fa7f4a4236956fa9657f1ed3ae28b0479c252c..c966f75f132a66ac259d56504e5e50b3ac9e336d 100644
|
| --- a/cc/layers/layer.cc
|
| +++ b/cc/layers/layer.cc
|
| @@ -62,7 +62,6 @@ Layer::Inputs::Inputs(int layer_id)
|
| scroll_parent(nullptr),
|
| clip_parent(nullptr),
|
| has_will_change_transform_hint(false),
|
| - has_preferred_raster_bounds(false),
|
| hide_layer_and_subtree(false),
|
| client(nullptr) {}
|
|
|
| @@ -1189,10 +1188,6 @@ void Layer::PushPropertiesTo(LayerImpl* layer) {
|
| layer->SetUpdateRect(inputs_.update_rect);
|
|
|
| layer->SetHasWillChangeTransformHint(has_will_change_transform_hint());
|
| - if (has_preferred_raster_bounds())
|
| - layer->SetPreferredRasterBounds(preferred_raster_bounds());
|
| - else
|
| - layer->ClearPreferredRasterBounds();
|
| layer->SetNeedsPushProperties();
|
|
|
| // Reset any state that should be cleared for the next update.
|
| @@ -1426,24 +1421,6 @@ void Layer::SetHasWillChangeTransformHint(bool has_will_change) {
|
| SetNeedsCommit();
|
| }
|
|
|
| -void Layer::SetPreferredRasterBounds(const gfx::Size& preferred_raster_bounds) {
|
| - if (inputs_.has_preferred_raster_bounds &&
|
| - inputs_.preferred_raster_bounds == preferred_raster_bounds)
|
| - return;
|
| -
|
| - inputs_.has_preferred_raster_bounds = true;
|
| - inputs_.preferred_raster_bounds = preferred_raster_bounds;
|
| - SetNeedsCommit();
|
| -}
|
| -
|
| -void Layer::ClearPreferredRasterBounds() {
|
| - if (!inputs_.has_preferred_raster_bounds)
|
| - return;
|
| - inputs_.has_preferred_raster_bounds = false;
|
| - inputs_.preferred_raster_bounds = gfx::Size();
|
| - SetNeedsCommit();
|
| -}
|
| -
|
| MutatorHost* Layer::GetMutatorHost() const {
|
| return layer_tree_host_ ? layer_tree_host_->mutator_host() : nullptr;
|
| }
|
|
|