Chromium Code Reviews
Help | Chromium Project | Gerrit Changes | Sign in
(40)

Issue 1160763005: Don't cache reflection drawings (Closed)

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

Description

Don't cache reflection drawings This is a quick fix of under-invalidation of reflections. BUG=495406 TEST=fast/repaint/scroll-absolute-layer-with-reflection.html TEST=fast/repaint/scroll-fixed-layer-with-reflection.html (Tests need https://codereview.chromium.org/1159113003/ and SlimmingPaintUnderInvalidationChecking) Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=196416

Patch Set 1 #

Total comments: 6

Patch Set 2 : Add DisplayItemCachingSkipper.h; Restore m_scopeId #

Total comments: 3

Patch Set 3 : DisplayItem enum Type : uint16_t #

Total comments: 4

Patch Set 4 : Allows only DisplayItemList to access skippedCache flag #

Patch Set 5 : Why MSVC failed? #

Patch Set 6 : bitfield again #

Patch Set 7 : Try win #

Patch Set 8 : Try win again #

Patch Set 9 : Try win 3 #

Patch Set 10 : Try win 4 #

Patch Set 11 : Fix win (which doesn't pack bool bitfields) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -33 lines) Patch
M Source/core/paint/DeprecatedPaintLayerPainter.cpp View 2 3 2 chunks +2 lines, -1 line 0 comments Download
M Source/platform/blink_platform.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItem.h View 1 2 3 4 5 6 7 8 9 10 2 chunks +23 lines, -20 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItem.cpp View 1 2 3 4 5 6 7 8 9 10 2 chunks +5 lines, -6 lines 0 comments Download
A Source/platform/graphics/paint/DisplayItemCacheSkipper.h View 1 1 chunk +34 lines, -0 lines 0 comments Download
M Source/platform/graphics/paint/DisplayItemList.h View 3 chunks +8 lines, -1 line 0 comments Download
M Source/platform/graphics/paint/DisplayItemList.cpp View 1 2 3 8 chunks +18 lines, -5 lines 0 comments Download

Messages

Total messages: 41 (12 generated)
Xianzhu
Added wkorman@ because this CL may be related to your CL for bug 427743.
4 years, 11 months ago (2015-06-02 05:11:22 UTC) #2
pdr.
This adds quite a bit of complexity. Would it be possible to just invalidate the ...
4 years, 11 months ago (2015-06-02 05:33:33 UTC) #3
chrishtr
How about just always invalidating the source of a reflection when reflection is added?
4 years, 11 months ago (2015-06-02 15:44:34 UTC) #4
Xianzhu
On 2015/06/02 05:33:33, pdr wrote: > This adds quite a bit of complexity. Would it ...
4 years, 11 months ago (2015-06-02 15:53:37 UTC) #5
Xianzhu
On 2015/06/02 15:44:34, chrishtr wrote: > How about just always invalidating the source of a ...
4 years, 11 months ago (2015-06-02 16:03:49 UTC) #6
chrishtr
On 2015/06/02 at 16:03:49, wangxianzhu wrote: > On 2015/06/02 15:44:34, chrishtr wrote: > > How ...
4 years, 11 months ago (2015-06-02 16:28:50 UTC) #7
Xianzhu
On 2015/06/02 16:28:50, chrishtr wrote: > On 2015/06/02 at 16:03:49, wangxianzhu wrote: > > On ...
4 years, 11 months ago (2015-06-02 16:44:34 UTC) #8
chrishtr
On 2015/06/02 at 16:44:34, wangxianzhu wrote: > On 2015/06/02 16:28:50, chrishtr wrote: > > On ...
4 years, 11 months ago (2015-06-02 17:02:43 UTC) #9
chrishtr
https://codereview.chromium.org/1160763005/diff/1/Source/core/paint/DeprecatedPaintLayerPainter.cpp File Source/core/paint/DeprecatedPaintLayerPainter.cpp (right): https://codereview.chromium.org/1160763005/diff/1/Source/core/paint/DeprecatedPaintLayerPainter.cpp#newcode29 Source/core/paint/DeprecatedPaintLayerPainter.cpp:29: #include "platform/graphics/paint/DisplayItemCacheSkipper.h" I think you accidentally left this class ...
4 years, 11 months ago (2015-06-02 17:06:56 UTC) #10
pdr.
https://codereview.chromium.org/1160763005/diff/1/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h (right): https://codereview.chromium.org/1160763005/diff/1/Source/platform/graphics/paint/DisplayItem.h#newcode295 Source/platform/graphics/paint/DisplayItem.h:295: unsigned m_scopeId : 16; This seems dangerous in the ...
4 years, 11 months ago (2015-06-02 17:16:08 UTC) #11
Xianzhu
https://codereview.chromium.org/1160763005/diff/1/Source/core/paint/DeprecatedPaintLayerPainter.cpp File Source/core/paint/DeprecatedPaintLayerPainter.cpp (right): https://codereview.chromium.org/1160763005/diff/1/Source/core/paint/DeprecatedPaintLayerPainter.cpp#newcode29 Source/core/paint/DeprecatedPaintLayerPainter.cpp:29: #include "platform/graphics/paint/DisplayItemCacheSkipper.h" On 2015/06/02 17:06:56, chrishtr wrote: > I ...
4 years, 11 months ago (2015-06-02 17:36:35 UTC) #12
jbroman
At the risk of beating a dead horse, a drive-by comment. https://codereview.chromium.org/1160763005/diff/20001/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h (right): ...
4 years, 11 months ago (2015-06-02 18:02:23 UTC) #13
Xianzhu
https://codereview.chromium.org/1160763005/diff/20001/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h (right): https://codereview.chromium.org/1160763005/diff/20001/Source/platform/graphics/paint/DisplayItem.h#newcode297 Source/platform/graphics/paint/DisplayItem.h:297: const Type m_type : 16; On 2015/06/02 18:02:23, jbroman ...
4 years, 11 months ago (2015-06-02 18:42:00 UTC) #14
chrishtr
https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItem.cpp File Source/platform/graphics/paint/DisplayItem.cpp (right): https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItem.cpp#newcode13 Source/platform/graphics/paint/DisplayItem.cpp:13: int ints[2]; // Make sure other fields are packed ...
4 years, 11 months ago (2015-06-02 20:40:18 UTC) #15
Xianzhu
https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItem.cpp File Source/platform/graphics/paint/DisplayItem.cpp (right): https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItem.cpp#newcode13 Source/platform/graphics/paint/DisplayItem.cpp:13: int ints[2]; // Make sure other fields are packed ...
4 years, 11 months ago (2015-06-02 20:52:25 UTC) #16
chrishtr
https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItemList.cpp File Source/platform/graphics/paint/DisplayItemList.cpp (right): https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItemList.cpp#newcode75 Source/platform/graphics/paint/DisplayItemList.cpp:75: ASSERT(!displayItem.skippedCache()); // random code should not be setting this ...
4 years, 11 months ago (2015-06-02 20:58:37 UTC) #17
Xianzhu
https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItemList.cpp File Source/platform/graphics/paint/DisplayItemList.cpp (right): https://codereview.chromium.org/1160763005/diff/40001/Source/platform/graphics/paint/DisplayItemList.cpp#newcode75 Source/platform/graphics/paint/DisplayItemList.cpp:75: On 2015/06/02 20:58:37, chrishtr wrote: > ASSERT(!displayItem.skippedCache()); // random ...
4 years, 11 months ago (2015-06-02 21:10:33 UTC) #18
chrishtr
lgtm
4 years, 11 months ago (2015-06-02 21:16:13 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160763005/60001
4 years, 11 months ago (2015-06-02 21:17:04 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/64872)
4 years, 11 months ago (2015-06-02 21:36:42 UTC) #23
Xianzhu
https://codereview.chromium.org/1160763005/diff/20001/Source/platform/graphics/paint/DisplayItem.h File Source/platform/graphics/paint/DisplayItem.h (right): https://codereview.chromium.org/1160763005/diff/20001/Source/platform/graphics/paint/DisplayItem.h#newcode297 Source/platform/graphics/paint/DisplayItem.h:297: const Type m_type : 16; On 2015/06/02 18:41:59, Xianzhu ...
4 years, 11 months ago (2015-06-02 22:37:47 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160763005/100001
4 years, 11 months ago (2015-06-02 22:38:42 UTC) #27
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_compile_dbg on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_compile_dbg/builds/46877)
4 years, 11 months ago (2015-06-02 23:02:20 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160763005/200001
4 years, 11 months ago (2015-06-03 00:16:00 UTC) #32
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/64906)
4 years, 11 months ago (2015-06-03 04:36:03 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160763005/200001
4 years, 11 months ago (2015-06-03 04:46:03 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (JOB_FAILED, http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/64943)
4 years, 11 months ago (2015-06-03 08:44:12 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1160763005/200001
4 years, 11 months ago (2015-06-03 16:05:13 UTC) #40
commit-bot: I haz the power
4 years, 11 months ago (2015-06-03 17:12:32 UTC) #41
Message was sent while issue was closed.
Committed patchset #11 (id:200001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=196416

Powered by Google App Engine
This is Rietveld 408576698