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

Issue 1287863003: Avoid re-iterate out-of-order display items (Closed)

Created:
5 years, 4 months ago by Xianzhu
Modified:
5 years, 4 months ago
Reviewers:
pdr., jbroman
CC:
blink-reviews, Rik, danakj, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Avoid re-iterate out-of-order display items Previously for the following case: current display items: A B C D new display items: C B A D A and B in current display items will be skipped and indexed when adding C, then the index will be used when adding B and A. When adding D, currentIt points to A, and B and C will be iterated again. Add nextItemToIndexIt variable to memorize the place to index, to avoid repeated iteration. BTW - Change DisplayItem::ignoreInDisplayList() to (!)DisplayItem::isValid() - Let currentIt point to the next item of the item just being copied so that we can synchronize sooner in some cases. Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200736

Patch Set 1 #

Patch Set 2 : #

Total comments: 4

Patch Set 3 : Address pdr's comments #

Total comments: 7

Patch Set 4 : Address pdr's comments #

Patch Set 5 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -45 lines) Patch
M Source/platform/graphics/ContiguousContainer.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/platform/graphics/paint/DisplayItem.h View 1 2 3 4 5 chunks +5 lines, -8 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItem.cpp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItemList.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItemList.cpp View 1 2 3 10 chunks +42 lines, -34 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 15 (6 generated)
Xianzhu
5 years, 4 months ago (2015-08-17 23:06:32 UTC) #2
pdr.
https://codereview.chromium.org/1287863003/diff/10005/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h (right): https://codereview.chromium.org/1287863003/diff/10005/Source/platform/graphics/paint/DisplayItem.h#newcode332 Source/platform/graphics/paint/DisplayItem.h:332: void invalidate() { new (this) DisplayItem; } Will this ...
5 years, 4 months ago (2015-08-17 23:28:50 UTC) #3
Xianzhu
https://codereview.chromium.org/1287863003/diff/10005/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h (right): https://codereview.chromium.org/1287863003/diff/10005/Source/platform/graphics/paint/DisplayItem.h#newcode332 Source/platform/graphics/paint/DisplayItem.h:332: void invalidate() { new (this) DisplayItem; } On 2015/08/17 ...
5 years, 4 months ago (2015-08-17 23:46:59 UTC) #4
pdr.
This is a cool optimization. LGTM with just a few minor fixes. https://codereview.chromium.org/1287863003/diff/30001/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h ...
5 years, 4 months ago (2015-08-18 06:15:21 UTC) #5
Xianzhu
https://codereview.chromium.org/1287863003/diff/30001/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h (right): https://codereview.chromium.org/1287863003/diff/30001/Source/platform/graphics/paint/DisplayItem.h#newcode333 Source/platform/graphics/paint/DisplayItem.h:333: void invalidate() On 2015/08/18 06:15:21, pdr wrote: > This ...
5 years, 4 months ago (2015-08-18 16:24:44 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287863003/50001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287863003/50001
5 years, 4 months ago (2015-08-18 16:25:00 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/121084)
5 years, 4 months ago (2015-08-18 16:35:05 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1287863003/70001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1287863003/70001
5 years, 4 months ago (2015-08-18 16:39:12 UTC) #14
commit-bot: I haz the power
5 years, 4 months ago (2015-08-18 18:16:22 UTC) #15
Message was sent while issue was closed.
Committed patchset #5 (id:70001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=200736

Powered by Google App Engine
This is Rietveld 408576698