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

Unified Diff: Source/platform/graphics/paint/DrawingRecorder.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/platform/graphics/paint/ClipRecorder.cpp ('k') | Source/platform/graphics/paint/DrawingRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DrawingRecorder.h
diff --git a/Source/platform/graphics/paint/DrawingRecorder.h b/Source/platform/graphics/paint/DrawingRecorder.h
index 2d399a65197d52aa81166690650d6defc74b98d9..be4f32bd0aae914c89074f2d5ebee5fc00c26945 100644
--- a/Source/platform/graphics/paint/DrawingRecorder.h
+++ b/Source/platform/graphics/paint/DrawingRecorder.h
@@ -20,9 +20,12 @@ class GraphicsContext;
class PLATFORM_EXPORT DrawingRecorder {
public:
+ DrawingRecorder(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem::Type);
DrawingRecorder(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem::Type, const FloatRect& cullRect);
~DrawingRecorder();
+ void begin(const FloatRect& cullRect);
+
bool canUseCachedDrawing() const
{
#if ENABLE(ASSERT)
@@ -40,6 +43,7 @@ private:
DisplayItemClientWrapper m_displayItemClient;
const DisplayItem::Type m_displayItemType;
bool m_canUseCachedDrawing;
+ bool m_engaged;
#if ENABLE(ASSERT)
mutable bool m_checkedCachedDrawing;
size_t m_displayItemPosition;
« no previous file with comments | « Source/platform/graphics/paint/ClipRecorder.cpp ('k') | Source/platform/graphics/paint/DrawingRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698