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

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: 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
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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
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(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 RenderSurfaceImpl* nearest_occlusion_immune_ancestor() {
weiliangc 2016/04/19 15:05:59 Is this non-const version really needed?
ajuma 2016/04/19 16:35:13 Removed. Turns out I just needed to make SetNeares
65 return nearest_occlusion_immune_ancestor_;
66 }
64 67
65 SkColor GetDebugBorderColor() const; 68 SkColor GetDebugBorderColor() const;
66 SkColor GetReplicaDebugBorderColor() const; 69 SkColor GetReplicaDebugBorderColor() const;
67 70
68 float GetDebugBorderWidth() const; 71 float GetDebugBorderWidth() const;
69 float GetReplicaDebugBorderWidth() const; 72 float GetReplicaDebugBorderWidth() const;
70 73
71 void SetDrawTransform(const gfx::Transform& draw_transform) { 74 void SetDrawTransform(const gfx::Transform& draw_transform) {
72 draw_properties_.draw_transform = draw_transform; 75 draw_properties_.draw_transform = draw_transform;
73 } 76 }
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
219 int target_render_surface_layer_index_history_; 222 int target_render_surface_layer_index_history_;
220 size_t current_layer_index_history_; 223 size_t current_layer_index_history_;
221 224
222 friend class LayerIterator; 225 friend class LayerIterator;
223 226
224 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl); 227 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceImpl);
225 }; 228 };
226 229
227 } // namespace cc 230 } // namespace cc
228 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_ 231 #endif // CC_LAYERS_RENDER_SURFACE_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698