OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/damage_tracker.h" | 5 #include "cc/damage_tracker.h" |
6 | 6 |
| 7 #include "cc/base/math_util.h" |
7 #include "cc/layer_impl.h" | 8 #include "cc/layer_impl.h" |
8 #include "cc/layer_tree_host_common.h" | 9 #include "cc/layer_tree_host_common.h" |
9 #include "cc/math_util.h" | |
10 #include "cc/render_surface_impl.h" | 10 #include "cc/render_surface_impl.h" |
11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebFilterOperations
.h" |
12 | 12 |
13 namespace cc { | 13 namespace cc { |
14 | 14 |
15 scoped_ptr<DamageTracker> DamageTracker::Create() { | 15 scoped_ptr<DamageTracker> DamageTracker::Create() { |
16 return make_scoped_ptr(new DamageTracker()); | 16 return make_scoped_ptr(new DamageTracker()); |
17 } | 17 } |
18 | 18 |
19 DamageTracker::DamageTracker() | 19 DamageTracker::DamageTracker() |
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 // one in them. This means we need to redraw any pixels in the surface being | 384 // one in them. This means we need to redraw any pixels in the surface being |
385 // used for the blur in this layer this frame. | 385 // used for the blur in this layer this frame. |
386 if (layer->background_filters().hasFilterThatMovesPixels()) { | 386 if (layer->background_filters().hasFilterThatMovesPixels()) { |
387 ExpandDamageRectInsideRectWithFilters(target_damage_rect, | 387 ExpandDamageRectInsideRectWithFilters(target_damage_rect, |
388 surface_rect_in_target_space, | 388 surface_rect_in_target_space, |
389 layer->background_filters()); | 389 layer->background_filters()); |
390 } | 390 } |
391 } | 391 } |
392 | 392 |
393 } // namespace cc | 393 } // namespace cc |
OLD | NEW |