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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 } | 42 } |
43 | 43 |
44 void replay(GraphicsContext&) const override; | 44 void replay(GraphicsContext&) const override; |
45 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o
verride; | 45 void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const o
verride; |
46 bool drawsContent() const override; | 46 bool drawsContent() const override; |
47 | 47 |
48 const SkPicture* picture() const { return m_picture.get(); } | 48 const SkPicture* picture() const { return m_picture.get(); } |
49 | 49 |
50 bool knownToBeOpaque() const { ASSERT(RuntimeEnabledFeatures::slimmingPaintV
2Enabled()); return m_knownToBeOpaque; } | 50 bool knownToBeOpaque() const { ASSERT(RuntimeEnabledFeatures::slimmingPaintV
2Enabled()); return m_knownToBeOpaque; } |
51 | 51 |
| 52 void analyzeForGpuRasterization(SkPictureGpuAnalyzer&) const override; |
| 53 |
52 #if ENABLE(ASSERT) | 54 #if ENABLE(ASSERT) |
53 UnderInvalidationCheckingMode getUnderInvalidationCheckingMode() const { ret
urn m_underInvalidationCheckingMode; } | 55 UnderInvalidationCheckingMode getUnderInvalidationCheckingMode() const { ret
urn m_underInvalidationCheckingMode; } |
54 bool equals(const DisplayItem& other) const final; | 56 bool equals(const DisplayItem& other) const final; |
55 #endif | 57 #endif |
56 | 58 |
57 private: | 59 private: |
58 #ifndef NDEBUG | 60 #ifndef NDEBUG |
59 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; | 61 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; |
60 #endif | 62 #endif |
61 | 63 |
62 RefPtr<const SkPicture> m_picture; | 64 RefPtr<const SkPicture> m_picture; |
63 | 65 |
64 // True if there are no transparent areas. Only used for SlimmingPaintV2. | 66 // True if there are no transparent areas. Only used for SlimmingPaintV2. |
65 const bool m_knownToBeOpaque; | 67 const bool m_knownToBeOpaque; |
66 | 68 |
67 #if ENABLE(ASSERT) | 69 #if ENABLE(ASSERT) |
68 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; | 70 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; |
69 #endif | 71 #endif |
70 }; | 72 }; |
71 | 73 |
72 } // namespace blink | 74 } // namespace blink |
73 | 75 |
74 #endif // DrawingDisplayItem_h | 76 #endif // DrawingDisplayItem_h |
OLD | NEW |