Chromium Code Reviews| 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 SubsequenceRecorder_h | |
| 6 #define SubsequenceRecorder_h | |
| 7 | |
| 8 #include "platform/graphics/paint/DisplayItemClient.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class DisplayItemList; | |
| 13 class GraphicsContext; | |
| 14 | |
| 15 // Records subsequence information during painting. The recorder's life span cov ers | |
| 16 // all painting operations executed during the root of the subsequence's paint m ethod | |
| 17 // for the paint phase. | |
|
chrishtr
2015/08/26 23:34:23
This comment is not quite accurate, because it dep
Xianzhu
2015/08/26 23:42:36
The new comment looks great. Thanks.
Done.
| |
| 18 class PLATFORM_EXPORT SubsequenceRecorder { | |
| 19 public: | |
| 20 static bool useCachedSubsequenceIfPossible(GraphicsContext&, const DisplayIt emClientWrapper&); | |
| 21 | |
| 22 SubsequenceRecorder(GraphicsContext&, const DisplayItemClientWrapper&); | |
| 23 ~SubsequenceRecorder(); | |
| 24 | |
| 25 private: | |
| 26 DisplayItemList* m_displayItemList; | |
| 27 DisplayItemClientWrapper m_client; | |
| 28 }; | |
| 29 | |
| 30 } // namespace blink | |
| 31 | |
| 32 #endif // SubsequenceRecorder_h | |
| OLD | NEW |