| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef SubtreeRecorder_h | |
| 6 #define SubtreeRecorder_h | |
| 7 | |
| 8 #include "platform/graphics/paint/DisplayItemClient.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class DisplayItemList; | |
| 13 class GraphicsContext; | |
| 14 | |
| 15 // Records subtree information during painting. The recorder's life span covers | |
| 16 // all painting operations executed during the root of the subtree's paint metho
d | |
| 17 // for the paint phase. | |
| 18 class PLATFORM_EXPORT SubtreeRecorder { | |
| 19 public: | |
| 20 SubtreeRecorder(GraphicsContext&, const DisplayItemClientWrapper&, int paint
Phase); | |
| 21 ~SubtreeRecorder(); | |
| 22 | |
| 23 bool canUseCache() const; | |
| 24 | |
| 25 private: | |
| 26 DisplayItemList* m_displayItemList; | |
| 27 DisplayItemClientWrapper m_client; | |
| 28 const int m_paintPhase; | |
| 29 bool m_canUseCache; | |
| 30 #if ENABLE(ASSERT) | |
| 31 mutable bool m_checkedCanUseCache; | |
| 32 #endif | |
| 33 }; | |
| 34 | |
| 35 } // namespace blink | |
| 36 | |
| 37 #endif // SubtreeRecorder_h | |
| OLD | NEW |