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

Unified Diff: cc/layers/layer_impl.cc

Issue 2184773002: cc: Move blend_mode to the effect tree (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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_impl.h ('k') | cc/layers/layer_impl_test_properties.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer_impl.cc
diff --git a/cc/layers/layer_impl.cc b/cc/layers/layer_impl.cc
index 44260b61df4e467d9ac9edc6a4decd926d07909b..72eed8c06e7555bef7a8a91df55fbc23800dbce1 100644
--- a/cc/layers/layer_impl.cc
+++ b/cc/layers/layer_impl.cc
@@ -69,7 +69,6 @@ LayerImpl::LayerImpl(LayerTreeImpl* tree_impl, int id)
was_ever_ready_since_last_transform_animation_(true),
background_color_(0),
safe_opaque_background_color_(0),
- blend_mode_(SkXfermode::kSrcOver_Mode),
draw_blend_mode_(SkXfermode::kSrcOver_Mode),
transform_tree_index_(-1),
effect_tree_index_(-1),
@@ -350,7 +349,6 @@ void LayerImpl::PushPropertiesTo(LayerImpl* layer) {
layer->touch_event_handler_region_ = touch_event_handler_region_;
layer->background_color_ = background_color_;
layer->safe_opaque_background_color_ = safe_opaque_background_color_;
- layer->blend_mode_ = blend_mode_;
layer->draw_blend_mode_ = draw_blend_mode_;
layer->position_ = position_;
layer->transform_ = transform_;
@@ -862,10 +860,6 @@ void LayerImpl::SetMutableProperties(uint32_t properties) {
layer_tree_impl_->AddToElementMap(this);
}
-void LayerImpl::SetBlendMode(SkXfermode::Mode blend_mode) {
- blend_mode_ = blend_mode;
-}
-
void LayerImpl::SetPosition(const gfx::PointF& position) {
position_ = position;
}
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/layer_impl_test_properties.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698