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

Issue 1657883002: Fix leak PaintLayerReflectionInfo (Closed)

Created:
4 years, 10 months ago by Xianzhu
Modified:
4 years, 10 months ago
Reviewers:
pdr.
CC:
blink-reviews, blink-reviews-paint_chromium.org, chromium-reviews, dshwang, gavinp+loader_chromium.org, Nate Chapin, loading-reviews+fetch_chromium.org, slimming-paint-reviews_chromium.org, tyoshino+watch_chromium.org, Yoav Weiss, pcc
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix leak PaintLayerReflectionInfo Previously PaintLayerReflectionInfo required destroy() to be called before destruction, but we missed the call in PaintLayer::updateReflectionInfo(), causing leak of the reflection layout object and the layer for the reflection. Delete PaintLayerReflectionInfo::destroy(). Use destructor instead. BUG=582717 TEST=PaintLayerTest.ReflectionLeak Committed: https://crrev.com/8718e5b803192df3cd4cec8907330443104063ee Cr-Commit-Position: refs/heads/master@{#372985}

Patch Set 1 #

Patch Set 2 : Update test to avoid leak of ImageResource #

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+42 lines, -6 lines) Patch
M third_party/WebKit/Source/core/core.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/fetch/ImageResource.h View 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 2 chunks +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayerReflectionInfo.cpp View 1 chunk +1 line, -1 line 0 comments Download
A third_party/WebKit/Source/core/paint/PaintLayerTest.cpp View 1 2 1 chunk +37 lines, -0 lines 0 comments Download

Messages

Total messages: 26 (11 generated)
Xianzhu
4 years, 10 months ago (2016-02-01 20:55:28 UTC) #2
pdr.
I think this is correct and wasn't able to find a bug in doing this, ...
4 years, 10 months ago (2016-02-01 21:07:44 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657883002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657883002/1
4 years, 10 months ago (2016-02-01 21:48:37 UTC) #5
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/109836)
4 years, 10 months ago (2016-02-01 22:43:03 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657883002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657883002/20001
4 years, 10 months ago (2016-02-02 01:07:55 UTC) #12
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/15865) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-02 01:13:38 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_arm64_dbg_recipe on tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/android_arm64_dbg_recipe/builds/15869) android_chromium_gn_compile_dbg on tryserver.chromium.android (JOB_FAILED, ...
4 years, 10 months ago (2016-02-02 01:17:59 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1657883002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1657883002/40001
4 years, 10 months ago (2016-02-02 16:44:15 UTC) #17
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 10 months ago (2016-02-02 18:04:15 UTC) #18
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/8718e5b803192df3cd4cec8907330443104063ee Cr-Commit-Position: refs/heads/master@{#372985}
4 years, 10 months ago (2016-02-02 18:05:06 UTC) #20
Reid Kleckner
On 2016/02/02 18:05:06, commit-bot: I haz the power wrote: > Patchset 3 (id:??) landed as ...
4 years, 10 months ago (2016-02-04 00:33:00 UTC) #21
pdr.
On 2016/02/04 at 00:33:00, rnk wrote: > On 2016/02/02 18:05:06, commit-bot: I haz the power ...
4 years, 10 months ago (2016-02-04 02:34:04 UTC) #23
pdr.
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1661233003/ by pdr@chromium.org. ...
4 years, 10 months ago (2016-02-04 02:35:12 UTC) #24
Stephen Chennney
On 2016/02/04 02:35:12, pdr wrote: > A revert of this CL (patchset #3 id:40001) has ...
4 years, 10 months ago (2016-02-05 19:51:32 UTC) #25
chrishtr
4 years, 10 months ago (2016-02-05 21:30:32 UTC) #26
On 2016/02/05 at 19:51:32, schenney wrote:
> On 2016/02/04 02:35:12, pdr wrote:
> > A revert of this CL (patchset #3 id:40001) has been created in
> > https://codereview.chromium.org/1661233003/ by mailto:pdr@chromium.org.
> > 
> > The reason for reverting is: Caused crashes on CrWinClang:
> >
https://build.chromium.org/p/chromium.fyi/builders/CrWinClang%20tester/builds....
> 
> I don't recall: do we create new codereview issues for relands of rolled-out
patches?

I think it's better practice to do so, to make things less confusing.

Powered by Google App Engine
This is Rietveld 408576698