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

Unified Diff: Source/web/LinkHighlight.h

Issue 1119763003: Animations: Port LinkHighlight to use compositor timelines. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix code review issues (add ASSERTs) Created 5 years, 5 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 | « no previous file | Source/web/LinkHighlight.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/LinkHighlight.h
diff --git a/Source/web/LinkHighlight.h b/Source/web/LinkHighlight.h
index 09bba690b78f35480c76785a8d6935aafcaea53c..fb20361f0375a224ab15fc0cb22de059617ac67b 100644
--- a/Source/web/LinkHighlight.h
+++ b/Source/web/LinkHighlight.h
@@ -31,6 +31,8 @@
#include "platform/graphics/GraphicsLayer.h"
#include "platform/graphics/Path.h"
#include "public/platform/WebCompositorAnimationDelegate.h"
+#include "public/platform/WebCompositorAnimationPlayer.h"
+#include "public/platform/WebCompositorAnimationPlayerClient.h"
#include "public/platform/WebContentLayer.h"
#include "public/platform/WebContentLayerClient.h"
#include "public/platform/WebLayer.h"
@@ -44,7 +46,7 @@ class Node;
struct WebRect;
class WebViewImpl;
-class LinkHighlight final : public WebContentLayerClient, public WebCompositorAnimationDelegate, LinkHighlightClient {
+class LinkHighlight final : public WebContentLayerClient, public WebCompositorAnimationDelegate, LinkHighlightClient, WebCompositorAnimationPlayerClient {
public:
static PassOwnPtr<LinkHighlight> create(Node*, WebViewImpl*);
~LinkHighlight() override;
@@ -67,6 +69,9 @@ public:
WebLayer* layer() override;
void clearCurrentGraphicsLayer() override;
+ // WebCompositorAnimationPlayerClient implementation.
+ WebCompositorAnimationPlayer* compositorPlayer() const override;
+
GraphicsLayer* currentGraphicsLayerForTesting() const { return m_currentGraphicsLayer; }
private:
@@ -88,6 +93,7 @@ private:
RefPtrWillBePersistent<Node> m_node;
WebViewImpl* m_owningWebViewImpl;
GraphicsLayer* m_currentGraphicsLayer;
+ OwnPtr<WebCompositorAnimationPlayer> m_compositorPlayer;
bool m_geometryNeedsUpdate;
bool m_isAnimating;
« no previous file with comments | « no previous file | Source/web/LinkHighlight.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698