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

Unified Diff: cc/trees/property_tree.h

Issue 2655233006: cc : Clean up cc clip tree (Closed)
Patch Set: Address comments Created 3 years, 9 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
Index: cc/trees/property_tree.h
diff --git a/cc/trees/property_tree.h b/cc/trees/property_tree.h
index f7e90ea7b47277c8df23da1df91cfd84ecc80de1..d1f89c0ae605cd6b9dcfc4401e6b0eb463cc9caf 100644
--- a/cc/trees/property_tree.h
+++ b/cc/trees/property_tree.h
@@ -547,6 +547,18 @@ struct DrawTransformData {
transforms(gfx::Transform(), gfx::Transform()) {}
};
+struct ConditionalClip {
+ bool is_clipped;
+ gfx::RectF clip_rect;
+};
+
+struct ClipRectData {
+ int target_id;
+ ConditionalClip clip;
+
+ ClipRectData() : target_id(-1) {}
+};
+
struct PropertyTreesCachedData {
int transform_tree_update_number;
std::vector<AnimationScaleData> animation_scales;
@@ -653,6 +665,8 @@ class CC_EXPORT PropertyTrees final {
int transform_id,
int effect_id) const;
+ ClipRectData* FetchClipRectFromCache(int clip_id, int target_id);
+
private:
gfx::Vector2dF inner_viewport_container_bounds_delta_;
gfx::Vector2dF outer_viewport_container_bounds_delta_;

Powered by Google App Engine
This is Rietveld 408576698