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

Unified Diff: Source/core/paint/ClipRecorder.h

Issue 719353004: [Slimming Paint] Track clip renderers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 1 month 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 | Source/core/paint/ClipRecorder.cpp » ('j') | Source/core/paint/ClipRecorder.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/paint/ClipRecorder.h
diff --git a/Source/core/paint/ClipRecorder.h b/Source/core/paint/ClipRecorder.h
index 3dfe3725f506b6f492f5944ba53aebd018e874cc..4fd370ab13452b7bc667c25a0b751a9f4df34349 100644
--- a/Source/core/paint/ClipRecorder.h
+++ b/Source/core/paint/ClipRecorder.h
@@ -19,7 +19,7 @@ class RenderLayer;
class ClipDisplayItem : public DisplayItem {
public:
- ClipDisplayItem(RenderObject* renderer, RenderLayer*, Type type, IntRect clipRect)
+ ClipDisplayItem(const RenderObject* renderer, RenderLayer*, Type type, IntRect clipRect)
leviw_travelin_and_unemployed 2014/11/13 01:46:40 This should be a RenderLayerModelObject.
pdr. 2014/11/13 06:49:29 Done
: DisplayItem(renderer, type), m_clipRect(clipRect) { }
Vector<RoundedRect>& roundedRectClips() { return m_roundedRectClips; }
@@ -36,7 +36,7 @@ private:
class EndClipDisplayItem : public DisplayItem {
public:
- EndClipDisplayItem() : DisplayItem(0, EndClip) { }
+ EndClipDisplayItem(const RenderObject* renderer) : DisplayItem(renderer, EndClip) { }
private:
virtual void replay(GraphicsContext*) override;
@@ -44,7 +44,7 @@ private:
class ClipRecorder {
public:
- explicit ClipRecorder(RenderLayer*, GraphicsContext*, DisplayItem::Type, const ClipRect&);
+ explicit ClipRecorder(const RenderObject*, RenderLayer*, GraphicsContext*, DisplayItem::Type, const ClipRect&);
void addRoundedRectClip(const RoundedRect&);
~ClipRecorder();
@@ -53,6 +53,7 @@ private:
ClipDisplayItem* m_clipDisplayItem;
GraphicsContext* m_graphicsContext;
RenderLayer* m_renderLayer;
leviw_travelin_and_unemployed 2014/11/13 01:46:40 We can kill the RenderLayer member, no?
pdr. 2014/11/13 06:49:29 R.I.P. RenderLayer member.
+ const RenderObject* m_renderer;
};
} // namespace blink
« no previous file with comments | « no previous file | Source/core/paint/ClipRecorder.cpp » ('j') | Source/core/paint/ClipRecorder.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698