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

Unified Diff: third_party/WebKit/Source/core/paint/LayerClipRecorder.h

Issue 2581243002: Simplify and speed up painting of clipping masks (Closed)
Patch Set: Fix cases with no clip recorder Created 4 years 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 | « no previous file | third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/paint/LayerClipRecorder.h
diff --git a/third_party/WebKit/Source/core/paint/LayerClipRecorder.h b/third_party/WebKit/Source/core/paint/LayerClipRecorder.h
index b8e3aca3abc84f52a5b7ad1f2b4daa84cbbc2d14..de0f6910f85d23c3bef99ed427ab0930c0b520a5 100644
--- a/third_party/WebKit/Source/core/paint/LayerClipRecorder.h
+++ b/third_party/WebKit/Source/core/paint/LayerClipRecorder.h
@@ -53,18 +53,25 @@ class CORE_EXPORT LayerClipRecorder {
~LayerClipRecorder();
+ // Access to clip rects to support filling mask layers.
+ const IntRect& snappedClipRect() const { return m_snappedClipRect; }
+ const Vector<FloatRoundedRect>& roundedRects() const {
+ return m_roundedRects;
+ }
+
private:
void collectRoundedRectClips(PaintLayer&,
const PaintLayerPaintingInfo& localPaintingInfo,
GraphicsContext&,
const LayoutPoint& fragmentOffset,
PaintLayerFlags,
- BorderRadiusClippingRule,
- Vector<FloatRoundedRect>& roundedRectClips);
+ BorderRadiusClippingRule);
GraphicsContext& m_graphicsContext;
const LayoutBoxModelObject& m_layoutObject;
DisplayItem::Type m_clipType;
+ IntRect m_snappedClipRect;
+ Vector<FloatRoundedRect> m_roundedRects;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/paint/LayerClipRecorder.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698