Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2894)

Unified Diff: Source/platform/graphics/paint/SubsequenceRecorder.h

Issue 1313223002: Simplify subtree (now subsequence) caching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Subtree => Subsequence Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698