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

Unified Diff: cc/animation/property_animation_state.cc

Issue 2502663003: CC Animation: Move PropertyAnimationState and TargetProperty to trees. (Closed)
Patch Set: Created 4 years, 1 month 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/animation/property_animation_state.h ('k') | cc/animation/target_property.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/animation/property_animation_state.cc
diff --git a/cc/animation/property_animation_state.cc b/cc/animation/property_animation_state.cc
deleted file mode 100644
index bda251c6b8f12d5aba7eb1acc4050f1447bd7d73..0000000000000000000000000000000000000000
--- a/cc/animation/property_animation_state.cc
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "cc/animation/property_animation_state.h"
-
-#include "base/logging.h"
-
-namespace cc {
-
-PropertyAnimationState::PropertyAnimationState() {}
-
-PropertyAnimationState::PropertyAnimationState(
- const PropertyAnimationState& rhs)
- : currently_running(rhs.currently_running),
- potentially_animating(rhs.potentially_animating) {}
-
-PropertyAnimationState::~PropertyAnimationState() {}
-
-bool PropertyAnimationState::operator==(
- const PropertyAnimationState& other) const {
- return currently_running == other.currently_running &&
- potentially_animating == other.potentially_animating;
-}
-
-bool PropertyAnimationState::operator!=(
- const PropertyAnimationState& other) const {
- return !operator==(other);
-}
-
-PropertyAnimationState& PropertyAnimationState::operator|=(
- const PropertyAnimationState& other) {
- currently_running |= other.currently_running;
- potentially_animating |= other.potentially_animating;
-
- return *this;
-}
-
-PropertyAnimationState& PropertyAnimationState::operator^=(
- const PropertyAnimationState& other) {
- currently_running ^= other.currently_running;
- potentially_animating ^= other.potentially_animating;
-
- return *this;
-}
-
-PropertyAnimationState& PropertyAnimationState::operator&=(
- const PropertyAnimationState& other) {
- currently_running &= other.currently_running;
- potentially_animating &= other.potentially_animating;
-
- return *this;
-}
-
-PropertyAnimationState operator^(const PropertyAnimationState& lhs,
- const PropertyAnimationState& rhs) {
- PropertyAnimationState result = lhs;
- result ^= rhs;
- return result;
-}
-
-bool PropertyAnimationState::IsValid() const {
- // currently_running must be a subset for potentially_animating.
- // currently <= potentially i.e. potentially || !currently.
- TargetProperties result = potentially_animating | ~currently_running;
- return result.all();
-}
-
-void PropertyAnimationState::Clear() {
- currently_running.reset();
- potentially_animating.reset();
-}
-
-} // namespace cc
« no previous file with comments | « cc/animation/property_animation_state.h ('k') | cc/animation/target_property.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698