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 DCHECK_IS_ON() | 36 #if ENABLE(ASSERT) |
37 bool equals(const DisplayItem& other) const final; | 37 bool equals(const DisplayItem& other) const final; |
38 #endif | 38 #endif |
39 | 39 |
40 private: | 40 private: |
41 #ifndef NDEBUG | 41 #ifndef NDEBUG |
42 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; | 42 void dumpPropertiesAsDebugString(WTF::StringBuilder&) const override; |
43 #endif | 43 #endif |
44 | 44 |
45 RefPtr<const SkPicture> m_picture; | 45 RefPtr<const SkPicture> m_picture; |
46 | 46 |
47 // True if there are no transparent areas. Only used for SlimmingPaintV2. | 47 // True if there are no transparent areas. Only used for SlimmingPaintV2. |
48 const bool m_knownToBeOpaque; | 48 const bool m_knownToBeOpaque; |
49 }; | 49 }; |
50 | 50 |
51 } // namespace blink | 51 } // namespace blink |
52 | 52 |
53 #endif // DrawingDisplayItem_h | 53 #endif // DrawingDisplayItem_h |
OLD | NEW |