| 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 20 matching lines...) Expand all Loading... |
| 31 ) | 31 ) |
| 32 : DisplayItem(client, type, sizeof(*this)) | 32 : DisplayItem(client, type, sizeof(*this)) |
| 33 , m_picture(picture && picture->approximateOpCount() ? picture : nullptr
) | 33 , m_picture(picture && picture->approximateOpCount() ? picture : nullptr
) |
| 34 #if ENABLE(ASSERT) | 34 #if ENABLE(ASSERT) |
| 35 , m_underInvalidationCheckingMode(underInvalidationCheckingMode) | 35 , m_underInvalidationCheckingMode(underInvalidationCheckingMode) |
| 36 #endif | 36 #endif |
| 37 { | 37 { |
| 38 ASSERT(isDrawingType(type)); | 38 ASSERT(isDrawingType(type)); |
| 39 } | 39 } |
| 40 | 40 |
| 41 virtual void replay(GraphicsContext&); | 41 void replay(GraphicsContext&) const override; |
| 42 void appendToWebDisplayItemList(WebDisplayItemList*) const override; | 42 void appendToWebDisplayItemList(WebDisplayItemList*) const override; |
| 43 bool drawsContent() const override; | 43 bool drawsContent() const override; |
| 44 | 44 |
| 45 const SkPicture* picture() const { return m_picture.get(); } | 45 const SkPicture* picture() const { return m_picture.get(); } |
| 46 | 46 |
| 47 #if ENABLE(ASSERT) | 47 #if ENABLE(ASSERT) |
| 48 UnderInvalidationCheckingMode underInvalidationCheckingMode() const { return
m_underInvalidationCheckingMode; } | 48 UnderInvalidationCheckingMode underInvalidationCheckingMode() const { return
m_underInvalidationCheckingMode; } |
| 49 bool equals(const DisplayItem& other) const final; | 49 bool equals(const DisplayItem& other) const final; |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 #ifndef NDEBUG | 53 #ifndef NDEBUG |
| 54 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; | 54 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 |