| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |