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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "CCDamageTracker.h" | 7 #include "cc/damage_tracker.h" |
8 | 8 |
9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
10 #include "cc/layer_tree_host_common.h" | 10 #include "cc/layer_tree_host_common.h" |
11 #include "cc/math_util.h" | 11 #include "cc/math_util.h" |
12 #include "cc/render_surface_impl.h" | 12 #include "cc/render_surface_impl.h" |
13 #include <public/WebFilterOperations.h> | 13 #include <public/WebFilterOperations.h> |
14 | 14 |
15 using WebKit::WebTransformationMatrix; | 15 using WebKit::WebTransformationMatrix; |
16 | 16 |
17 namespace cc { | 17 namespace cc { |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
342 // If the layer has a background filter, this may cause pixels in our surfac
e to be expanded, so we will need to expand any damage | 342 // If the layer has a background filter, this may cause pixels in our surfac
e to be expanded, so we will need to expand any damage |
343 // at or below this layer. We expand the damage from this layer too, as we n
eed to readback those pixels from the surface with only | 343 // at or below this layer. We expand the damage from this layer too, as we n
eed to readback those pixels from the surface with only |
344 // the contents of layers below this one in them. This means we need to redr
aw any pixels in the surface being used for the blur in | 344 // the contents of layers below this one in them. This means we need to redr
aw any pixels in the surface being used for the blur in |
345 // this layer this frame. | 345 // this layer this frame. |
346 if (layer->backgroundFilters().hasFilterThatMovesPixels()) | 346 if (layer->backgroundFilters().hasFilterThatMovesPixels()) |
347 expandDamageRectInsideRectWithFilters(targetDamageRect, surfaceRectInTar
getSpace, layer->backgroundFilters()); | 347 expandDamageRectInsideRectWithFilters(targetDamageRect, surfaceRectInTar
getSpace, layer->backgroundFilters()); |
348 } | 348 } |
349 | 349 |
350 } // namespace cc | 350 } // namespace cc |
351 | 351 |
OLD | NEW |