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

Issue 2320713002: Remove unnecessary checks in PaintLayer::backgroundIsKnownToBeOpaqueInRect (Closed)

Created:
4 years, 3 months ago by Stephen Chennney
Modified:
4 years, 3 months ago
Reviewers:
chrishtr
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

Remove unnecessary checks in PaintLayer::backgroundIsKnownToBeOpaqueInRect The PaintLayer::backgroundIsKnownToBeOpaque method is currently only called by GraphicsLayers on their owning paint layer, or by the recursive child call. The former is by definition always called on a self painting layer, while the latter already has a test to prevent consideration of layers that do not paint into the backing in question. Hence we can remove the check for self painting layer status. These checks cause chicken-and-egg problems when the method is called by the layer itself in order to identify compositing reasons. In such cases we are not concerned with self layer status; we are in fact trying to determine that status. This is a relanding of issue 2297873002 at patchset 140001 (http://crrev.com/2297873002#ps140001) without the DCHECK that was in the that patch. R=chrishtr@chromium.org BUG=381840 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/5a28ce539ba64f44324c9ce311b91ffc851d6ffd Cr-Commit-Position: refs/heads/master@{#417002}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 3 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
Stephen Chennney
The previous attempt at this was reverted due to Win 7 Test bot failing the ...
4 years, 3 months ago (2016-09-07 15:52:26 UTC) #1
chrishtr
I don't see any DCHECKs removed in this patch. ?
4 years, 3 months ago (2016-09-07 16:45:41 UTC) #2
Stephen Chennney
On 2016/09/07 16:45:41, chrishtr wrote: > I don't see any DCHECKs removed in this patch. ...
4 years, 3 months ago (2016-09-07 16:51:37 UTC) #3
chrishtr
lgtm
4 years, 3 months ago (2016-09-07 16:57:43 UTC) #5
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/2320713002/1
4 years, 3 months ago (2016-09-07 16:58:53 UTC) #7
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-07 18:27:58 UTC) #9
commit-bot: I haz the power
4 years, 3 months ago (2016-09-07 18:29:49 UTC) #11
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5a28ce539ba64f44324c9ce311b91ffc851d6ffd
Cr-Commit-Position: refs/heads/master@{#417002}

Powered by Google App Engine
This is Rietveld 408576698