| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef DrawingDisplayItem_h | 5 #ifndef DrawingDisplayItem_h |
| 6 #define DrawingDisplayItem_h | 6 #define DrawingDisplayItem_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/geometry/FloatPoint.h" | 9 #include "platform/geometry/FloatPoint.h" |
| 10 #include "platform/graphics/paint/DisplayItem.h" | 10 #include "platform/graphics/paint/DisplayItem.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 static PassOwnPtr<DrawingDisplayItem> create(const DisplayItemClientWrapper&
client, Type type, PassRefPtr<const SkPicture> picture) | 36 static PassOwnPtr<DrawingDisplayItem> create(const DisplayItemClientWrapper&
client, Type type, PassRefPtr<const SkPicture> picture) |
| 37 { | 37 { |
| 38 return adoptPtr(new DrawingDisplayItem(client, type, picture)); | 38 return adoptPtr(new DrawingDisplayItem(client, type, picture)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 virtual void replay(GraphicsContext&); | 41 virtual void replay(GraphicsContext&); |
| 42 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; | 42 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; |
| 43 virtual bool drawsContent() const override; | 43 virtual bool drawsContent() const override; |
| 44 | 44 |
| 45 PassRefPtr<const SkPicture> picture() const { return m_picture; } | 45 const SkPicture* picture() const { return m_picture.get(); } |
| 46 | 46 |
| 47 #if ENABLE(ASSERT) | 47 #if ENABLE(ASSERT) |
| 48 void setUnderInvalidationCheckingMode(UnderInvalidationCheckingMode mode) {
m_underInvalidationCheckingMode = mode; } | 48 void setUnderInvalidationCheckingMode(UnderInvalidationCheckingMode mode) {
m_underInvalidationCheckingMode = mode; } |
| 49 UnderInvalidationCheckingMode underInvalidationCheckingMode() const { return
m_underInvalidationCheckingMode; } | 49 UnderInvalidationCheckingMode underInvalidationCheckingMode() const { return
m_underInvalidationCheckingMode; } |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 #ifndef NDEBUG | 53 #ifndef NDEBUG |
| 54 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override
; | 54 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override
; |
| 55 #endif | 55 #endif |
| 56 | 56 |
| 57 RefPtr<const SkPicture> m_picture; | 57 RefPtr<const SkPicture> m_picture; |
| 58 | 58 |
| 59 #if ENABLE(ASSERT) | 59 #if ENABLE(ASSERT) |
| 60 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; | 60 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; |
| 61 #endif | 61 #endif |
| 62 }; | 62 }; |
| 63 | 63 |
| 64 } // namespace blink | 64 } // namespace blink |
| 65 | 65 |
| 66 #endif // DrawingDisplayItem_h | 66 #endif // DrawingDisplayItem_h |
| OLD | NEW |