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