| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |