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

Unified Diff: cc/trees/property_tree.h

Issue 2571263002: cc: Remove map lookup from RenderSurfaceImpl::EffectTreeIndex (Closed)
Patch Set: Fix post-rebase unit test failure Created 3 years, 11 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/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index 85a8d47a82526c98fe0788f3d3b8145dd5ccf824..c56126a05bb68a32b1da9c7ac5bce23d15083a0b 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -30,6 +30,7 @@ namespace cc {
class CopyOutputRequest;
class LayerTreeImpl;
+class RenderSurfaceImpl;
class ScrollState;
struct ClipNode;
struct EffectNode;
@@ -331,6 +332,14 @@ class CC_EXPORT EffectTree final : public PropertyTree<EffectNode> {
void ResetChangeTracking();
+ // A list of pairs of stable id and render surface, sorted by stable id.
+ using StableIdRenderSurfaceList =
+ std::vector<std::pair<int, RenderSurfaceImpl*>>;
+ StableIdRenderSurfaceList CreateStableIdRenderSurfaceList() const;
+ void UpdateRenderSurfaceEffectIds(
+ const StableIdRenderSurfaceList& stable_id_render_surface_list,
+ LayerTreeImpl* layer_tree_impl);
+
private:
void UpdateOpacities(EffectNode* node, EffectNode* parent_node);
void UpdateIsDrawn(EffectNode* node, EffectNode* parent_node);
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698