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

Unified Diff: Source/platform/graphics/paint/ClipDisplayItem.h

Issue 1198583003: Remove SkRegion::kIntersect_Op parameter from ClipDisplayItems (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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 | « no previous file | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/ClipDisplayItem.h
diff --git a/Source/platform/graphics/paint/ClipDisplayItem.h b/Source/platform/graphics/paint/ClipDisplayItem.h
index c065f0ec061a36dc84478545fc7df2eb362935a6..08ad31a99f660a39247ec1f114d6e4dae4ea6558 100644
--- a/Source/platform/graphics/paint/ClipDisplayItem.h
+++ b/Source/platform/graphics/paint/ClipDisplayItem.h
@@ -18,15 +18,14 @@ namespace blink {
class PLATFORM_EXPORT ClipDisplayItem : public PairedBeginDisplayItem {
WTF_MAKE_FAST_ALLOCATED(ClipDisplayItem);
public:
- static PassOwnPtr<ClipDisplayItem> create(const DisplayItemClientWrapper& client, Type type, const IntRect& clipRect, SkRegion::Op operation = SkRegion::kIntersect_Op)
+ static PassOwnPtr<ClipDisplayItem> create(const DisplayItemClientWrapper& client, Type type, const IntRect& clipRect)
{
- return adoptPtr(new ClipDisplayItem(client, type, clipRect, operation));
+ return adoptPtr(new ClipDisplayItem(client, type, clipRect));
}
- ClipDisplayItem(const DisplayItemClientWrapper& client, Type type, const IntRect& clipRect, SkRegion::Op operation = SkRegion::kIntersect_Op)
+ ClipDisplayItem(const DisplayItemClientWrapper& client, Type type, const IntRect& clipRect)
: PairedBeginDisplayItem(client, type)
, m_clipRect(clipRect)
- , m_operation(operation)
{
ASSERT(isClipType(type));
}
@@ -42,7 +41,6 @@ private:
#endif
IntRect m_clipRect;
Vector<FloatRoundedRect> m_roundedRectClips;
- SkRegion::Op m_operation;
};
class PLATFORM_EXPORT EndClipDisplayItem : public PairedEndDisplayItem {
« no previous file with comments | « no previous file | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698