OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef ClipDisplayItem_h |
| 6 #define ClipDisplayItem_h |
| 7 |
| 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/IntRect.h" |
| 10 #include "platform/graphics/paint/DisplayItem.h" |
| 11 #include "wtf/Vector.h" |
| 12 |
| 13 namespace blink { |
| 14 |
| 15 class RoundedRect; |
| 16 |
| 17 class PLATFORM_EXPORT ClipDisplayItem : public DisplayItem { |
| 18 public: |
| 19 ClipDisplayItem(DisplayItemClient client, Type type, IntRect clipRect) |
| 20 : DisplayItem(client, type), m_clipRect(clipRect) { } |
| 21 |
| 22 Vector<RoundedRect>& roundedRectClips() { return m_roundedRectClips; } |
| 23 |
| 24 private: |
| 25 virtual void replay(GraphicsContext*) override; |
| 26 |
| 27 IntRect m_clipRect; |
| 28 Vector<RoundedRect> m_roundedRectClips; |
| 29 #ifndef NDEBUG |
| 30 virtual WTF::String asDebugString() const override; |
| 31 #endif |
| 32 }; |
| 33 |
| 34 class PLATFORM_EXPORT EndClipDisplayItem : public DisplayItem { |
| 35 public: |
| 36 EndClipDisplayItem() : DisplayItem(0, EndClip) { } |
| 37 |
| 38 private: |
| 39 virtual void replay(GraphicsContext*) override; |
| 40 }; |
| 41 |
| 42 } // namespace blink |
| 43 |
| 44 #endif // ClipDisplayItem_h |
OLD | NEW |