| 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/RuntimeEnabledFeatures.h" | 9 #include "platform/RuntimeEnabledFeatures.h" |
| 10 #include "platform/geometry/FloatPoint.h" | 10 #include "platform/geometry/FloatPoint.h" |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 void replay(GraphicsContext&) const override; | 27 void replay(GraphicsContext&) const override; |
| 28 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o
verride; | 28 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o
verride; |
| 29 bool drawsContent() const override; | 29 bool drawsContent() const override; |
| 30 | 30 |
| 31 const SkPicture* picture() const { return m_picture.get(); } | 31 const SkPicture* picture() const { return m_picture.get(); } |
| 32 | 32 |
| 33 bool knownToBeOpaque() const { DCHECK(RuntimeEnabledFeatures::slimmingPaintV
2Enabled()); return m_knownToBeOpaque; } | 33 bool knownToBeOpaque() const { DCHECK(RuntimeEnabledFeatures::slimmingPaintV
2Enabled()); return m_knownToBeOpaque; } |
| 34 | 34 |
| 35 void analyzeForGpuRasterization(SkPictureGpuAnalyzer&) const override; | 35 void analyzeForGpuRasterization(SkPictureGpuAnalyzer&) const override; |
| 36 | 36 |
| 37 #if ENABLE(ASSERT) |
| 38 bool equals(const DisplayItem& other) const final; |
| 39 #endif |
| 40 |
| 37 private: | 41 private: |
| 38 #ifndef NDEBUG | 42 #ifndef NDEBUG |
| 39 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; | 43 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; |
| 40 #endif | 44 #endif |
| 41 bool equals(const DisplayItem& other) const final; | |
| 42 | 45 |
| 43 sk_sp<const SkPicture> m_picture; | 46 sk_sp<const SkPicture> m_picture; |
| 44 | 47 |
| 45 // True if there are no transparent areas. Only used for SlimmingPaintV2. | 48 // True if there are no transparent areas. Only used for SlimmingPaintV2. |
| 46 const bool m_knownToBeOpaque; | 49 const bool m_knownToBeOpaque; |
| 47 }; | 50 }; |
| 48 | 51 |
| 49 } // namespace blink | 52 } // namespace blink |
| 50 | 53 |
| 51 #endif // DrawingDisplayItem_h | 54 #endif // DrawingDisplayItem_h |
| OLD | NEW |