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

Unified Diff: Source/platform/graphics/paint/DrawingRecorder.cpp

Issue 800553002: Disable drawing recorder cache for carets (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Cleanup Created 6 years 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: 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);
« Source/core/paint/BlockPainter.cpp ('K') | « Source/platform/graphics/paint/DrawingRecorder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698