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/surfaces/surface_manager.h" | 5 #include "cc/surfaces/surface_manager.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <queue> | 10 #include <queue> |
11 #include <utility> | 11 #include <utility> |
12 | 12 |
13 #include "base/logging.h" | 13 #include "base/logging.h" |
14 #include "cc/surfaces/direct_surface_reference_factory.h" | 14 #include "cc/surfaces/direct_surface_reference_factory.h" |
| 15 #include "cc/surfaces/local_surface_id_allocator.h" |
15 #include "cc/surfaces/surface.h" | 16 #include "cc/surfaces/surface.h" |
16 #include "cc/surfaces/surface_factory_client.h" | 17 #include "cc/surfaces/surface_factory_client.h" |
17 #include "cc/surfaces/surface_id_allocator.h" | |
18 #include "cc/surfaces/surface_info.h" | 18 #include "cc/surfaces/surface_info.h" |
19 | 19 |
20 #if DCHECK_IS_ON() | 20 #if DCHECK_IS_ON() |
21 #include <sstream> | 21 #include <sstream> |
22 #endif | 22 #endif |
23 | 23 |
24 namespace cc { | 24 namespace cc { |
25 | 25 |
26 SurfaceManager::FrameSinkSourceMapping::FrameSinkSourceMapping() | 26 SurfaceManager::FrameSinkSourceMapping::FrameSinkSourceMapping() |
27 : client(nullptr), source(nullptr) {} | 27 : client(nullptr), source(nullptr) {} |
(...skipping 610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
638 std::vector<SurfaceId> children(iter->second.begin(), iter->second.end()); | 638 std::vector<SurfaceId> children(iter->second.begin(), iter->second.end()); |
639 std::sort(children.begin(), children.end()); | 639 std::sort(children.begin(), children.end()); |
640 | 640 |
641 for (const SurfaceId& child_id : children) | 641 for (const SurfaceId& child_id : children) |
642 SurfaceReferencesToStringImpl(child_id, indent + " ", str); | 642 SurfaceReferencesToStringImpl(child_id, indent + " ", str); |
643 } | 643 } |
644 } | 644 } |
645 #endif // DCHECK_IS_ON() | 645 #endif // DCHECK_IS_ON() |
646 | 646 |
647 } // namespace cc | 647 } // namespace cc |
OLD | NEW |