OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 class PLATFORM_EXPORT ContentLayerDelegate : public WebContentLayerClient { | 56 class PLATFORM_EXPORT ContentLayerDelegate : public WebContentLayerClient { |
57 WTF_MAKE_NONCOPYABLE(ContentLayerDelegate); | 57 WTF_MAKE_NONCOPYABLE(ContentLayerDelegate); |
58 | 58 |
59 public: | 59 public: |
60 explicit ContentLayerDelegate(GraphicsContextPainter*); | 60 explicit ContentLayerDelegate(GraphicsContextPainter*); |
61 ~ContentLayerDelegate() override; | 61 ~ContentLayerDelegate() override; |
62 | 62 |
63 gfx::Rect paintableRegion() override; | 63 gfx::Rect paintableRegion() override; |
64 | 64 |
65 // WebContentLayerClient implementation. | 65 // WebContentLayerClient implementation. |
66 void paintContents(WebDisplayItemList*, const WebRect& clip, WebContentLayer
Client::PaintingControlSetting = PaintDefaultBehavior) override; | 66 void paintContents(WebDisplayItemList*, WebContentLayerClient::PaintingContr
olSetting = PaintDefaultBehavior) override; |
67 size_t approximateUnsharedMemoryUsage() const override; | 67 size_t approximateUnsharedMemoryUsage() const override; |
68 | 68 |
69 private: | 69 private: |
70 GraphicsContextPainter* m_painter; | 70 GraphicsContextPainter* m_painter; |
71 }; | 71 }; |
72 | 72 |
73 } // namespace blink | 73 } // namespace blink |
74 | 74 |
75 #endif // ContentLayerDelegate_h | 75 #endif // ContentLayerDelegate_h |
OLD | NEW |