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

Unified Diff: Source/core/paint/ScrollRecorder.h

Issue 1144203004: Allow certain SP recorder classes to defer their "begin" operation. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 7 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
« no previous file with comments | « Source/core/paint/ScopeRecorder.cpp ('k') | Source/core/paint/ScrollRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ScrollRecorder.h
diff --git a/Source/core/paint/ScrollRecorder.h b/Source/core/paint/ScrollRecorder.h
index f0421a28316f36ce37a9e9f39a0b1aede24152ae..46f564b00480b3eba6f4b488d5b5d7855494d982 100644
--- a/Source/core/paint/ScrollRecorder.h
+++ b/Source/core/paint/ScrollRecorder.h
@@ -9,6 +9,7 @@
#include "core/paint/PaintPhase.h"
#include "platform/geometry/IntSize.h"
#include "platform/graphics/paint/DisplayItem.h"
+#include "platform/heap/GarbageCollected.h"
#include "wtf/FastAllocBase.h"
namespace blink {
@@ -20,12 +21,15 @@ class GraphicsContext;
class CORE_EXPORT ScrollRecorder {
WTF_MAKE_FAST_ALLOCATED(ScrollRecorder);
public:
+ ScrollRecorder(GraphicsContext&, const DisplayItemClientWrapper&, PaintPhase);
ScrollRecorder(GraphicsContext&, const DisplayItemClientWrapper&, PaintPhase, const IntSize& currentOffset);
~ScrollRecorder();
+ void begin(const IntSize& currentOffset);
private:
DisplayItemClientWrapper m_client;
DisplayItem::Type m_beginItemType;
GraphicsContext& m_context;
+ bool m_engaged;
};
} // namespace blink
« no previous file with comments | « Source/core/paint/ScopeRecorder.cpp ('k') | Source/core/paint/ScrollRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698