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

Issue 2292273003: Define contentsProperties on ObjectPaintProperties, for use in paint invalidation. (Closed)

Created:
4 years, 3 months ago by chrishtr
Modified:
4 years, 3 months ago
Reviewers:
pdr., szager1, trchen
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, slimming-paint-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Define contentsProperties on ObjectPaintProperties, for use in paint invalidation. BUG=638415 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/abb4cf14dd75848473eaf8706fbca3be284f027a Cr-Commit-Position: refs/heads/master@{#416079}

Patch Set 1 #

Patch Set 2 : none #

Patch Set 3 : none #

Patch Set 4 : none #

Total comments: 5

Patch Set 5 : none #

Patch Set 6 : none #

Patch Set 7 : none #

Total comments: 4

Patch Set 8 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+162 lines, -5 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPaintProperties.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/paint/ObjectPaintProperties.cpp View 1 2 3 4 5 6 7 1 chunk +24 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintInvalidator.cpp View 1 2 3 4 5 6 7 2 chunks +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilderTest.cpp View 1 2 3 4 5 6 7 4 chunks +129 lines, -3 lines 0 comments Download

Messages

Total messages: 38 (16 generated)
chrishtr
4 years, 3 months ago (2016-08-31 00:57:18 UTC) #8
pdr.
https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode143 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:143: std::unique_ptr<PropertyTreeState> m_contentsProperties; Instead of caching such a large object, ...
4 years, 3 months ago (2016-08-31 04:48:52 UTC) #14
szager1
https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode143 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:143: std::unique_ptr<PropertyTreeState> m_contentsProperties; On 2016/08/31 04:48:52, pdr. wrote: > Instead ...
4 years, 3 months ago (2016-08-31 16:31:22 UTC) #15
chrishtr
https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode143 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:143: std::unique_ptr<PropertyTreeState> m_contentsProperties; On 2016/08/31 at 04:48:52, pdr. wrote: > ...
4 years, 3 months ago (2016-08-31 17:43:30 UTC) #16
pdr.
On 2016/08/31 at 17:43:30, chrishtr wrote: > https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h > File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): > > https://codereview.chromium.org/2292273003/diff/60001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode143 ...
4 years, 3 months ago (2016-08-31 17:48:11 UTC) #17
chrishtr
On 2016/08/31 at 17:48:11, pdr wrote: > On 2016/08/31 at 17:43:30, chrishtr wrote: > > ...
4 years, 3 months ago (2016-08-31 18:41:35 UTC) #18
szager1
https://codereview.chromium.org/2292273003/diff/120001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/2292273003/diff/120001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode83 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:83: PropertyTreeState contentsProperties() const; Perf nit: I'm not sure it's ...
4 years, 3 months ago (2016-08-31 21:16:19 UTC) #19
trchen
On 2016/08/31 18:41:35, chrishtr wrote: > On 2016/08/31 at 17:48:11, pdr wrote: > > On ...
4 years, 3 months ago (2016-08-31 21:30:59 UTC) #20
chrishtr
https://codereview.chromium.org/2292273003/diff/120001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h File third_party/WebKit/Source/core/paint/ObjectPaintProperties.h (right): https://codereview.chromium.org/2292273003/diff/120001/third_party/WebKit/Source/core/paint/ObjectPaintProperties.h#newcode83 third_party/WebKit/Source/core/paint/ObjectPaintProperties.h:83: PropertyTreeState contentsProperties() const; On 2016/08/31 at 21:16:19, szager1 wrote: ...
4 years, 3 months ago (2016-09-01 16:56:22 UTC) #21
pdr.
On 2016/08/31 at 21:30:59, trchen wrote: > Note that LocalBorderBoxProperties are not always cached. Currently ...
4 years, 3 months ago (2016-09-01 17:11:07 UTC) #22
chrishtr
On 2016/09/01 at 17:11:07, pdr wrote: > On 2016/08/31 at 21:30:59, trchen wrote: > > ...
4 years, 3 months ago (2016-09-01 17:13:26 UTC) #23
pdr.
On 2016/09/01 at 17:13:26, chrishtr wrote: > On 2016/09/01 at 17:11:07, pdr wrote: > > ...
4 years, 3 months ago (2016-09-01 17:22:18 UTC) #24
chrishtr
On 2016/09/01 at 17:22:18, pdr wrote: > On 2016/09/01 at 17:13:26, chrishtr wrote: > > ...
4 years, 3 months ago (2016-09-01 17:24:52 UTC) #25
pdr.
On 2016/09/01 at 17:24:52, chrishtr wrote: > On 2016/09/01 at 17:22:18, pdr wrote: > > ...
4 years, 3 months ago (2016-09-01 17:25:55 UTC) #26
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/2292273003/140001
4 years, 3 months ago (2016-09-01 18:10:15 UTC) #28
szager1
lgtm
4 years, 3 months ago (2016-09-01 18:57:59 UTC) #29
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/290798)
4 years, 3 months ago (2016-09-01 19:43:47 UTC) #31
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/2292273003/140001
4 years, 3 months ago (2016-09-01 20:41:46 UTC) #33
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 3 months ago (2016-09-01 22:07:03 UTC) #34
commit-bot: I haz the power
Patchset 8 (id:??) landed as https://crrev.com/abb4cf14dd75848473eaf8706fbca3be284f027a Cr-Commit-Position: refs/heads/master@{#416079}
4 years, 3 months ago (2016-09-01 22:09:31 UTC) #36
pdr.
On 2016/09/01 at 17:24:52, chrishtr wrote: > On 2016/09/01 at 17:22:18, pdr wrote: > > ...
4 years, 3 months ago (2016-09-01 22:14:41 UTC) #37
chrishtr
4 years, 3 months ago (2016-09-01 22:45:28 UTC) #38
Message was sent while issue was closed.
On 2016/09/01 at 22:14:41, pdr wrote:
> On 2016/09/01 at 17:24:52, chrishtr wrote:
> > On 2016/09/01 at 17:22:18, pdr wrote:
> > > On 2016/09/01 at 17:13:26, chrishtr wrote:
> > > > On 2016/09/01 at 17:11:07, pdr wrote:
> > > > > On 2016/08/31 at 21:30:59, trchen wrote:
> > > > > > Note that LocalBorderBoxProperties are not always cached. Currently
we only cache them when the LayoutObject has a PaintLayer because that's where
"interesting" things such as clip escaping can happen.
> > > > > > 
> > > > > > If you need O(1) random access to any LayoutObject's content box
properties, you'll need to cache LocalBorderBoxProperties on every LayoutObject
then. That would cost a lot of memory.
> > > > > 
> > > > > This is a good point :(
> > > > 
> > > > We don't have a way to compute them at all in the other cases, in the
present code.
> > > 
> > > Is this asserted anywhere? E.g., that
mapLocalRectToPaintInvalidationBacking isn't called when !isBox&&!hasLayer?
Tien-ren/me added that optimization in an ad-hoc way.
> > 
> > No, and in fact it will get called in such cases. I'd like to address that
in a followup.
> 
> Belated comment: can you add a todo or file a bug for this?

https://bugs.chromium.org/p/chromium/issues/detail?id=643426

Powered by Google App Engine
This is Rietveld 408576698