| 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 21 matching lines...) Expand all Loading... |
| 32 : DisplayItem(client, type) | 32 : DisplayItem(client, type) |
| 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 virtual void replay(GraphicsContext&); |
| 42 virtual void appendToWebDisplayItemList(WebDisplayItemList*) const override; | 42 void appendToWebDisplayItemList(WebDisplayItemList*) const override; |
| 43 virtual 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 #endif | 49 #endif |
| 50 | 50 |
| 51 private: | 51 private: |
| 52 #ifndef NDEBUG | 52 #ifndef NDEBUG |
| 53 virtual void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override
; | 53 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; |
| 54 #endif | 54 #endif |
| 55 | 55 |
| 56 RefPtr<const SkPicture> m_picture; | 56 RefPtr<const SkPicture> m_picture; |
| 57 | 57 |
| 58 #if ENABLE(ASSERT) | 58 #if ENABLE(ASSERT) |
| 59 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; | 59 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; |
| 60 #endif | 60 #endif |
| 61 }; | 61 }; |
| 62 | 62 |
| 63 } // namespace blink | 63 } // namespace blink |
| 64 | 64 |
| 65 #endif // DrawingDisplayItem_h | 65 #endif // DrawingDisplayItem_h |
| OLD | NEW |