| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "cc/trees/occlusion.h" | 5 #include "cc/trees/occlusion.h" |
| 6 | 6 |
| 7 #include "cc/base/math_util.h" | 7 #include "cc/base/math_util.h" |
| 8 #include "ui/gfx/rect.h" | 8 #include "ui/gfx/geometry/rect.h" |
| 9 | 9 |
| 10 namespace cc { | 10 namespace cc { |
| 11 | 11 |
| 12 Occlusion::Occlusion() { | 12 Occlusion::Occlusion() { |
| 13 } | 13 } |
| 14 | 14 |
| 15 Occlusion::Occlusion(const gfx::Transform& draw_transform, | 15 Occlusion::Occlusion(const gfx::Transform& draw_transform, |
| 16 const SimpleEnclosedRegion& occlusion_from_outside_target, | 16 const SimpleEnclosedRegion& occlusion_from_outside_target, |
| 17 const SimpleEnclosedRegion& occlusion_from_inside_target) | 17 const SimpleEnclosedRegion& occlusion_from_inside_target) |
| 18 : draw_transform_(draw_transform), | 18 : draw_transform_(draw_transform), |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 // once. | 79 // once. |
| 80 unoccluded_rect_in_target_surface.Subtract( | 80 unoccluded_rect_in_target_surface.Subtract( |
| 81 occlusion_from_inside_target_.bounds()); | 81 occlusion_from_inside_target_.bounds()); |
| 82 unoccluded_rect_in_target_surface.Subtract( | 82 unoccluded_rect_in_target_surface.Subtract( |
| 83 occlusion_from_outside_target_.bounds()); | 83 occlusion_from_outside_target_.bounds()); |
| 84 | 84 |
| 85 return unoccluded_rect_in_target_surface; | 85 return unoccluded_rect_in_target_surface; |
| 86 } | 86 } |
| 87 | 87 |
| 88 } // namespace cc | 88 } // namespace cc |
| OLD | NEW |