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

Unified Diff: cc/surfaces/display_scheduler.h

Issue 1251823005: cc: Make DisplayScheduler aware of resize and add tracing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tests; small logic changes 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 | « cc/surfaces/display.cc ('k') | 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 bc509c7b1caa080107b07c9e2bbeb63bbea8a931..4ffc6ea8d56440abcf81fd9058556786b7f3aa9c 100644
--- a/cc/surfaces/display_scheduler.h
+++ b/cc/surfaces/display_scheduler.h
@@ -36,7 +36,8 @@ class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase {
void SetRootSurfaceResourcesLocked(bool locked);
void ForceImmediateSwapIfPossible();
- virtual void EntireDisplayDamaged(SurfaceId root_surface_id);
+ virtual void DisplayResized();
+ virtual void SetNewRootSurface(SurfaceId root_surface_id);
virtual void SurfaceDamaged(SurfaceId surface_id);
virtual void DidSwapBuffers();
@@ -68,7 +69,7 @@ class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase {
bool inside_begin_frame_deadline_interval_;
bool needs_draw_;
- bool entire_display_damaged_;
+ bool expecting_root_surface_damage_because_of_resize_;
bool all_active_child_surfaces_ready_to_draw_;
int pending_swaps_;
« no previous file with comments | « cc/surfaces/display.cc ('k') | cc/surfaces/display_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698