| Index: Source/platform/graphics/paint/DrawingRecorder.cpp
|
| diff --git a/Source/platform/graphics/paint/DrawingRecorder.cpp b/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| index 5980def66b7d3acbef2747f5ab227ac62b713263..57b904909757484c1dc51cacf88f1c03527d4198 100644
|
| --- a/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| +++ b/Source/platform/graphics/paint/DrawingRecorder.cpp
|
| @@ -19,7 +19,7 @@ namespace blink {
|
| static bool s_inDrawingRecorder = false;
|
| #endif
|
|
|
| -DrawingRecorder::DrawingRecorder(GraphicsContext* context, const DisplayItemClient displayItemClient, DisplayItem::Type displayItemType, const FloatRect& bounds)
|
| +DrawingRecorder::DrawingRecorder(GraphicsContext* context, const DisplayItemClient displayItemClient, DisplayItem::Type displayItemType, const FloatRect& bounds, CachePolicy cachePolicy)
|
| : m_context(context)
|
| , m_displayItemClient(displayItemClient)
|
| , m_displayItemType(displayItemType)
|
| @@ -34,7 +34,9 @@ DrawingRecorder::DrawingRecorder(GraphicsContext* context, const DisplayItemClie
|
| s_inDrawingRecorder = true;
|
| #endif
|
|
|
| - m_canUseCachedDrawing = context->displayItemList()->clientCacheIsValid(displayItemClient);
|
| + if (cachePolicy != DisableCache)
|
| + m_canUseCachedDrawing = context->displayItemList()->clientCacheIsValid(displayItemClient);
|
| +
|
| // FIXME: beginRecording only if !m_canUseCachedDrawing or ENABLE(ASSERT)
|
| // after all painters call canUseCachedDrawing().
|
| m_context->beginRecording(bounds);
|
|
|