Index: Source/platform/graphics/paint/SubsequenceRecorder.h |
diff --git a/Source/platform/graphics/paint/SubsequenceRecorder.h b/Source/platform/graphics/paint/SubsequenceRecorder.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..62678d9d2ad757235fb6f25f97cfbf5d9eb5a708 |
--- /dev/null |
+++ b/Source/platform/graphics/paint/SubsequenceRecorder.h |
@@ -0,0 +1,32 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef SubsequenceRecorder_h |
+#define SubsequenceRecorder_h |
+ |
+#include "platform/graphics/paint/DisplayItemClient.h" |
+ |
+namespace blink { |
+ |
+class DisplayItemList; |
+class GraphicsContext; |
+ |
+// Records subsequence information during painting. The recorder's life span covers |
+// all painting operations executed during the root of the subsequence's paint method |
+// 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.
|
+class PLATFORM_EXPORT SubsequenceRecorder { |
+public: |
+ static bool useCachedSubsequenceIfPossible(GraphicsContext&, const DisplayItemClientWrapper&); |
+ |
+ SubsequenceRecorder(GraphicsContext&, const DisplayItemClientWrapper&); |
+ ~SubsequenceRecorder(); |
+ |
+private: |
+ DisplayItemList* m_displayItemList; |
+ DisplayItemClientWrapper m_client; |
+}; |
+ |
+} // namespace blink |
+ |
+#endif // SubsequenceRecorder_h |