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

Unified Diff: cc/surfaces/display_scheduler.h

Issue 1258273005: Revert of cc: Consider Surface active if frame received recently (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/surfaces/display_scheduler.h
diff --git a/cc/surfaces/display_scheduler.h b/cc/surfaces/display_scheduler.h
index 01f73ffe868cd545c382fd5821f135ab46eadf60..4ffc6ea8d56440abcf81fd9058556786b7f3aa9c 100644
--- a/cc/surfaces/display_scheduler.h
+++ b/cc/surfaces/display_scheduler.h
@@ -54,7 +54,6 @@
void AttemptDrawAndSwap();
void OnBeginFrameDeadline();
void DrawAndSwap();
- void UpdateActiveSurfaces();
DisplaySchedulerClient* client_;
BeginFrameSource* begin_frame_source_;
@@ -70,23 +69,19 @@
bool inside_begin_frame_deadline_interval_;
bool needs_draw_;
- bool child_surfaces_ready_to_draw_;
+ bool expecting_root_surface_damage_because_of_resize_;
+ bool all_active_child_surfaces_ready_to_draw_;
int pending_swaps_;
int max_pending_swaps_;
SurfaceId root_surface_id_;
bool root_surface_damaged_;
- bool root_surface_active_;
- bool expecting_root_surface_damage_because_of_resize_;
+ bool expect_damage_from_root_surface_;
- // We currently use a heuristic that considers a child surface
- // active if it has submitted a frame anytime within the last 3
- // vsyncs.
- static const int kNumFramesSurfaceIsActive = 3;
std::set<SurfaceId> child_surface_ids_damaged_;
- std::set<SurfaceId> active_child_surface_ids_[kNumFramesSurfaceIsActive];
- int active_child_surface_ids_index_;
+ std::set<SurfaceId> child_surface_ids_damaged_prev_;
+ std::vector<SurfaceId> child_surface_ids_to_expect_damage_from_;
base::WeakPtrFactory<DisplayScheduler> weak_ptr_factory_;
« no previous file with comments | « no previous file | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698