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

Issue 2116693002: PaintChunk::id (Closed)

Created:
4 years, 5 months ago by Xianzhu
Modified:
4 years, 5 months ago
Reviewers:
chrishtr, pdr.
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@CommitOnTheWay
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

PaintChunk::id The id will be used in rasterization paint invalidation to match old and new paint chunks. It can be also used in incremental layerization. BUG=510908 Committed: https://crrev.com/5426e435a6a1c6761b7d9565f769fcde10e7b99c Cr-Commit-Position: refs/heads/master@{#406461}

Patch Set 1 #

Patch Set 2 : Give PaintChunks ids #

Patch Set 3 : Rebase #

Patch Set 4 : - #

Patch Set 5 : Give PaintChunks ids #

Total comments: 12

Patch Set 6 : - #

Total comments: 10

Patch Set 7 : - #

Total comments: 12

Patch Set 8 : Address pdr's comments #

Patch Set 9 : PLATFORM_EXPORT CacheGenerationOrInvalidationReason #

Total comments: 17

Patch Set 10 : Address chrishtr's comments. #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+403 lines, -131 lines) Patch
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 8 9 2 chunks +3 lines, -3 lines 2 comments Download
M third_party/WebKit/Source/core/paint/BlockPainter.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/BoxClipper.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/FramePainter.cpp View 1 2 3 4 5 6 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerPainter.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/SVGPaintContext.h View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ScrollableAreaPainter.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/blink_platform.gypi View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItem.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h View 1 2 3 4 5 6 7 8 9 3 chunks +16 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h View 1 2 3 4 5 6 7 5 chunks +36 lines, -2 lines 0 comments Download
A third_party/WebKit/Source/platform/graphics/paint/PaintChunkTest.cpp View 1 2 3 4 5 6 7 1 chunk +86 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunker.h View 1 2 3 4 5 6 7 3 chunks +12 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp View 1 2 3 4 5 6 7 4 chunks +28 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintChunkerTest.cpp View 6 7 8 9 4 chunks +168 lines, -78 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/PaintController.cpp View 1 2 3 4 5 6 7 8 6 chunks +7 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/paint/ScopedPaintChunkProperties.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/FakeDisplayItemClient.h View 1 2 3 4 5 6 7 8 9 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/PaintPrinters.cpp View 1 chunk +13 lines, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 63 (28 generated)
Xianzhu
4 years, 5 months ago (2016-07-13 16:35:08 UTC) #3
chrishtr
Sounds like you have a more complete plan in mind for how to do SPv2 ...
4 years, 5 months ago (2016-07-13 17:00:30 UTC) #5
Xianzhu
On 2016/07/13 17:00:30, chrishtr wrote: > Sounds like you have a more complete plan in ...
4 years, 5 months ago (2016-07-13 17:02:40 UTC) #6
pdr.
Can't a paint chunk have multiple display items associated with it? Is the id being ...
4 years, 5 months ago (2016-07-13 17:49:52 UTC) #7
Xianzhu
On 2016/07/13 17:49:52, pdr. wrote: > Can't a paint chunk have multiple display items associated ...
4 years, 5 months ago (2016-07-13 18:45:50 UTC) #8
Xianzhu
https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp (right): https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp#newcode68 third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp:68: PaintChunk newChunk(lastChunk.endIndex, lastChunk.endIndex + 1, newChunkId ? &*newChunkId : ...
4 years, 5 months ago (2016-07-13 19:06:03 UTC) #9
Xianzhu
https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp File third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp (right): https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp#newcode68 third_party/WebKit/Source/platform/graphics/paint/PaintChunker.cpp:68: PaintChunk newChunk(lastChunk.endIndex, lastChunk.endIndex + 1, newChunkId ? &*newChunkId : ...
4 years, 5 months ago (2016-07-13 19:15:42 UTC) #10
pdr.
On 2016/07/13 at 18:45:50, wangxianzhu wrote: > On 2016/07/13 17:49:52, pdr. wrote: > > Can't ...
4 years, 5 months ago (2016-07-13 23:24:35 UTC) #11
pdr.
https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h File third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h (right): https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h#newcode26 third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h:26: PaintChunk(unsigned begin, unsigned end, const DisplayItem::Id* chunkId, const PaintChunkProperties& ...
4 years, 5 months ago (2016-07-13 23:31:35 UTC) #12
Xianzhu
https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h File third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h (right): https://codereview.chromium.org/2116693002/diff/80001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h#newcode26 third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h:26: PaintChunk(unsigned begin, unsigned end, const DisplayItem::Id* chunkId, const PaintChunkProperties& ...
4 years, 5 months ago (2016-07-14 04:53:09 UTC) #15
pdr.
https://codereview.chromium.org/2116693002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h File third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h (right): https://codereview.chromium.org/2116693002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h#newcode51 third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h:51: // A chunk whose client is just created should ...
4 years, 5 months ago (2016-07-14 22:22:07 UTC) #18
Xianzhu
https://codereview.chromium.org/2116693002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h File third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h (right): https://codereview.chromium.org/2116693002/diff/100001/third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h#newcode51 third_party/WebKit/Source/platform/graphics/paint/PaintChunk.h:51: // A chunk whose client is just created should ...
4 years, 5 months ago (2016-07-14 23:03:24 UTC) #19
Xianzhu
Sorry, I just noticed the misunderstanding between us. The ids are not for separating of ...
4 years, 5 months ago (2016-07-14 23:06:49 UTC) #20
pdr.
On 2016/07/14 at 23:06:49, wangxianzhu wrote: > Sorry, I just noticed the misunderstanding between us. ...
4 years, 5 months ago (2016-07-15 19:09:58 UTC) #21
pdr.
Sorry about the confusion earlier. I understand this patch fairly well now. Some minor comments ...
4 years, 5 months ago (2016-07-15 19:11:28 UTC) #22
Xianzhu
https://codereview.chromium.org/2116693002/diff/120001/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h File third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h (right): https://codereview.chromium.org/2116693002/diff/120001/third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h#newcode66 third_party/WebKit/Source/platform/graphics/paint/DisplayItemClient.h:66: bool isJustCreated() const { return m_cacheGenerationOrInvalidationReason.isJustCreated(); } On 2016/07/15 ...
4 years, 5 months ago (2016-07-15 23:48:00 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2116693002/140001
4 years, 5 months ago (2016-07-18 19:17:00 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/264432) win_clang on master.tryserver.chromium.win (JOB_FAILED, ...
4 years, 5 months ago (2016-07-18 20:57:10 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2116693002/140001
4 years, 5 months ago (2016-07-18 21:03:28 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/54538)
4 years, 5 months ago (2016-07-18 22:20:04 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2116693002/140001
4 years, 5 months ago (2016-07-18 22:38:06 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/54638)
4 years, 5 months ago (2016-07-19 01:21:51 UTC) #40
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2116693002/160001
4 years, 5 months ago (2016-07-19 16:23:14 UTC) #43
commit-bot: I haz the power
Try jobs failed on following builders: android_compile_dbg on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_compile_dbg/builds/98497)
4 years, 5 months ago (2016-07-19 16:32:54 UTC) #45
chrishtr
Let me take a quick review before commit..looking now.
4 years, 5 months ago (2016-07-19 16:38:39 UTC) #46
chrishtr
https://codereview.chromium.org/2116693002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2116693002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2653 third_party/WebKit/Source/core/frame/FrameView.cpp:2653: scopedPaintChunkProperties.emplace(graphicsLayer->getPaintController(), *layoutView(), DisplayItem::DebugRedFill, properties); It's weird that there is ...
4 years, 5 months ago (2016-07-19 17:27:52 UTC) #47
Xianzhu
https://codereview.chromium.org/2116693002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2116693002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2653 third_party/WebKit/Source/core/frame/FrameView.cpp:2653: scopedPaintChunkProperties.emplace(graphicsLayer->getPaintController(), *layoutView(), DisplayItem::DebugRedFill, properties); On 2016/07/19 17:27:52, chrishtr wrote: ...
4 years, 5 months ago (2016-07-19 21:57:48 UTC) #49
chrishtr
lgtm https://codereview.chromium.org/2116693002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2116693002/diff/160001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2653 third_party/WebKit/Source/core/frame/FrameView.cpp:2653: scopedPaintChunkProperties.emplace(graphicsLayer->getPaintController(), *layoutView(), DisplayItem::DebugRedFill, properties); On 2016/07/19 at 21:57:48, ...
4 years, 5 months ago (2016-07-19 23:42:28 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2116693002/180001
4 years, 5 months ago (2016-07-20 00:08:24 UTC) #55
chrishtr
https://codereview.chromium.org/2116693002/diff/180001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2116693002/diff/180001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2652 third_party/WebKit/Source/core/frame/FrameView.cpp:2652: scopedPaintChunkProperties.emplace(graphicsLayer->getPaintController(), *layoutView(), DisplayItem::DebugRedFill, properties); Maybe remove in a followup.
4 years, 5 months ago (2016-07-20 00:10:38 UTC) #56
Xianzhu
https://codereview.chromium.org/2116693002/diff/180001/third_party/WebKit/Source/core/frame/FrameView.cpp File third_party/WebKit/Source/core/frame/FrameView.cpp (right): https://codereview.chromium.org/2116693002/diff/180001/third_party/WebKit/Source/core/frame/FrameView.cpp#newcode2652 third_party/WebKit/Source/core/frame/FrameView.cpp:2652: scopedPaintChunkProperties.emplace(graphicsLayer->getPaintController(), *layoutView(), DisplayItem::DebugRedFill, properties); On 2016/07/20 00:10:38, chrishtr wrote: ...
4 years, 5 months ago (2016-07-20 00:11:32 UTC) #57
commit-bot: I haz the power
Committed patchset #10 (id:180001)
4 years, 5 months ago (2016-07-20 02:12:00 UTC) #59
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-20 02:12:22 UTC) #60
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/5426e435a6a1c6761b7d9565f769fcde10e7b99c Cr-Commit-Position: refs/heads/master@{#406461}
4 years, 5 months ago (2016-07-20 02:14:10 UTC) #62
hayato
4 years, 5 months ago (2016-07-20 04:18:11 UTC) #63
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/2161253003/ by hayato@chromium.org.

The reason for reverting is: Test failures on WebKit Win x64 Builder (dbg) since
https://build.chromium.org/p/chromium.webkit/builders/WebKit%20Win%20x64%20Bu....


failures:
PaintChunkerTest.BuildChunksFromNestedTransforms
PaintChunkerTest.ChangingPropertiesWithoutItems
PaintChunkerTest.SingleNonEmptyRange
PaintChunkerTest.CreatesSeparateChunksWhenRequested
PaintChunkerTest.ChunkIds
PaintChunkerTest.SamePropertiesTwiceCombineIntoOneChunk
PaintChunkerTest.ChunkIdsSkippingCache
PaintChunkerTest.BuildMultipleChunksWithSinglePropertyChanging
PaintChunkerTest.CanRewindDisplayItemIndex
PaintChunkerTest.BuildMultipleChunksWithDifferentPropertyChanges
.

Powered by Google App Engine
This is Rietveld 408576698