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

Unified Diff: ui/compositor/layer.cc

Issue 1912893002: cc : Stop pushing properties not used by LayerImpl to LayerImpl. (2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 | « ui/compositor/layer.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer.cc
diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
index 0063e879fe924bb7437122fff844bc1d208e9504..3f23c9cc4eeee5b95b0f3197d3fb85a3ab4636a1 100644
--- a/ui/compositor/layer.cc
+++ b/ui/compositor/layer.cc
@@ -54,7 +54,6 @@ Layer::Layer()
compositor_(NULL),
parent_(NULL),
visible_(true),
- force_render_surface_(false),
fills_bounds_opaquely_(true),
fills_bounds_completely_(false),
background_blur_radius_(0),
@@ -78,7 +77,6 @@ Layer::Layer(LayerType type)
compositor_(NULL),
parent_(NULL),
visible_(true),
- force_render_surface_(false),
fills_bounds_opaquely_(true),
fills_bounds_completely_(false),
background_blur_radius_(0),
@@ -509,7 +507,6 @@ void Layer::SwitchToLayer(scoped_refptr<cc::Layer> new_layer) {
cc_layer_->SetLayerClient(this);
cc_layer_->SetTransformOrigin(gfx::Point3F());
cc_layer_->SetContentsOpaque(fills_bounds_opaquely_);
- cc_layer_->SetForceRenderSurface(force_render_surface_);
cc_layer_->SetIsDrawable(type_ != LAYER_NOT_DRAWN);
cc_layer_->SetHideLayerAndSubtree(!visible_);
@@ -771,14 +768,6 @@ bool Layer::PrepareTextureMailbox(
return true;
}
-void Layer::SetForceRenderSurface(bool force) {
- if (force_render_surface_ == force)
- return;
-
- force_render_surface_ = force;
- cc_layer_->SetForceRenderSurface(force_render_surface_);
-}
-
class LayerDebugInfo : public base::trace_event::ConvertableToTraceFormat {
public:
explicit LayerDebugInfo(const std::string& name) : name_(name) {}
« no previous file with comments | « ui/compositor/layer.h ('k') | ui/compositor/layer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698