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

Unified Diff: cc/blink/web_animation_impl.cc

Issue 576553002: remove WEB_ANIMATION_SUPPORTS_FULL_DIRECTION guards (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/blink/web_animation_impl.h ('k') | cc/blink/web_animation_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_animation_impl.cc
diff --git a/cc/blink/web_animation_impl.cc b/cc/blink/web_animation_impl.cc
index 282b4709ad487ee0bf335866c3161df205c8ed67..1f19937c15bc305dfaa2f8ddb60918b1ba4816d2 100644
--- a/cc/blink/web_animation_impl.cc
+++ b/cc/blink/web_animation_impl.cc
@@ -114,7 +114,6 @@ void WebCompositorAnimationImpl::setTimeOffset(double monotonic_time) {
animation_->set_time_offset(base::TimeDelta::FromSecondsD(monotonic_time));
}
-#if WEB_ANIMATION_SUPPORTS_FULL_DIRECTION
blink::WebCompositorAnimation::Direction WebCompositorAnimationImpl::direction()
const {
switch (animation_->direction()) {
@@ -148,18 +147,6 @@ void WebCompositorAnimationImpl::setDirection(Direction direction) {
break;
}
}
-#else
-bool WebCompositorAnimationImpl::alternatesDirection() const {
- return animation_->direction() == cc::Animation::Alternate;
-}
-
-void WebCompositorAnimationImpl::setAlternatesDirection(bool alternates) {
- if (alternates)
- animation_->set_direction(cc::Animation::Alternate);
- else
- animation_->set_direction(cc::Animation::Normal);
-}
-#endif
double WebCompositorAnimationImpl::playbackRate() const {
return animation_->playback_rate();
« no previous file with comments | « cc/blink/web_animation_impl.h ('k') | cc/blink/web_animation_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698