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

Unified Diff: cc/scrollbar_animation_controller.cc

Issue 11464041: cc: Don't use partial updates for scrollbars when they are not allowed. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix android 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: cc/scrollbar_animation_controller.cc
diff --git a/cc/scrollbar_animation_controller.cc b/cc/scrollbar_animation_controller.cc
index 1d9151b11e1556231341179f18fe919feb4a0c3f..f2e471c6428a53ed0594a29a849bb590cd0b014a 100644
--- a/cc/scrollbar_animation_controller.cc
+++ b/cc/scrollbar_animation_controller.cc
@@ -9,25 +9,12 @@
#include "build/build_config.h"
#include "cc/scrollbar_layer_impl.h"
-#if defined(OS_ANDROID)
-#include "cc/scrollbar_animation_controller_linear_fade.h"
-#endif
-
namespace cc {
-#if defined(OS_ANDROID)
-scoped_ptr<ScrollbarAnimationController> ScrollbarAnimationController::create(LayerImpl* scrollLayer)
-{
- static const double fadeoutDelay = 0.3;
- static const double fadeoutLength = 0.3;
- return ScrollbarAnimationControllerLinearFade::create(scrollLayer, fadeoutDelay, fadeoutLength).PassAs<ScrollbarAnimationController>();
-}
-#else
scoped_ptr<ScrollbarAnimationController> ScrollbarAnimationController::create(LayerImpl* scrollLayer)
{
return make_scoped_ptr(new ScrollbarAnimationController(scrollLayer));
}
-#endif
ScrollbarAnimationController::ScrollbarAnimationController(LayerImpl* scrollLayer)
: m_horizontalScrollbarLayer(0)

Powered by Google App Engine
This is Rietveld 408576698