| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 PaintChunker_h | 5 #ifndef PaintChunker_h |
| 6 #define PaintChunker_h | 6 #define PaintChunker_h |
| 7 | 7 |
| 8 #include "platform/PlatformExport.h" | 8 #include "platform/PlatformExport.h" |
| 9 #include "platform/graphics/paint/DisplayItem.h" | 9 #include "platform/graphics/paint/DisplayItem.h" |
| 10 #include "platform/graphics/paint/PaintChunk.h" | 10 #include "platform/graphics/paint/PaintChunk.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 DefaultBehavior = 0, | 66 DefaultBehavior = 0, |
| 67 | 67 |
| 68 // Item requires its own paint chunk. | 68 // Item requires its own paint chunk. |
| 69 RequiresSeparateChunk, | 69 RequiresSeparateChunk, |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 Vector<PaintChunk> m_chunks; | 72 Vector<PaintChunk> m_chunks; |
| 73 Vector<ItemBehavior> m_chunkBehavior; | 73 Vector<ItemBehavior> m_chunkBehavior; |
| 74 Optional<PaintChunk::Id> m_currentChunkId; | 74 Optional<PaintChunk::Id> m_currentChunkId; |
| 75 PaintChunkProperties m_currentProperties; | 75 PaintChunkProperties m_currentProperties; |
| 76 ItemBehavior m_nextDisplayItemBehavior; |
| 76 }; | 77 }; |
| 77 | 78 |
| 78 #if DCHECK_IS_ON() | 79 #if DCHECK_IS_ON() |
| 79 class DisableNullPaintPropertyChecks { | 80 class DisableNullPaintPropertyChecks { |
| 80 STACK_ALLOCATED(); | 81 STACK_ALLOCATED(); |
| 81 WTF_MAKE_NONCOPYABLE(DisableNullPaintPropertyChecks); | 82 WTF_MAKE_NONCOPYABLE(DisableNullPaintPropertyChecks); |
| 82 | 83 |
| 83 public: | 84 public: |
| 84 DisableNullPaintPropertyChecks(); | 85 DisableNullPaintPropertyChecks(); |
| 85 | 86 |
| 86 private: | 87 private: |
| 87 AutoReset<bool> m_disabler; | 88 AutoReset<bool> m_disabler; |
| 88 }; | 89 }; |
| 89 #endif // DCHECK_IS_ON() | 90 #endif // DCHECK_IS_ON() |
| 90 | 91 |
| 91 } // namespace blink | 92 } // namespace blink |
| 92 | 93 |
| 93 #endif // PaintChunker_h | 94 #endif // PaintChunker_h |
| OLD | NEW |