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

Unified Diff: cc/surfaces/display_scheduler.h

Issue 2238693002: Plumb SetVisible from ui::Compositor to the DirectRenderer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: setvisible-browser: onemore Created 4 years, 4 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 786875bf52e900dcc7b6fdae2e973a3f6c1ca1c1..8ad91450b682d54a630b0cc5b6c1c056186bff21 100644
--- a/cc/surfaces/display_scheduler.h
+++ b/cc/surfaces/display_scheduler.h
@@ -37,6 +37,7 @@ class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase {
void SetClient(DisplaySchedulerClient* client);
+ void SetVisible(bool visible);
void SetRootSurfaceResourcesLocked(bool locked);
void ForceImmediateSwapIfPossible();
virtual void DisplayResized();
@@ -58,6 +59,9 @@ class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase {
void AttemptDrawAndSwap();
void OnBeginFrameDeadline();
void DrawAndSwap();
+ void StartObservingBeginFrames();
+ void StopObservingBeginFrames();
+ bool ShouldDraw();
DisplaySchedulerClient* client_;
BeginFrameSource* begin_frame_source_;
@@ -71,6 +75,7 @@ class CC_SURFACES_EXPORT DisplayScheduler : public BeginFrameObserverBase {
base::CancelableClosure missed_begin_frame_task_;
bool inside_surface_damaged_;
+ bool visible_;
bool output_surface_lost_;
bool root_surface_resources_locked_;
« 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