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

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

Issue 1315993004: Implement a paint offset cache for slimming paint v2 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase more (world moved in the past hour) Created 5 years, 4 months 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
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemList.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/paint/DrawingRecorder.cpp
diff --git a/Source/platform/graphics/paint/DrawingRecorder.cpp b/Source/platform/graphics/paint/DrawingRecorder.cpp
index d24abbc264209f9c7aa4e70be8aa6e6a826365d8..3d9887588f8b162107d3bd085ed33ba00d1c0eb2 100644
--- a/Source/platform/graphics/paint/DrawingRecorder.cpp
+++ b/Source/platform/graphics/paint/DrawingRecorder.cpp
@@ -49,7 +49,8 @@ DrawingRecorder::DrawingRecorder(GraphicsContext& context, const DisplayItemClie
return;
// Must check DrawingRecorder::useCachedDrawingIfPossible before creating the DrawingRecorder.
- ASSERT(!useCachedDrawingIfPossible(m_context, m_displayItemClient, m_displayItemType));
+ ASSERT((RuntimeEnabledFeatures::slimmingPaintV2Enabled() && context.displayItemList()->paintOffsetWasInvalidated(displayItemClient.displayItemClient()))
+ || !useCachedDrawingIfPossible(m_context, m_displayItemClient, m_displayItemType));
ASSERT(DisplayItem::isDrawingType(displayItemType));
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemList.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698