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

Unified Diff: ui/compositor/compositor.h

Issue 996453002: Allow ui::Compositor to disable commits during tab-switch (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use DeferCommits instead Created 5 years, 9 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
Index: ui/compositor/compositor.h
diff --git a/ui/compositor/compositor.h b/ui/compositor/compositor.h
index 47d4cd0d7e30866f980299191cd5994d386673b9..600308d9c698ea896e32e5b4e0bf8e8996374246 100644
--- a/ui/compositor/compositor.h
+++ b/ui/compositor/compositor.h
@@ -269,6 +269,7 @@ class COMPOSITOR_EXPORT Compositor
void DidPostSwapBuffers() override;
void DidAbortSwapBuffers() override;
+ void SetDeferCommits(bool defer_commits);
bool IsLocked() { return compositor_lock_ != NULL; }
const cc::LayerTreeDebugState& GetLayerTreeDebugState() const;
@@ -319,8 +320,6 @@ class COMPOSITOR_EXPORT Compositor
int last_started_frame_;
int last_ended_frame_;
- bool disable_schedule_composite_;
-
CompositorLock* compositor_lock_;
LayerAnimatorCollection layer_animator_collection_;

Powered by Google App Engine
This is Rietveld 408576698