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

Unified Diff: trunk/src/cc/layers/layer.cc

Issue 16146007: Revert 202580 "Add CompositingReasons to compositor layer types." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 7 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 | « trunk/src/cc/layers/layer.h ('k') | trunk/src/cc/layers/layer_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/cc/layers/layer.cc
===================================================================
--- trunk/src/cc/layers/layer.cc (revision 202662)
+++ trunk/src/cc/layers/layer.cc (working copy)
@@ -40,7 +40,6 @@
have_wheel_event_handlers_(false),
anchor_point_(0.5f, 0.5f),
background_color_(0),
- compositing_reasons_(kCompositingReasonUnknown),
opacity_(1.f),
anchor_point_z_(0.f),
is_container_for_fixed_position_layers_(false),
@@ -644,7 +643,6 @@
layer->SetContentBounds(content_bounds());
layer->SetContentsScale(contents_scale_x(), contents_scale_y());
layer->SetDebugName(debug_name_);
- layer->SetCompositingReasons(compositing_reasons_);
layer->SetDoubleSided(double_sided_);
layer->SetDrawCheckerboardForMissingTiles(
draw_checkerboard_for_missing_tiles_);
@@ -751,11 +749,6 @@
SetNeedsCommit();
}
-void Layer::SetCompositingReasons(CompositingReasons reasons) {
- compositing_reasons_ = reasons;
- SetNeedsCommit();
-}
-
void Layer::CreateRenderSurface() {
DCHECK(!draw_properties_.render_surface);
draw_properties_.render_surface = make_scoped_ptr(new RenderSurface(this));
« no previous file with comments | « trunk/src/cc/layers/layer.h ('k') | trunk/src/cc/layers/layer_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698