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" |
11 #include "platform/graphics/paint/DisplayItem.h" | 11 #include "platform/graphics/paint/DisplayItem.h" |
12 #include "third_party/skia/include/core/SkPicture.h" | 12 #include "third_party/skia/include/core/SkPicture.h" |
| 13 #include "wtf/PassOwnPtr.h" |
13 | 14 |
14 namespace blink { | 15 namespace blink { |
15 | 16 |
16 class PLATFORM_EXPORT DrawingDisplayItem final : public DisplayItem { | 17 class PLATFORM_EXPORT DrawingDisplayItem final : public DisplayItem { |
17 public: | 18 public: |
18 #if ENABLE(ASSERT) | 19 #if ENABLE(ASSERT) |
19 enum UnderInvalidationCheckingMode { | 20 enum UnderInvalidationCheckingMode { |
20 CheckPicture, // Check if the new picture and the old picture are the sa
me | 21 CheckPicture, // Check if the new picture and the old picture are the sa
me |
21 CheckBitmap, // Check if the new picture and the old picture produce the
same bitmap | 22 CheckBitmap, // Check if the new picture and the old picture produce the
same bitmap |
22 }; | 23 }; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const bool m_knownToBeOpaque; | 67 const bool m_knownToBeOpaque; |
67 | 68 |
68 #if ENABLE(ASSERT) | 69 #if ENABLE(ASSERT) |
69 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; | 70 UnderInvalidationCheckingMode m_underInvalidationCheckingMode; |
70 #endif | 71 #endif |
71 }; | 72 }; |
72 | 73 |
73 } // namespace blink | 74 } // namespace blink |
74 | 75 |
75 #endif // DrawingDisplayItem_h | 76 #endif // DrawingDisplayItem_h |
OLD | NEW |