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

Unified Diff: cc/layers/layer.cc

Issue 2745913003: Delete preferred raster bounds code. (Closed)
Patch Set: none Created 3 years, 9 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/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « cc/layers/layer.h ('k') | cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698