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

Unified Diff: cc/trees/property_tree.h

Issue 2014533005: cc : Reland Add IsInIdtoIndexMap to property tres (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/scrollbar_layer_unittest.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 2aab157ea519d07e95c28661afd6c3d12e092145..b64773428c7b3290d4f52944f81e7de38d1f2c66 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -676,6 +676,7 @@ class CC_EXPORT PropertyTrees final {
std::unordered_map<int, int> effect_id_to_index_map;
std::unordered_map<int, int> clip_id_to_index_map;
std::unordered_map<int, int> scroll_id_to_index_map;
+ enum TreeType { TRANSFORM, EFFECT, CLIP, SCROLL };
std::vector<int> always_use_active_tree_opacity_effect_ids;
TransformTree transform_tree;
@@ -703,6 +704,8 @@ class CC_EXPORT PropertyTrees final {
void SetOuterViewportContainerBoundsDelta(gfx::Vector2dF bounds_delta);
void SetInnerViewportScrollBoundsDelta(gfx::Vector2dF bounds_delta);
void PushOpacityIfNeeded(PropertyTrees* target_tree);
+ void RemoveIdFromIdToIndexMaps(int id);
+ bool IsInIdToIndexMap(TreeType tree_type, int id);
void UpdateChangeTracking();
void PushChangeTrackingTo(PropertyTrees* tree);
void ResetAllChangeTracking();
« no previous file with comments | « cc/layers/scrollbar_layer_unittest.cc ('k') | cc/trees/property_tree.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698