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

Unified Diff: third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp

Issue 2789533003: [SPv2] Stop recording paired display items (except for subsequence markers) (Closed)
Patch Set: none Created 3 years, 9 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
Index: third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp
index 1604b7b12c6126689fe47901e9fc46767c02f9a9..cca3328f15e5b547dcbfdca3b5dc1734896adcd2 100644
--- a/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp
+++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp
@@ -181,6 +181,9 @@ static void recordPairedEndDisplayItems(
static gfx::Rect largeRect(-200000, -200000, 400000, 400000);
static void appendDisplayItemToCcDisplayItemList(const DisplayItem& displayItem,
cc::DisplayItemList* list) {
+ DCHECK(DisplayItem::isDrawingType(displayItem.getType()) ||
+ displayItem.getType() == DisplayItem::kSubsequence ||
+ displayItem.getType() == DisplayItem::kEndSubsequence);
if (DisplayItem::isDrawingType(displayItem.getType())) {
sk_sp<const PaintRecord> record =
static_cast<const DrawingDisplayItem&>(displayItem).GetPaintRecord();

Powered by Google App Engine
This is Rietveld 408576698