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

Unified Diff: cc/layers/layer.h

Issue 2801383002: cc : Delete layer's draw blend mode (Closed)
Patch Set: . Created 3 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 | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer_impl.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/layer.h
diff --git a/cc/layers/layer.h b/cc/layers/layer.h
index b8e77778b4857ba51a52e95d07ec4f3e81e45df8..e95f7444edc7a9894817b6d96490e2f61f9d56a9 100644
--- a/cc/layers/layer.h
+++ b/cc/layers/layer.h
@@ -132,14 +132,6 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
void SetBlendMode(SkBlendMode blend_mode);
SkBlendMode blend_mode() const { return inputs_.blend_mode; }
- void set_draw_blend_mode(SkBlendMode blend_mode) {
- if (draw_blend_mode_ == blend_mode)
- return;
- draw_blend_mode_ = blend_mode;
- SetNeedsPushProperties();
- }
- SkBlendMode draw_blend_mode() const { return draw_blend_mode_; }
-
// A layer is root for an isolated group when it and all its descendants are
// drawn over a black and fully transparent background, creating an isolated
// group. It should be used along with SetBlendMode(), in order to restrict
@@ -637,9 +629,6 @@ class CC_EXPORT Layer : public base::RefCounted<Layer> {
bool is_scroll_clip_layer_ : 1;
bool needs_show_scrollbars_ : 1;
SkColor safe_opaque_background_color_;
- // draw_blend_mode may be different than blend_mode_,
- // when a RenderSurface re-parents the layer's blend_mode.
- SkBlendMode draw_blend_mode_;
std::unique_ptr<std::set<Layer*>> scroll_children_;
std::unique_ptr<std::set<Layer*>> clip_children_;
« no previous file with comments | « no previous file | cc/layers/layer.cc » ('j') | cc/layers/layer_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698