| Index: third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
|
| index 19648b8efe672fc0d1035c5e15861da336c850b4..861529eb2796ed0a44e05def4c45d7a6aaae055d 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/SubsequenceRecorder.cpp
|
| @@ -6,36 +6,11 @@
|
|
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
| -#include "platform/graphics/paint/CachedDisplayItem.h"
|
| #include "platform/graphics/paint/PaintController.h"
|
| #include "platform/graphics/paint/SubsequenceDisplayItem.h"
|
|
|
| namespace blink {
|
|
|
| -bool SubsequenceRecorder::useCachedSubsequenceIfPossible(GraphicsContext& context, const DisplayItemClient& client)
|
| -{
|
| - if (context.getPaintController().displayItemConstructionIsDisabled() || context.getPaintController().subsequenceCachingIsDisabled())
|
| - return false;
|
| -
|
| - if (!context.getPaintController().clientCacheIsValid(client))
|
| - return false;
|
| -
|
| - // TODO(pdr): Implement subsequence caching for spv2 (crbug.com/596983).
|
| - if (RuntimeEnabledFeatures::slimmingPaintV2Enabled())
|
| - return false;
|
| -
|
| - context.getPaintController().createAndAppend<CachedDisplayItem>(client, DisplayItem::CachedSubsequence);
|
| -
|
| -#if ENABLE(ASSERT)
|
| - // When under-invalidation checking is enabled, we output CachedSubsequence display item
|
| - // followed by forced painting of the subsequence.
|
| - if (RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled())
|
| - return false;
|
| -#endif
|
| -
|
| - return true;
|
| -}
|
| -
|
| SubsequenceRecorder::SubsequenceRecorder(GraphicsContext& context, const DisplayItemClient& client)
|
| : m_paintController(context.getPaintController())
|
| , m_client(client)
|
|
|