| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #ifndef CC_SURFACES_SURFACE_DEPENDENCY_TRACKER_H_ | 5 #ifndef CC_SURFACES_SURFACE_DEPENDENCY_TRACKER_H_ |
| 6 #define CC_SURFACES_SURFACE_DEPENDENCY_TRACKER_H_ | 6 #define CC_SURFACES_SURFACE_DEPENDENCY_TRACKER_H_ |
| 7 | 7 |
| 8 #include "cc/scheduler/begin_frame_source.h" | 8 #include "cc/scheduler/begin_frame_source.h" |
| 9 #include "cc/surfaces/pending_frame_observer.h" | 9 #include "cc/surfaces/pending_frame_observer.h" |
| 10 #include "cc/surfaces/surface.h" | 10 #include "cc/surfaces/surface.h" |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 base::Optional<uint32_t> frames_since_deadline_set_; | 80 base::Optional<uint32_t> frames_since_deadline_set_; |
| 81 | 81 |
| 82 // A map from a SurfaceId to the set of Surfaces blocked on that SurfaceId. | 82 // A map from a SurfaceId to the set of Surfaces blocked on that SurfaceId. |
| 83 std::unordered_map<SurfaceId, base::flat_set<SurfaceId>, SurfaceIdHash> | 83 std::unordered_map<SurfaceId, base::flat_set<SurfaceId>, SurfaceIdHash> |
| 84 blocked_surfaces_from_dependency_; | 84 blocked_surfaces_from_dependency_; |
| 85 | 85 |
| 86 // The set of SurfaceIds corresponding to observed Surfaces that have | 86 // The set of SurfaceIds corresponding to observed Surfaces that have |
| 87 // blockers. | 87 // blockers. |
| 88 base::flat_set<SurfaceId> observed_surfaces_by_id_; | 88 base::flat_set<SurfaceId> observed_surfaces_by_id_; |
| 89 | 89 |
| 90 // The set of SurfaceIds to which corresponding CompositorFrames have not |
| 91 // arrived by the time their deadline fired. |
| 92 base::flat_set<SurfaceId> late_surfaces_by_id_; |
| 93 |
| 90 DISALLOW_COPY_AND_ASSIGN(SurfaceDependencyTracker); | 94 DISALLOW_COPY_AND_ASSIGN(SurfaceDependencyTracker); |
| 91 }; | 95 }; |
| 92 | 96 |
| 93 } // namespace cc | 97 } // namespace cc |
| 94 | 98 |
| 95 #endif // CC_SURFACES_SURFACE_DEPENDENCY_TRACKER_H_ | 99 #endif // CC_SURFACES_SURFACE_DEPENDENCY_TRACKER_H_ |
| OLD | NEW |