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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h

Issue 2286843002: Rename DisplayItem::Type enum constants to Chromium style. (Closed)
Patch Set: Rebasing... Created 4 years, 4 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
Index: third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
index 34d4b5ba0b17b98841dbdb679fac8b94aa6aaa87..0a2c6591e24c6245a9132b51856967e4161eaa0d 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/FilterDisplayItem.h
@@ -19,7 +19,7 @@ namespace blink {
class PLATFORM_EXPORT BeginFilterDisplayItem final : public PairedBeginDisplayItem {
public:
BeginFilterDisplayItem(const DisplayItemClient& client, sk_sp<SkImageFilter> imageFilter, const FloatRect& bounds, const FloatPoint& origin, CompositorFilterOperations filterOperations)
- : PairedBeginDisplayItem(client, BeginFilter, sizeof(*this))
+ : PairedBeginDisplayItem(client, kBeginFilter, sizeof(*this))
, m_imageFilter(std::move(imageFilter))
, m_compositorFilterOperations(std::move(filterOperations))
, m_bounds(bounds)
@@ -53,14 +53,14 @@ private:
class PLATFORM_EXPORT EndFilterDisplayItem final : public PairedEndDisplayItem {
public:
EndFilterDisplayItem(const DisplayItemClient& client)
- : PairedEndDisplayItem(client, EndFilter, sizeof(*this)) { }
+ : PairedEndDisplayItem(client, kEndFilter, sizeof(*this)) { }
void replay(GraphicsContext&) const override;
void appendToWebDisplayItemList(const IntRect&, WebDisplayItemList*) const override;
private:
#if ENABLE(ASSERT)
- bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return otherType == BeginFilter; }
+ bool isEndAndPairedWith(DisplayItem::Type otherType) const final { return otherType == kBeginFilter; }
#endif
};

Powered by Google App Engine
This is Rietveld 408576698