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/layer_tree_host.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <algorithm> | 10 #include <algorithm> |
11 #include <stack> | 11 #include <stack> |
12 #include <string> | 12 #include <string> |
13 #include <unordered_map> | 13 #include <unordered_map> |
14 | 14 |
15 #include "base/atomic_sequence_num.h" | 15 #include "base/atomic_sequence_num.h" |
16 #include "base/auto_reset.h" | 16 #include "base/auto_reset.h" |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
19 #include "base/location.h" | 19 #include "base/location.h" |
20 #include "base/metrics/histogram.h" | 20 #include "base/metrics/histogram.h" |
21 #include "base/numerics/safe_math.h" | 21 #include "base/numerics/safe_math.h" |
22 #include "base/single_thread_task_runner.h" | 22 #include "base/single_thread_task_runner.h" |
23 #include "base/stl_util.h" | 23 #include "base/stl_util.h" |
24 #include "base/strings/string_number_conversions.h" | 24 #include "base/strings/string_number_conversions.h" |
25 #include "base/thread_task_runner_handle.h" | 25 #include "base/threading/thread_task_runner_handle.h" |
26 #include "base/trace_event/trace_event.h" | 26 #include "base/trace_event/trace_event.h" |
27 #include "base/trace_event/trace_event_argument.h" | 27 #include "base/trace_event/trace_event_argument.h" |
28 #include "cc/animation/animation_events.h" | 28 #include "cc/animation/animation_events.h" |
29 #include "cc/animation/animation_host.h" | 29 #include "cc/animation/animation_host.h" |
30 #include "cc/base/math_util.h" | 30 #include "cc/base/math_util.h" |
31 #include "cc/debug/devtools_instrumentation.h" | 31 #include "cc/debug/devtools_instrumentation.h" |
32 #include "cc/debug/frame_viewer_instrumentation.h" | 32 #include "cc/debug/frame_viewer_instrumentation.h" |
33 #include "cc/debug/rendering_stats_instrumentation.h" | 33 #include "cc/debug/rendering_stats_instrumentation.h" |
34 #include "cc/input/layer_selection_bound.h" | 34 #include "cc/input/layer_selection_bound.h" |
35 #include "cc/input/page_scale_animation.h" | 35 #include "cc/input/page_scale_animation.h" |
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1637 int seq_num = property_trees_.sequence_number; | 1637 int seq_num = property_trees_.sequence_number; |
1638 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { | 1638 LayerTreeHostCommon::CallFunctionForEveryLayer(this, [seq_num](Layer* layer) { |
1639 layer->set_property_tree_sequence_number(seq_num); | 1639 layer->set_property_tree_sequence_number(seq_num); |
1640 }); | 1640 }); |
1641 | 1641 |
1642 surface_id_namespace_ = proto.surface_id_namespace(); | 1642 surface_id_namespace_ = proto.surface_id_namespace(); |
1643 next_surface_sequence_ = proto.next_surface_sequence(); | 1643 next_surface_sequence_ = proto.next_surface_sequence(); |
1644 } | 1644 } |
1645 | 1645 |
1646 } // namespace cc | 1646 } // namespace cc |
OLD | NEW |