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

Unified Diff: cc/blink/web_compositor_animation_timeline_impl.cc

Issue 1616653002: CC Animation: Move files from cc_blink to Source/platform/animation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Fix copyrights and years. Created 4 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
« no previous file with comments | « cc/blink/web_compositor_animation_timeline_impl.h ('k') | cc/blink/web_compositor_support_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/blink/web_compositor_animation_timeline_impl.cc
diff --git a/cc/blink/web_compositor_animation_timeline_impl.cc b/cc/blink/web_compositor_animation_timeline_impl.cc
deleted file mode 100644
index a87778331bbbc3c6c3b89fb3d1bc98d56944112a..0000000000000000000000000000000000000000
--- a/cc/blink/web_compositor_animation_timeline_impl.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2015 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/blink/web_compositor_animation_timeline_impl.h"
-
-#include "cc/animation/animation_id_provider.h"
-#include "cc/animation/animation_player.h"
-#include "cc/animation/animation_timeline.h"
-#include "cc/blink/web_compositor_animation_player_impl.h"
-#include "third_party/WebKit/public/platform/WebCompositorAnimationPlayerClient.h"
-
-using cc::AnimationTimeline;
-
-namespace cc_blink {
-
-WebCompositorAnimationTimelineImpl::WebCompositorAnimationTimelineImpl()
- : animation_timeline_(AnimationTimeline::Create(
- cc::AnimationIdProvider::NextTimelineId())) {
-}
-
-WebCompositorAnimationTimelineImpl::~WebCompositorAnimationTimelineImpl() {
-}
-
-cc::AnimationTimeline* WebCompositorAnimationTimelineImpl::animation_timeline()
- const {
- return animation_timeline_.get();
-}
-
-void WebCompositorAnimationTimelineImpl::playerAttached(
- const blink::WebCompositorAnimationPlayerClient& client) {
- if (client.compositorPlayer())
- animation_timeline_->AttachPlayer(
- static_cast<WebCompositorAnimationPlayerImpl*>(
- client.compositorPlayer())->animation_player());
-}
-
-void WebCompositorAnimationTimelineImpl::playerDestroyed(
- const blink::WebCompositorAnimationPlayerClient& client) {
- if (client.compositorPlayer())
- animation_timeline_->DetachPlayer(
- static_cast<WebCompositorAnimationPlayerImpl*>(
- client.compositorPlayer())->animation_player());
-}
-
-} // namespace cc_blink
« no previous file with comments | « cc/blink/web_compositor_animation_timeline_impl.h ('k') | cc/blink/web_compositor_support_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698