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

Unified 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl.h
diff --git a/cc/layers/render_surface_impl.h b/cc/layers/render_surface_impl.h
index cb7a795b3b1891e4d8e184cd1aa830aa0f46cf44..d73864695eef212754acad6e2b01b7b78f940ed0 100644
--- a/cc/layers/render_surface_impl.h
+++ b/cc/layers/render_surface_impl.h
@@ -55,7 +55,7 @@ class CC_EXPORT RenderSurfaceImpl {
}
float draw_opacity() const { return draw_properties_.draw_opacity; }
- void SetNearestOcclusionImmuneAncestor(RenderSurfaceImpl* surface) {
+ void SetNearestOcclusionImmuneAncestor(const RenderSurfaceImpl* surface) {
nearest_occlusion_immune_ancestor_ = surface;
}
const RenderSurfaceImpl* nearest_occlusion_immune_ancestor() const {
@@ -211,7 +211,7 @@ class CC_EXPORT RenderSurfaceImpl {
// The nearest ancestor target surface that will contain the contents of this
// surface, and that ignores outside occlusion. This can point to itself.
- RenderSurfaceImpl* nearest_occlusion_immune_ancestor_;
+ const RenderSurfaceImpl* nearest_occlusion_immune_ancestor_;
std::unique_ptr<DamageTracker> damage_tracker_;
« 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