| Index: third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| index 4558b88dcaa34853c96606257d7d6a9362a8a1bc..e44b9ffe43ac3c23eec801b5b1e8d510c09d375f 100644
|
| --- a/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| +++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| @@ -7,7 +7,6 @@
|
| #include "platform/RuntimeEnabledFeatures.h"
|
| #include "platform/graphics/GraphicsContext.h"
|
| #include "platform/graphics/GraphicsLayer.h"
|
| -#include "platform/graphics/paint/CachedDisplayItem.h"
|
| #include "platform/graphics/paint/PaintController.h"
|
| #include "third_party/skia/include/core/SkPicture.h"
|
|
|
| @@ -15,21 +14,7 @@ namespace blink {
|
|
|
| bool DrawingRecorder::useCachedDrawingIfPossible(GraphicsContext& context, const DisplayItemClient& client, DisplayItem::Type type)
|
| {
|
| - ASSERT(DisplayItem::isDrawingType(type));
|
| -
|
| - if (!context.getPaintController().clientCacheIsValid(client))
|
| - return false;
|
| -
|
| - context.getPaintController().createAndAppend<CachedDisplayItem>(client, DisplayItem::drawingTypeToCachedDrawingType(type));
|
| -
|
| -#if ENABLE(ASSERT)
|
| - // When under-invalidation checking is enabled, we output CachedDrawing display item
|
| - // followed by the display item containing forced painting.
|
| - if (RuntimeEnabledFeatures::slimmingPaintUnderInvalidationCheckingEnabled())
|
| - return false;
|
| -#endif
|
| -
|
| - return true;
|
| + return context.getPaintController().useCachedDrawingIfPossible(client, type);
|
| }
|
|
|
| DrawingRecorder::DrawingRecorder(GraphicsContext& context, const DisplayItemClient& displayItemClient, DisplayItem::Type displayItemType, const FloatRect& cullRect)
|
|
|