Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(344)

Side by Side Diff: cc/surfaces/surface_dependency_tracker.h

Issue 2814633006: Surface synchronization: Immediately activate late arriving CompositorFrames (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/surfaces/compositor_frame_sink_support_unittest.cc ('k') | cc/surfaces/surface_dependency_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698