| Index: third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
|
| index 94f60a12dee44e45e192353f555380960b9e3ff7..16d667642bfcf578b1a5a850f6d5cff1c1e85792 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h
|
| @@ -116,9 +116,6 @@ public:
|
| ReflectionMask,
|
| DrawingLast = ReflectionMask,
|
|
|
| - CachedDrawingFirst,
|
| - CachedDrawingLast = CachedDrawingFirst + DrawingLast - DrawingFirst,
|
| -
|
| ForeignLayerFirst,
|
| ForeignLayerPlugin = ForeignLayerFirst,
|
| ForeignLayerLast = ForeignLayerPlugin,
|
| @@ -182,7 +179,6 @@ public:
|
|
|
| Subsequence,
|
| EndSubsequence,
|
| - CachedSubsequence,
|
|
|
| UninitializedType,
|
| TypeLast = UninitializedType
|
| @@ -222,33 +218,11 @@ public:
|
| : client(client)
|
| , type(type) { }
|
|
|
| - bool matches(const DisplayItem& item) const
|
| - {
|
| - // We should always convert to non-cached types before matching.
|
| - ASSERT(!isCachedType(item.m_type));
|
| - ASSERT(!isCachedType(type));
|
| - return &client == item.m_client && type == item.m_type;
|
| - }
|
| -
|
| const DisplayItemClient& client;
|
| const Type type;
|
| };
|
|
|
| - // Convert cached type to non-cached type (e.g., Type::CachedSVGImage -> Type::SVGImage).
|
| - static Type nonCachedType(Type type)
|
| - {
|
| - if (isCachedDrawingType(type))
|
| - return cachedDrawingTypeToDrawingType(type);
|
| - if (type == CachedSubsequence)
|
| - return Subsequence;
|
| - return type;
|
| - }
|
| -
|
| - // Return the Id with cached type converted to non-cached type.
|
| - Id nonCachedId() const
|
| - {
|
| - return Id(*m_client, nonCachedType(m_type));
|
| - }
|
| + Id getId() const { return Id(*m_client, m_type); }
|
|
|
| virtual void replay(GraphicsContext&) const { }
|
|
|
| @@ -301,8 +275,6 @@ public:
|
|
|
| DEFINE_CATEGORY_METHODS(Drawing)
|
| DEFINE_PAINT_PHASE_CONVERSION_METHOD(Drawing)
|
| - DEFINE_CATEGORY_METHODS(CachedDrawing)
|
| - DEFINE_CONVERSION_METHODS(Drawing, drawing, CachedDrawing, cachedDrawing)
|
|
|
| DEFINE_CATEGORY_METHODS(ForeignLayer)
|
|
|
| @@ -319,8 +291,6 @@ public:
|
|
|
| DEFINE_PAIRED_CATEGORY_METHODS(Transform3D, transform3D)
|
|
|
| - static bool isCachedType(Type type) { return isCachedDrawingType(type) || type == CachedSubsequence; }
|
| - bool isCached() const { return isCachedType(m_type); }
|
| static bool isCacheableType(Type type) { return isDrawingType(type) || type == Subsequence; }
|
| bool isCacheable() const { return !skippedCache() && isCacheableType(m_type); }
|
|
|
| @@ -381,6 +351,16 @@ private:
|
| #endif
|
| };
|
|
|
| +inline bool operator==(const DisplayItem::Id& a, const DisplayItem::Id& b)
|
| +{
|
| + return a.client == b.client && a.type == b.type;
|
| +}
|
| +
|
| +inline bool operator!=(const DisplayItem::Id& a, const DisplayItem::Id& b)
|
| +{
|
| + return !(a == b);
|
| +}
|
| +
|
| class PLATFORM_EXPORT PairedBeginDisplayItem : public DisplayItem {
|
| protected:
|
| PairedBeginDisplayItem(const DisplayItemClient& client, Type type, size_t derivedSize) : DisplayItem(client, type, derivedSize) { }
|
|
|