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

Unified Diff: third_party/WebKit/public/platform/WebLayer.h

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
Index: third_party/WebKit/public/platform/WebLayer.h
diff --git a/third_party/WebKit/public/platform/WebLayer.h b/third_party/WebKit/public/platform/WebLayer.h
index 08a76cd898ddb63e041f2a99fc87434cc81445b4..ff846d5bf65197f1550bda59cedff32fb2f82c16 100644
--- a/third_party/WebKit/public/platform/WebLayer.h
+++ b/third_party/WebKit/public/platform/WebLayer.h
@@ -41,14 +41,15 @@ class SkMatrix44;
class SkImageFilter;
namespace cc {
+class Animation;
class Layer;
class LayerClient;
+class FilterOperations;
}
namespace blink {
-class WebCompositorAnimation;
+
class WebCompositorAnimationDelegate;
-class WebFilterOperations;
class WebLayerScrollClient;
struct WebFloatPoint;
struct WebLayerPositionConstraint;
@@ -132,12 +133,13 @@ public:
virtual WebColor backgroundColor() const = 0;
// Clear the filters in use by passing in a newly instantiated
- // WebFilterOperations object.
- virtual void setFilters(const WebFilterOperations&) = 0;
+ // FilterOperations object.
+ virtual void setFilters(const cc::FilterOperations&) = 0;
// Clear the background filters in use by passing in a newly instantiated
- // WebFilterOperations object.
- virtual void setBackgroundFilters(const WebFilterOperations&) = 0;
+ // FilterOperations object.
+ // TODO(loyso): This should use CompositorFilterOperation. crbug.com/584551
+ virtual void setBackgroundFilters(const cc::FilterOperations&) = 0;
// An animation delegate is notified when animations are started and
// stopped. The WebLayer does not take ownership of the delegate, and it is
@@ -145,10 +147,10 @@ public:
// deleting the delegate.
virtual void setAnimationDelegate(WebCompositorAnimationDelegate*) = 0;
-
// Returns false if the animation cannot be added.
- // Takes ownership of the WebCompositorAnimation object.
- virtual bool addAnimation(WebCompositorAnimation*) = 0;
+ // Takes ownership of the cc::Animation object.
+ // TODO(loyso): Erase it. crbug.com/575041
+ virtual bool addAnimation(cc::Animation*) = 0;
// Removes all animations with the given id.
virtual void removeAnimation(int animationId) = 0;
« no previous file with comments | « third_party/WebKit/public/platform/WebFloatKeyframe.h ('k') | third_party/WebKit/public/platform/WebLayerTreeView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698