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

Unified Diff: Source/core/paint/LayerClipRecorder.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/InlineTextBoxPainter.cpp ('k') | Source/core/paint/LayerClipRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/LayerClipRecorder.h
diff --git a/Source/core/paint/LayerClipRecorder.h b/Source/core/paint/LayerClipRecorder.h
index 517c9a35d88df6abc9dd55a234d5f752e773d8fa..55aecb67e7bc7b0c2709f476817b4211eb0625fd 100644
--- a/Source/core/paint/LayerClipRecorder.h
+++ b/Source/core/paint/LayerClipRecorder.h
@@ -34,18 +34,21 @@ public:
// same time we pass a fragmentOffset, so that we can translate from flow thread coordinates to
// visual coordinates. This may look rather confusing/redundant, but it is needed for rounded
// border clipping. Would be nice to clean up this.
- explicit LayerClipRecorder(GraphicsContext&, const LayoutBoxModelObject&, DisplayItem::Type, const ClipRect&, const DeprecatedPaintLayerPaintingInfo* localPaintingInfo, const LayoutPoint& fragmentOffset, PaintLayerFlags, BorderRadiusClippingRule = IncludeSelfForBorderRadius);
-
+ LayerClipRecorder(GraphicsContext&, DisplayItem::Type);
+ LayerClipRecorder(GraphicsContext&, const LayoutBoxModelObject&, DisplayItem::Type, const ClipRect&, const DeprecatedPaintLayerPaintingInfo* localPaintingInfo, const LayoutPoint& fragmentOffset, PaintLayerFlags, BorderRadiusClippingRule = IncludeSelfForBorderRadius);
~LayerClipRecorder();
+ void begin(const LayoutBoxModelObject& layoutObject, const ClipRect&, const DeprecatedPaintLayerPaintingInfo* localPaintingInfo, const LayoutPoint& fragmentOffset, PaintLayerFlags, BorderRadiusClippingRule = IncludeSelfForBorderRadius);
+
private:
void collectRoundedRectClips(DeprecatedPaintLayer&, const DeprecatedPaintLayerPaintingInfo& localPaintingInfo, GraphicsContext&, const LayoutPoint& fragmentOffset, PaintLayerFlags,
BorderRadiusClippingRule, Vector<FloatRoundedRect>& roundedRectClips);
GraphicsContext& m_graphicsContext;
- const LayoutBoxModelObject& m_layoutObject;
+ const LayoutBoxModelObject* m_layoutObject;
DisplayItem::Type m_clipType;
+ bool m_engaged;
};
} // namespace blink
« no previous file with comments | « Source/core/paint/InlineTextBoxPainter.cpp ('k') | Source/core/paint/LayerClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698