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

Side by Side Diff: Source/web/PageOverlay.cpp

Issue 652593003: Web Animations: Plumb compositor group id through animation creation and start/finish notifications (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Pass groupId to createAnimation. Created 6 years, 2 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/LinkHighlight.cpp ('k') | public/platform/WebCompositorAnimation.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 10 *
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 class OverlayGraphicsLayerClientImpl : public GraphicsLayerClient { 65 class OverlayGraphicsLayerClientImpl : public GraphicsLayerClient {
66 public: 66 public:
67 static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* ove rlay) 67 static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* ove rlay)
68 { 68 {
69 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay)); 69 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay));
70 } 70 }
71 71
72 virtual ~OverlayGraphicsLayerClientImpl() { } 72 virtual ~OverlayGraphicsLayerClientImpl() { }
73 73
74 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me) override { }
75
76 virtual void paintContents(const GraphicsLayer*, GraphicsContext& gc, Graphi csLayerPaintingPhase, const IntRect& inClip) 74 virtual void paintContents(const GraphicsLayer*, GraphicsContext& gc, Graphi csLayerPaintingPhase, const IntRect& inClip)
77 { 75 {
78 gc.save(); 76 gc.save();
79 m_overlay->paintPageOverlay(ToWebCanvas(&gc)); 77 m_overlay->paintPageOverlay(ToWebCanvas(&gc));
80 gc.restore(); 78 gc.restore();
81 } 79 }
82 80
83 virtual String debugName(const GraphicsLayer* graphicsLayer) override 81 virtual String debugName(const GraphicsLayer* graphicsLayer) override
84 { 82 {
85 return String("WebViewImpl Page Overlay Content Layer"); 83 return String("WebViewImpl Page Overlay Content Layer");
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // this is not on a critical codepath? In order to do so, we'd 153 // this is not on a critical codepath? In order to do so, we'd
156 // have to take scrolling into account. 154 // have to take scrolling into account.
157 const WebSize& size = m_viewImpl->size(); 155 const WebSize& size = m_viewImpl->size();
158 WebRect damagedRect(0, 0, size.width, size.height); 156 WebRect damagedRect(0, 0, size.width, size.height);
159 if (m_viewImpl->client()) 157 if (m_viewImpl->client())
160 m_viewImpl->client()->didInvalidateRect(damagedRect); 158 m_viewImpl->client()->didInvalidateRect(damagedRect);
161 } 159 }
162 } 160 }
163 161
164 } // namespace blink 162 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/LinkHighlight.cpp ('k') | public/platform/WebCompositorAnimation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698