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

Unified Diff: cc/layers/render_surface_impl.cc

Issue 2446113006: cc: Use transform node's sorting_context_id in RenderSurfaceImpl (Closed)
Patch Set: Created 4 years, 2 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/render_surface_impl.cc
diff --git a/cc/layers/render_surface_impl.cc b/cc/layers/render_surface_impl.cc
index 4a08fa1de9a109f3b0023fcac80ad6cfc3eebf04..483ad01162f162a3b3410542126dc763746e5528 100644
--- a/cc/layers/render_surface_impl.cc
+++ b/cc/layers/render_surface_impl.cc
@@ -361,13 +361,17 @@ void RenderSurfaceImpl::AppendQuads(RenderPass* render_pass,
if (visible_layer_rect.IsEmpty())
return;
+ const PropertyTrees* property_trees =
+ owning_layer_->layer_tree_impl()->property_trees();
+ int sorting_context_id =
+ property_trees->transform_tree.Node(TransformTreeIndex())
+ ->sorting_context_id;
SharedQuadState* shared_quad_state =
render_pass->CreateAndAppendSharedQuadState();
- shared_quad_state->SetAll(draw_transform, content_rect().size(),
- content_rect(), draw_properties_.clip_rect,
- draw_properties_.is_clipped,
- draw_properties_.draw_opacity, BlendMode(),
- owning_layer_->sorting_context_id());
+ shared_quad_state->SetAll(
+ draw_transform, content_rect().size(), content_rect(),
+ draw_properties_.clip_rect, draw_properties_.is_clipped,
+ draw_properties_.draw_opacity, BlendMode(), sorting_context_id);
if (owning_layer_->ShowDebugBorders()) {
DebugBorderDrawQuad* debug_border_quad =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698