summaryrefslogtreecommitdiffstats
path: root/cc/trees/draw_property_utils.h
diff options
context:
space:
mode:
authorjaydasika <jaydasika@chromium.org>2015-08-14 07:27:02 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-14 14:27:37 +0000
commit7d5c1edd68ce70835d89ed0105d89b42f0570248 (patch)
tree931d23abe2aae79794d9aa8f4cc8905475a484e2 /cc/trees/draw_property_utils.h
parent34a38e5ed11726c2aaca4713991414a432debd28 (diff)
downloadchromium_src-7d5c1edd68ce70835d89ed0105d89b42f0570248.zip
chromium_src-7d5c1edd68ce70835d89ed0105d89b42f0570248.tar.gz
chromium_src-7d5c1edd68ce70835d89ed0105d89b42f0570248.tar.bz2
Clip Rect From Property Trees
Clip Rect is computed in CDP. This patch computes it using property trees and checks that property tree computation matches CDP computation. BUG=497817 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Review URL: https://codereview.chromium.org/1291653003 Cr-Commit-Position: refs/heads/master@{#343380}
Diffstat (limited to 'cc/trees/draw_property_utils.h')
-rw-r--r--cc/trees/draw_property_utils.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/cc/trees/draw_property_utils.h b/cc/trees/draw_property_utils.h
index afa4f92..c14b0a5 100644
--- a/cc/trees/draw_property_utils.h
+++ b/cc/trees/draw_property_utils.h
@@ -116,6 +116,10 @@ CanUseLcdTextFromPropertyTrees(const LayerImpl* layer,
gfx::Rect CC_EXPORT
DrawableContentRectFromPropertyTrees(const LayerImpl* layer,
const TransformTree& transform_tree);
+
+gfx::Rect CC_EXPORT
+ClipRectFromPropertyTrees(const LayerImpl* layer,
+ const TransformTree& transform_tree);
} // namespace cc
#endif // CC_TREES_DRAW_PROPERTY_UTILS_H_