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

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

Issue 718943003: Rename updateIntrinsicContentLogicalHeight to setIntrinsicContentLogicalHeight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Tryin' again Created 6 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
Index: Source/platform/graphics/paint/ClipDisplayItem.h
diff --git a/Source/platform/graphics/paint/ClipDisplayItem.h b/Source/platform/graphics/paint/ClipDisplayItem.h
index 856269fa70d6449a134ee07f078ec8c3dfff7bfe..28b04d6cd55c3945ef5d78d3789ae833c8f453aa 100644
--- a/Source/platform/graphics/paint/ClipDisplayItem.h
+++ b/Source/platform/graphics/paint/ClipDisplayItem.h
@@ -5,6 +5,7 @@
#ifndef ClipDisplayItem_h
#define ClipDisplayItem_h
+#include "SkRegion.h"
#include "platform/PlatformExport.h"
#include "platform/geometry/IntRect.h"
#include "platform/graphics/paint/DisplayItem.h"
@@ -16,8 +17,8 @@ class RoundedRect;
class PLATFORM_EXPORT ClipDisplayItem : public DisplayItem {
public:
- ClipDisplayItem(DisplayItemClient client, Type type, IntRect clipRect)
- : DisplayItem(client, type), m_clipRect(clipRect) { }
+ ClipDisplayItem(DisplayItemClient client, Type type, IntRect clipRect, SkRegion::Op operation = SkRegion::kIntersect_Op)
+ : DisplayItem(client, type), m_clipRect(clipRect), m_operation(operation) { }
virtual void replay(GraphicsContext*) override;
@@ -26,6 +27,7 @@ public:
private:
IntRect m_clipRect;
Vector<RoundedRect> m_roundedRectClips;
+ SkRegion::Op m_operation;
#ifndef NDEBUG
virtual WTF::String asDebugString() const override;
#endif
« no previous file with comments | « Source/platform/graphics/GraphicsContextStateSaver.cpp ('k') | Source/platform/graphics/paint/ClipDisplayItem.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698