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

Unified Diff: cc/layers/render_surface_impl.h

Issue 2540333002: cc: Remove map lookup from RenderSurfaceImpl::EffectTreeIndex (Closed)
Patch Set: Created 4 years 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 | cc/layers/render_surface_impl.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 8cd9523f168e6da9a7375f259711da2232f9a35d..4265ea02a347c001b09afedd5b192ace66374478 100644
--- a/cc/layers/render_surface_impl.h
+++ b/cc/layers/render_surface_impl.h
@@ -152,6 +152,8 @@ class CC_EXPORT RenderSurfaceImpl {
int TransformTreeIndex() const;
int ClipTreeIndex() const;
+
+ void set_effect_tree_index(int index) { effect_tree_index_ = index; }
int EffectTreeIndex() const;
private:
@@ -164,6 +166,7 @@ class CC_EXPORT RenderSurfaceImpl {
LayerTreeImpl* layer_tree_impl_;
int stable_effect_id_;
+ int effect_tree_index_;
// Container for properties that render surfaces need to compute before they
// can be drawn.
« no previous file with comments | « no previous file | cc/layers/render_surface_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698