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/trees/damage_tracker.h" | 5 #include "cc/trees/damage_tracker.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
11 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
| 12 #include "cc/base/filter_operations.h" |
12 #include "cc/base/math_util.h" | 13 #include "cc/base/math_util.h" |
13 #include "cc/layers/heads_up_display_layer_impl.h" | 14 #include "cc/layers/heads_up_display_layer_impl.h" |
14 #include "cc/layers/layer_impl.h" | 15 #include "cc/layers/layer_impl.h" |
15 #include "cc/layers/render_surface_impl.h" | 16 #include "cc/layers/render_surface_impl.h" |
16 #include "cc/output/filter_operations.h" | |
17 #include "cc/trees/layer_tree_host_common.h" | 17 #include "cc/trees/layer_tree_host_common.h" |
18 #include "cc/trees/layer_tree_impl.h" | 18 #include "cc/trees/layer_tree_impl.h" |
19 #include "ui/gfx/geometry/rect_conversions.h" | 19 #include "ui/gfx/geometry/rect_conversions.h" |
20 | 20 |
21 namespace cc { | 21 namespace cc { |
22 | 22 |
23 std::unique_ptr<DamageTracker> DamageTracker::Create() { | 23 std::unique_ptr<DamageTracker> DamageTracker::Create() { |
24 return base::WrapUnique(new DamageTracker()); | 24 return base::WrapUnique(new DamageTracker()); |
25 } | 25 } |
26 | 26 |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
439 } | 439 } |
440 | 440 |
441 rect->set_x(x_); | 441 rect->set_x(x_); |
442 rect->set_y(y_); | 442 rect->set_y(y_); |
443 rect->set_width(width.ValueOrDie()); | 443 rect->set_width(width.ValueOrDie()); |
444 rect->set_height(height.ValueOrDie()); | 444 rect->set_height(height.ValueOrDie()); |
445 return true; | 445 return true; |
446 } | 446 } |
447 | 447 |
448 } // namespace cc | 448 } // namespace cc |
OLD | NEW |