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

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

Issue 185633002: Adding monotonic only API to Blink's animation delegate interface (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adding BLINK_PLATFORM_EXPORT back in. Created 6 years, 9 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
« no previous file with comments | « Source/web/LinkHighlight.cpp ('k') | Source/web/PinchViewports.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 class OverlayGraphicsLayerClientImpl : public WebCore::GraphicsLayerClient { 66 class OverlayGraphicsLayerClientImpl : public WebCore::GraphicsLayerClient {
67 public: 67 public:
68 static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* ove rlay) 68 static PassOwnPtr<OverlayGraphicsLayerClientImpl> create(WebPageOverlay* ove rlay)
69 { 69 {
70 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay)); 70 return adoptPtr(new OverlayGraphicsLayerClientImpl(overlay));
71 } 71 }
72 72
73 virtual ~OverlayGraphicsLayerClientImpl() { } 73 virtual ~OverlayGraphicsLayerClientImpl() { }
74 74
75 virtual void notifyAnimationStarted(const GraphicsLayer*, double wallClockTi me, double monotonicTime) OVERRIDE { } 75 virtual void notifyAnimationStarted(const GraphicsLayer*, double monotonicTi me) OVERRIDE { }
76 76
77 virtual void paintContents(const GraphicsLayer*, GraphicsContext& gc, Graphi csLayerPaintingPhase, const IntRect& inClip) 77 virtual void paintContents(const GraphicsLayer*, GraphicsContext& gc, Graphi csLayerPaintingPhase, const IntRect& inClip)
78 { 78 {
79 gc.save(); 79 gc.save();
80 m_overlay->paintPageOverlay(ToWebCanvas(&gc)); 80 m_overlay->paintPageOverlay(ToWebCanvas(&gc));
81 gc.restore(); 81 gc.restore();
82 } 82 }
83 83
84 virtual String debugName(const GraphicsLayer* graphicsLayer) OVERRIDE 84 virtual String debugName(const GraphicsLayer* graphicsLayer) OVERRIDE
85 { 85 {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 // this is not on a critical codepath? In order to do so, we'd 161 // this is not on a critical codepath? In order to do so, we'd
162 // have to take scrolling into account. 162 // have to take scrolling into account.
163 const WebSize& size = m_viewImpl->size(); 163 const WebSize& size = m_viewImpl->size();
164 WebRect damagedRect(0, 0, size.width, size.height); 164 WebRect damagedRect(0, 0, size.width, size.height);
165 if (m_viewImpl->client()) 165 if (m_viewImpl->client())
166 m_viewImpl->client()->didInvalidateRect(damagedRect); 166 m_viewImpl->client()->didInvalidateRect(damagedRect);
167 } 167 }
168 } 168 }
169 169
170 } // namespace blink 170 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/LinkHighlight.cpp ('k') | Source/web/PinchViewports.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698