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

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

Issue 1882413006: cc: Construct the RSLL without using layer hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 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 unified diff | Download patch
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_common.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 // Returns the rect that encloses the RenderSurfaceImpl including any 49 // Returns the rect that encloses the RenderSurfaceImpl including any
50 // reflection. 50 // reflection.
51 gfx::RectF DrawableContentRect() const; 51 gfx::RectF DrawableContentRect() const;
52 52
53 void SetDrawOpacity(float opacity) { 53 void SetDrawOpacity(float opacity) {
54 draw_properties_.draw_opacity = opacity; 54 draw_properties_.draw_opacity = opacity;
55 } 55 }
56 float draw_opacity() const { return draw_properties_.draw_opacity; } 56 float draw_opacity() const { return draw_properties_.draw_opacity; }
57 57
58 void SetNearestOcclusionImmuneAncestor(RenderSurfaceImpl* surface) { 58 void SetNearestOcclusionImmuneAncestor(const RenderSurfaceImpl* surface) {
59 nearest_occlusion_immune_ancestor_ = surface; 59 nearest_occlusion_immune_ancestor_ = surface;
60 } 60 }
61 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor() const { 61 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor() const {
62 return nearest_occlusion_immune_ancestor_; 62 return nearest_occlusion_immune_ancestor_;
63 } 63 }
64 64
65 SkColor GetDebugBorderColor() const; 65 SkColor GetDebugBorderColor() const;
66 SkColor GetReplicaDebugBorderColor() const; 66 SkColor GetReplicaDebugBorderColor() const;
67 67
68 float GetDebugBorderWidth() const; 68 float GetDebugBorderWidth() const;
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 gfx::Rect accumulated_content_rect_; 204 gfx::Rect accumulated_content_rect_;
205 bool surface_property_changed_ : 1; 205 bool surface_property_changed_ : 1;
206 206
207 bool contributes_to_drawn_surface_ : 1; 207 bool contributes_to_drawn_surface_ : 1;
208 208
209 LayerImplList layer_list_; 209 LayerImplList layer_list_;
210 Occlusion occlusion_in_content_space_; 210 Occlusion occlusion_in_content_space_;
211 211
212 // The nearest ancestor target surface that will contain the contents of this 212 // The nearest ancestor target surface that will contain the contents of this
213 // surface, and that ignores outside occlusion. This can point to itself. 213 // surface, and that ignores outside occlusion. This can point to itself.
214 RenderSurfaceImpl* nearest_occlusion_immune_ancestor_; 214 const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_;
215 215
216 std::unique_ptr<DamageTracker> damage_tracker_; 216 std::unique_ptr<DamageTracker> damage_tracker_;
217 217
218 // For LayerIteratorActions 218 // For LayerIteratorActions
219 int target_render_surface_layer_index_history_; 219 int target_render_surface_layer_index_history_;
220 size_t current_layer_index_history_; 220 size_t current_layer_index_history_;
221 221
222 friend class LayerIterator; 222 friend class LayerIterator;
223 223
224 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 224 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
225 }; 225 };
226 226
227 } // namespace cc 227 } // namespace cc
228 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 228 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.cc ('k') | cc/trees/layer_tree_host_common.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698