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

Unified Diff: Source/core/paint/ScopeRecorder.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/SVGShapePainter.cpp ('k') | Source/core/paint/ScopeRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ScopeRecorder.h
diff --git a/Source/core/paint/ScopeRecorder.h b/Source/core/paint/ScopeRecorder.h
index ac7dccc2fceec6ff3bf4f59cde042a179b7c6832..af8b380686e910d5d0d29653fe5df5bbd0861c44 100644
--- a/Source/core/paint/ScopeRecorder.h
+++ b/Source/core/paint/ScopeRecorder.h
@@ -15,12 +15,16 @@ class LayoutObject;
class ScopeRecorder {
public:
- ScopeRecorder(GraphicsContext&, const LayoutObject&);
+ enum ShouldBegin { BeginOnConstruction, DeferBegin };
+ ScopeRecorder(GraphicsContext&, const LayoutObject&, ShouldBegin = BeginOnConstruction);
~ScopeRecorder();
+ void begin();
+
private:
DisplayItemList* m_displayItemList;
const LayoutObject& m_object;
+ bool m_engaged;
};
} // namespace blink
« no previous file with comments | « Source/core/paint/SVGShapePainter.cpp ('k') | Source/core/paint/ScopeRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698