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

Unified Diff: ui/aura/root_window.h

Issue 12226080: Thread ui transform animations (Closed) Base URL: http://git.chromium.org/chromium/src.git@DefineThreadedLayerAnimationElements
Patch Set: Fix WebContentsViewAuraTest.QuickOverscrollDirectionChange Created 7 years, 10 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/aura/root_window.h
diff --git a/ui/aura/root_window.h b/ui/aura/root_window.h
index 6102302f764042773314e3ccd76293cc2ae7cdc7..9acb581754ce277aa992b7f8246891e307de0c6f 100644
--- a/ui/aura/root_window.h
+++ b/ui/aura/root_window.h
@@ -12,6 +12,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop.h"
+#include "base/time.h"
#include "ui/aura/aura_export.h"
#include "ui/aura/client/capture_delegate.h"
#include "ui/aura/root_window_host_delegate.h"
@@ -242,6 +243,9 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
// Overridden from ui::CompositorDelegate:
virtual void ScheduleDraw() OVERRIDE;
+ // Make ScheduleDraw use a delay when scheduling draws.
+ void DelayDrawsForTesting(base::TimeDelta delay);
+
// Overridden from ui::CompositorObserver:
virtual void OnCompositingDidCommit(ui::Compositor*) OVERRIDE;
virtual void OnCompositingStarted(ui::Compositor*,
@@ -402,6 +406,8 @@ class AURA_EXPORT RootWindow : public ui::CompositorDelegate,
bool defer_draw_scheduling_;
+ base::TimeDelta draw_scheduling_delay_for_testing_;
+
// How many holds are outstanding. We try to defer dispatching mouse moves
// while the count is > 0.
int mouse_move_hold_count_;

Powered by Google App Engine
This is Rietveld 408576698