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

Unified Diff: Source/platform/graphics/paint/ClipRecorder.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/svg/graphics/SVGImage.cpp ('k') | Source/platform/graphics/paint/ClipRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/ClipRecorder.h
diff --git a/Source/platform/graphics/paint/ClipRecorder.h b/Source/platform/graphics/paint/ClipRecorder.h
index 5418754cfa8046d30723715edc68e1f56fdf0c29..4b9942403d8f15ee29847d3730a453b131f80188 100644
--- a/Source/platform/graphics/paint/ClipRecorder.h
+++ b/Source/platform/graphics/paint/ClipRecorder.h
@@ -16,12 +16,16 @@ class GraphicsContext;
class PLATFORM_EXPORT ClipRecorder {
WTF_MAKE_FAST_ALLOCATED(ClipRecorder);
public:
+ ClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem::Type);
ClipRecorder(GraphicsContext&, const DisplayItemClientWrapper&, DisplayItem::Type, const LayoutRect& clipRect, SkRegion::Op = SkRegion::kIntersect_Op);
~ClipRecorder();
+
+ void begin(const LayoutRect& clipRect, SkRegion::Op = SkRegion::kIntersect_Op);
private:
DisplayItemClientWrapper m_client;
GraphicsContext& m_context;
DisplayItem::Type m_type;
+ bool m_engaged;
};
} // namespace blink
« no previous file with comments | « Source/core/svg/graphics/SVGImage.cpp ('k') | Source/platform/graphics/paint/ClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698