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

Issue 19267024: cc: Don't leak a ref to SkColorFilter. (Closed)

Created:
7 years, 5 months ago by danakj
Modified:
7 years, 5 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, jbauman, piman
Visibility:
Public.

Description

cc: Don't leak a ref to SkColorFilter. The SkColorFilter* we get in GLRenderer is a refcounted object with a reference on it. Since we just store it in a raw pointer, we leak that reference. Instead, store it in a RefPtr. R=senorblanco BUG=259815 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=213283

Patch Set 1 #

Patch Set 2 : filterleak: refleak #

Patch Set 3 : filterleak: refptr #

Total comments: 4

Patch Set 4 : filterleak: reviewed #

Patch Set 5 : filterleak: caps #

Total comments: 3

Patch Set 6 : filterleak: better #

Total comments: 3

Patch Set 7 : filterleak: releasebuild #

Patch Set 8 : filterleak: rebase #

Patch Set 9 : filterleak: raw pointer #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -3 lines) Patch
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 7 8 1 chunk +9 lines, -3 lines 0 comments Download

Messages

Total messages: 30 (0 generated)
danakj
7 years, 5 months ago (2013-07-16 18:45:29 UTC) #1
earthdok
This does not fix the issue for me.
7 years, 5 months ago (2013-07-16 18:57:37 UTC) #2
danakj
On 2013/07/16 18:57:37, earthdok wrote: > This does not fix the issue for me. Hm ...
7 years, 5 months ago (2013-07-16 19:48:15 UTC) #3
danakj
On 2013/07/16 19:48:15, danakj wrote: > On 2013/07/16 18:57:37, earthdok wrote: > > This does ...
7 years, 5 months ago (2013-07-16 19:53:13 UTC) #4
danakj
PTAL. This should solve the refleak of the SkImageFilter.
7 years, 5 months ago (2013-07-17 23:08:28 UTC) #5
awong
https://codereview.chromium.org/19267024/diff/13001/skia/ext/refptr.h File skia/ext/refptr.h (right): https://codereview.chromium.org/19267024/diff/13001/skia/ext/refptr.h#newcode104 skia/ext/refptr.h:104: Receiver(RefPtr* refptr) : refptr_(refptr), ptr_(NULL) { explicit? https://codereview.chromium.org/19267024/diff/13001/skia/ext/refptr.h#newcode114 skia/ext/refptr.h:114: ...
7 years, 5 months ago (2013-07-17 23:12:59 UTC) #6
danakj
https://codereview.chromium.org/19267024/diff/13001/skia/ext/refptr.h File skia/ext/refptr.h (right): https://codereview.chromium.org/19267024/diff/13001/skia/ext/refptr.h#newcode104 skia/ext/refptr.h:104: Receiver(RefPtr* refptr) : refptr_(refptr), ptr_(NULL) { On 2013/07/17 23:12:59, ...
7 years, 5 months ago (2013-07-17 23:18:46 UTC) #7
awong
https://codereview.chromium.org/19267024/diff/22001/skia/ext/refptr.h File skia/ext/refptr.h (right): https://codereview.chromium.org/19267024/diff/22001/skia/ext/refptr.h#newcode115 skia/ext/refptr.h:115: // sets it to an object with an unowned ...
7 years, 5 months ago (2013-07-17 23:51:02 UTC) #8
danakj
https://codereview.chromium.org/19267024/diff/22001/skia/ext/refptr.h File skia/ext/refptr.h (right): https://codereview.chromium.org/19267024/diff/22001/skia/ext/refptr.h#newcode116 skia/ext/refptr.h:116: // NOTE: Do not use this function as part ...
7 years, 5 months ago (2013-07-17 23:58:29 UTC) #9
danakj
Oh, this file is included transitively from webkit, so it can't include base/logging :|
7 years, 5 months ago (2013-07-17 23:59:18 UTC) #10
earthdok
On 2013/07/16 19:48:15, danakj wrote: > On 2013/07/16 18:57:37, earthdok wrote: > > This does ...
7 years, 5 months ago (2013-07-18 09:21:32 UTC) #11
danakj
Oh, not sure how you were removed. The latest CL should fix the leak.
7 years, 5 months ago (2013-07-18 15:31:51 UTC) #12
danakj
PTAL, added some debug-crash assertions without using base/logging which is a compiler error at this ...
7 years, 5 months ago (2013-07-18 15:34:32 UTC) #13
Stephen White
https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h File skia/ext/refptr.h (right): https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h#newcode144 skia/ext/refptr.h:144: // the RefPtr will remain empty. Maybe I'm old-fashioned, ...
7 years, 5 months ago (2013-07-18 15:50:30 UTC) #14
danakj
https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h File skia/ext/refptr.h (right): https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h#newcode144 skia/ext/refptr.h:144: // the RefPtr will remain empty. On 2013/07/18 15:50:30, ...
7 years, 5 months ago (2013-07-18 15:59:36 UTC) #15
awong
https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h File skia/ext/refptr.h (right): https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h#newcode144 skia/ext/refptr.h:144: // the RefPtr will remain empty. On 2013/07/18 15:50:30, ...
7 years, 5 months ago (2013-07-18 16:00:42 UTC) #16
Stephen White
On 2013/07/18 16:00:42, awong wrote: > https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h > File skia/ext/refptr.h (right): > > https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h#newcode144 > ...
7 years, 5 months ago (2013-07-18 19:05:32 UTC) #17
awong
On 2013/07/18 19:05:32, Stephen White wrote: > On 2013/07/18 16:00:42, awong wrote: > > https://codereview.chromium.org/19267024/diff/30001/skia/ext/refptr.h ...
7 years, 5 months ago (2013-07-18 19:54:10 UTC) #18
danakj
On Thu, Jul 18, 2013 at 12:05 PM, <senorblanco@chromium.org> wrote: > On 2013/07/18 16:00:42, awong ...
7 years, 5 months ago (2013-07-18 19:58:22 UTC) #19
Stephen White
On 2013/07/18 19:58:22, danakj wrote: > On Thu, Jul 18, 2013 at 12:05 PM, <mailto:senorblanco@chromium.org> ...
7 years, 5 months ago (2013-07-18 20:15:17 UTC) #20
danakj
On Thu, Jul 18, 2013 at 1:15 PM, <senorblanco@chromium.org> wrote: > We don't have it ...
7 years, 5 months ago (2013-07-18 20:17:28 UTC) #21
earthdok
On 2013/07/18 15:31:51, danakj wrote: > Oh, not sure how you were removed. The latest ...
7 years, 5 months ago (2013-07-22 11:59:10 UTC) #22
danakj
ping: I really want to see us able to not use raw SkRefCounted pointers at ...
7 years, 5 months ago (2013-07-23 17:15:47 UTC) #23
Stephen White
On 2013/07/23 17:15:47, danakj wrote: > ping: I really want to see us able to ...
7 years, 5 months ago (2013-07-23 17:22:30 UTC) #24
danakj
PTAL
7 years, 5 months ago (2013-07-23 17:30:17 UTC) #25
Stephen White
LGTM. Thanks!
7 years, 5 months ago (2013-07-23 17:33:34 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/19267024/56001
7 years, 5 months ago (2013-07-23 17:41:27 UTC) #27
commit-bot: I haz the power
Step "update" is always a major failure. Look at the try server FAQ for more ...
7 years, 5 months ago (2013-07-23 21:22:17 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/19267024/56001
7 years, 5 months ago (2013-07-23 21:24:23 UTC) #29
commit-bot: I haz the power
7 years, 5 months ago (2013-07-24 00:03:43 UTC) #30
Message was sent while issue was closed.
Change committed as 213283

Powered by Google App Engine
This is Rietveld 408576698