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

Unified Diff: ui/compositor/layer_animator.cc

Issue 11453012: Fix black background when locking with fullscreen window: (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Mock TimeTicks::Now() Created 8 years 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/layer_animator.cc
diff --git a/ui/compositor/layer_animator.cc b/ui/compositor/layer_animator.cc
index 98261fe539e1e287eb62f6cedcd082f70cc12c8a..72fd3d46e0bf3f1b27da722c6a4e006af5b9c8cb 100644
--- a/ui/compositor/layer_animator.cc
+++ b/ui/compositor/layer_animator.cc
@@ -86,6 +86,14 @@ LayerAnimator* LayerAnimator::CreateImplicitAnimator() {
base::TimeDelta::FromMilliseconds(kDefaultTransitionDurationMs));
}
+// static
+scoped_ptr<test::AnimationContainerTestHelper>
+LayerAnimator::CreateAnimatorHelperForTest() {
+ scoped_ptr<test::AnimationContainerTestHelper> result;
+ result.reset(new test::AnimationContainerTestHelper(GetAnimationContainer()));
+ return result.Pass();
+}
+
// This macro provides the implementation for the setter and getter (well,
// the getter of the target value) for an animated property. For example,
// it is used for the implementations of SetTransform and GetTargetTransform.

Powered by Google App Engine
This is Rietveld 408576698