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

Issue 593873002: Alternate way to track first paint (Closed)

Created:
6 years, 3 months ago by Xianzhu
Modified:
6 years, 2 months ago
CC:
blink-layers+watch_chromium.org, blink-reviews, blink-reviews-rendering, eae+blinkwatch, jchaffraix+rendering, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, rune+blink, zoltan1
Project:
blink
Visibility:
Public.

Description

Alternate way to track first paint As we always schedule full paint invalidation for new RenderObjects, we can avoid renderObjectNeverHadPaintInvalidationSet but just record InvalidationReason when setShouldDoFullPaintInvalidation() is called. Based on this change, we can also make other reasons of setShouldDoFullPaintInvalidation() more specific. (Actually when we changed synchronous paint invalidations to setShouldDoFullPaintInvalidation() we lost some specific reasons which were useful for trace analyzers.) BUG=410465 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=182783

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix a bug #

Total comments: 4

Patch Set 3 : Adjust setShouldDoFullPaintInvalidationWithReason API #

Unified diffs Side-by-side diffs Delta from patch set Stats (+37 lines, -51 lines) Patch
M Source/core/rendering/RenderLayerModelObject.h View 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderLayerModelObject.cpp View 1 chunk +2 lines, -6 lines 0 comments Download
M Source/core/rendering/RenderObject.h View 1 2 7 chunks +9 lines, -7 lines 0 comments Download
M Source/core/rendering/RenderObject.cpp View 1 2 8 chunks +20 lines, -33 lines 0 comments Download
M Source/core/rendering/RenderObjectChildList.cpp View 1 chunk +2 lines, -1 line 0 comments Download
M Source/core/rendering/RenderView.h View 1 1 chunk +1 line, -1 line 0 comments Download
M Source/core/rendering/RenderView.cpp View 1 2 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 11 (2 generated)
Xianzhu
6 years, 3 months ago (2014-09-22 21:49:09 UTC) #2
Xianzhu
https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.cpp#newcode3067 Source/core/rendering/RenderObject.cpp:3067: if (!shouldDoFullPaintInvalidation()) This is incorrect. It will prevent us ...
6 years, 3 months ago (2014-09-23 21:06:41 UTC) #3
Xianzhu
https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.cpp File Source/core/rendering/RenderObject.cpp (right): https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.cpp#newcode3067 Source/core/rendering/RenderObject.cpp:3067: if (!shouldDoFullPaintInvalidation()) On 2014/09/23 21:06:41, Xianzhu wrote: > This ...
6 years, 3 months ago (2014-09-23 21:26:17 UTC) #4
kouhei (in TOK)
lgtm. Thanks!
6 years, 3 months ago (2014-09-23 21:48:14 UTC) #5
Julien - ping for review
lgtm https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.h File Source/core/rendering/RenderObject.h (right): https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.h#newcode1018 Source/core/rendering/RenderObject.h:1018: void setShouldDoFullPaintInvalidationWithReason(InvalidationReason = InvalidationFull, MarkingBehavior = MarkContainingBlockChain); I ...
6 years, 2 months ago (2014-09-26 17:56:24 UTC) #6
Xianzhu
https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.h File Source/core/rendering/RenderObject.h (right): https://codereview.chromium.org/593873002/diff/1/Source/core/rendering/RenderObject.h#newcode1018 Source/core/rendering/RenderObject.h:1018: void setShouldDoFullPaintInvalidationWithReason(InvalidationReason = InvalidationFull, MarkingBehavior = MarkContainingBlockChain); On 2014/09/26 ...
6 years, 2 months ago (2014-09-26 18:36:21 UTC) #7
Xianzhu
I'd also like to remove the bool parameter from setShouldDoFullPaintInvalidation(bool), so that it would be ...
6 years, 2 months ago (2014-09-26 18:38:03 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593873002/40001
6 years, 2 months ago (2014-09-26 20:05:11 UTC) #10
commit-bot: I haz the power
6 years, 2 months ago (2014-09-26 20:47:13 UTC) #11
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 182783

Powered by Google App Engine
This is Rietveld 408576698