Chromium Code Reviews| Index: cc/trees/draw_property_utils.cc |
| diff --git a/cc/trees/draw_property_utils.cc b/cc/trees/draw_property_utils.cc |
| index 7294e5c598ff36ba0758f4b837206f62f16bca7c..cdb99992d71c9187d35f5ffef95ecdde60d83d15 100644 |
| --- a/cc/trees/draw_property_utils.cc |
| +++ b/cc/trees/draw_property_utils.cc |
| @@ -79,6 +79,10 @@ bool ComputeClipRectInTargetSpace(const LayerImpl* layer, |
| } else { |
| if (property_trees->ComputeTransformFromTarget( |
| target_node_id, clip_node->target_effect_id, &clip_to_target)) { |
| + const EffectNode* source_node = |
| + effect_tree.Node(clip_node->target_effect_id); |
| + PostConcatSurfaceContentsScale(target_effect_node, &clip_to_target); |
| + ConcatInverseSurfaceContentsScale(source_node, &clip_to_target); |
|
jaydasika
2017/02/24 01:08:39
We do the same thing in ComputeClips when we calcu
|
| *clip_rect_in_target_space = |
| MathUtil::ProjectClippedRect(clip_to_target, clip_from_clip_node); |
| } else { |