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

Side by Side Diff: cc/layers/render_surface_impl.h

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, 4 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
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2011 The Chromium Authors. All rights reserved. 1 // Copyright 2011 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 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_ 5 #ifndef CC_LAYERS_RENDER_SURFACE_IMPL_H_
6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_ 6 #define CC_LAYERS_RENDER_SURFACE_IMPL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 46
47 // Returns the rect that encloses the RenderSurfaceImpl including any 47 // Returns the rect that encloses the RenderSurfaceImpl including any
48 // reflection. 48 // reflection.
49 gfx::RectF DrawableContentRect() const; 49 gfx::RectF DrawableContentRect() const;
50 50
51 void SetDrawOpacity(float opacity) { 51 void SetDrawOpacity(float opacity) {
52 draw_properties_.draw_opacity = opacity; 52 draw_properties_.draw_opacity = opacity;
53 } 53 }
54 float draw_opacity() const { return draw_properties_.draw_opacity; } 54 float draw_opacity() const { return draw_properties_.draw_opacity; }
55 55
56 SkXfermode::Mode BlendMode() const;
57 bool UsesDefaultBlendMode() const;
58
56 void SetNearestOcclusionImmuneAncestor(const RenderSurfaceImpl* surface) { 59 void SetNearestOcclusionImmuneAncestor(const RenderSurfaceImpl* surface) {
57 nearest_occlusion_immune_ancestor_ = surface; 60 nearest_occlusion_immune_ancestor_ = surface;
58 } 61 }
59 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor() const { 62 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor() const {
60 return nearest_occlusion_immune_ancestor_; 63 return nearest_occlusion_immune_ancestor_;
61 } 64 }
62 65
63 SkColor GetDebugBorderColor() const; 66 SkColor GetDebugBorderColor() const;
64 SkColor GetReplicaDebugBorderColor() const; 67 SkColor GetReplicaDebugBorderColor() const;
65 68
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 int target_render_surface_layer_index_history_; 239 int target_render_surface_layer_index_history_;
237 size_t current_layer_index_history_; 240 size_t current_layer_index_history_;
238 241
239 friend class LayerIterator; 242 friend class LayerIterator;
240 243
241 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 244 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
242 }; 245 };
243 246
244 } // namespace cc 247 } // namespace cc
245 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 248 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698