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

Side by Side Diff: cc/layers/layer.cc

Issue 2018833002: cc : Delete LayerImpl::opacity (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2010 The Chromium Authors. All rights reserved. 1 // Copyright 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 if (subtree_property_changed_) 1167 if (subtree_property_changed_)
1168 layer->NoteLayerPropertyChanged(); 1168 layer->NoteLayerPropertyChanged();
1169 if (!FilterIsAnimating()) 1169 if (!FilterIsAnimating())
1170 layer->SetFilters(filters_); 1170 layer->SetFilters(filters_);
1171 layer->SetBackgroundFilters(background_filters()); 1171 layer->SetBackgroundFilters(background_filters());
1172 layer->SetMasksToBounds(masks_to_bounds_); 1172 layer->SetMasksToBounds(masks_to_bounds_);
1173 layer->set_main_thread_scrolling_reasons(main_thread_scrolling_reasons_); 1173 layer->set_main_thread_scrolling_reasons(main_thread_scrolling_reasons_);
1174 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_); 1174 layer->SetNonFastScrollableRegion(non_fast_scrollable_region_);
1175 layer->SetTouchEventHandlerRegion(touch_event_handler_region_); 1175 layer->SetTouchEventHandlerRegion(touch_event_handler_region_);
1176 layer->SetContentsOpaque(contents_opaque_); 1176 layer->SetContentsOpaque(contents_opaque_);
1177 if (!OpacityIsAnimating())
1178 layer->SetOpacity(opacity_);
1179 layer->SetBlendMode(blend_mode_); 1177 layer->SetBlendMode(blend_mode_);
1180 layer->SetPosition(position_); 1178 layer->SetPosition(position_);
1181 layer->set_should_flatten_transform_from_property_tree( 1179 layer->set_should_flatten_transform_from_property_tree(
1182 should_flatten_transform_from_property_tree_); 1180 should_flatten_transform_from_property_tree_);
1183 layer->set_draw_blend_mode(draw_blend_mode_); 1181 layer->set_draw_blend_mode(draw_blend_mode_);
1184 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_); 1182 layer->SetUseParentBackfaceVisibility(use_parent_backface_visibility_);
1185 layer->SetUseLocalTransformForBackfaceVisibility( 1183 layer->SetUseLocalTransformForBackfaceVisibility(
1186 use_local_transform_for_backface_visibility_); 1184 use_local_transform_for_backface_visibility_);
1187 layer->SetShouldCheckBackfaceVisibility(should_check_backface_visibility_); 1185 layer->SetShouldCheckBackfaceVisibility(should_check_backface_visibility_);
1188 if (!TransformIsAnimating()) 1186 if (!TransformIsAnimating())
(...skipping 635 matching lines...) Expand 10 before | Expand all | Expand 10 after
1824 ->data.num_copy_requests_in_subtree; 1822 ->data.num_copy_requests_in_subtree;
1825 } 1823 }
1826 1824
1827 gfx::Transform Layer::screen_space_transform() const { 1825 gfx::Transform Layer::screen_space_transform() const {
1828 DCHECK_NE(transform_tree_index_, -1); 1826 DCHECK_NE(transform_tree_index_, -1);
1829 return draw_property_utils::ScreenSpaceTransform( 1827 return draw_property_utils::ScreenSpaceTransform(
1830 this, layer_tree_host_->property_trees()->transform_tree); 1828 this, layer_tree_host_->property_trees()->transform_tree);
1831 } 1829 }
1832 1830
1833 } // namespace cc 1831 } // namespace cc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698