| 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 LayoutRect visualRect() const override; | 65 LayoutRect visualRect() const override; |
| 66 | 66 |
| 67 // GraphicsLayerClient implementation | 67 // GraphicsLayerClient implementation |
| 68 bool needsRepaint(const GraphicsLayer&) const { return true; } | 68 bool needsRepaint(const GraphicsLayer&) const { return true; } |
| 69 IntRect computeInterestRect(const GraphicsLayer*, const IntRect&) const over
ride; | 69 IntRect computeInterestRect(const GraphicsLayer*, const IntRect&) const over
ride; |
| 70 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect& interestRect) const override; | 70 void paintContents(const GraphicsLayer*, GraphicsContext&, GraphicsLayerPain
tingPhase, const IntRect& interestRect) const override; |
| 71 String debugName(const GraphicsLayer*) const override; | 71 String debugName(const GraphicsLayer*) const override; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 PageOverlay(WebViewImpl*, std::unique_ptr<PageOverlay::Delegate>); | 74 PageOverlay(WebViewImpl*, std::unique_ptr<PageOverlay::Delegate>); |
| 75 DISPLAY_ITEM_CACHE_STATUS_UNCACHEABLE_IMPLEMENTATION |
| 75 | 76 |
| 76 WebViewImpl* m_viewImpl; | 77 WebViewImpl* m_viewImpl; |
| 77 std::unique_ptr<PageOverlay::Delegate> m_delegate; | 78 std::unique_ptr<PageOverlay::Delegate> m_delegate; |
| 78 std::unique_ptr<GraphicsLayer> m_layer; | 79 std::unique_ptr<GraphicsLayer> m_layer; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 } // namespace blink | 82 } // namespace blink |
| 82 | 83 |
| 83 #endif // PageOverlay_h | 84 #endif // PageOverlay_h |
| OLD | NEW |