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

Issue 25432003: Add run-time reference adoption checks to SkRefCnt (Closed)

Created:
7 years, 2 months ago by Justin Novosad
Modified:
7 years, 2 months ago
Reviewers:
bungeman-skia, reed1
CC:
skia-review_googlegroups.com
Visibility:
Public.

Description

Add hooks for external run-time reference adoption checks to SkRefCnt. The reference adoption checks are to help detect memory leaks and bad usage when using SkRefCnt subclasses with Blink's RefPtr. BUG=crbug.com/304265 Committed: http://code.google.com/p/skia/source/detail?r=11811

Patch Set 1 #

Patch Set 2 : Rename adoptionRequired -> requireAdoption #

Patch Set 3 : Removed the implementation, added hooks for externally defined base class. #

Patch Set 4 : Removed whitespace change #

Patch Set 5 : Removed whitespace change #

Total comments: 2

Patch Set 6 : Remove multiple inheritance #

Total comments: 1

Patch Set 7 : Comment punctuation fix. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -2 lines) Patch
M include/core/SkRefCnt.h View 1 2 3 4 5 6 5 chunks +25 lines, -2 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
Justin Novosad
PTAL Companion Blink CL: https://codereview.chromium.org/25589003/
7 years, 2 months ago (2013-10-04 20:15:03 UTC) #1
reed1
7 years, 2 months ago (2013-10-07 14:05:02 UTC) #2
bungeman-skia
This seems like a very intrusive Blink specific change which greatly increases the amount of ...
7 years, 2 months ago (2013-10-07 16:00:48 UTC) #3
Justin Novosad
On 2013/10/07 16:00:48, bungeman1 wrote: > This seems like a very intrusive Blink specific change ...
7 years, 2 months ago (2013-10-07 17:01:45 UTC) #4
Tom Hudson
On 2013/10/07 17:01:45, junov wrote: > On 2013/10/07 16:00:48, bungeman1 wrote: > > Could this ...
7 years, 2 months ago (2013-10-07 17:13:53 UTC) #5
Tom Hudson
Sorry, I'd meant to cite: http://www.chromium.org/developers/smart-pointer-guidelines
7 years, 2 months ago (2013-10-07 17:15:25 UTC) #6
Justin Novosad
Totally agree with those guidelines, I have no desire to challenge any of the current ...
7 years, 2 months ago (2013-10-07 17:39:48 UTC) #7
Justin Novosad
Just to emphasize that point: we shipped a Chrome beta release with a severe memory ...
7 years, 2 months ago (2013-10-07 17:46:41 UTC) #8
reed1
I am supported of debug-only code to help correct calling behavior. In this case, can ...
7 years, 2 months ago (2013-10-07 17:59:21 UTC) #9
Justin Novosad
> In this case, can we simplify it to just be a bool? Yeah, in ...
7 years, 2 months ago (2013-10-07 18:17:04 UTC) #10
bungeman-skia
message: On 2013/10/07 17:01:45, junov wrote: > On 2013/10/07 16:00:48, bungeman1 wrote: > > This ...
7 years, 2 months ago (2013-10-07 19:40:51 UTC) #11
Justin Novosad
New patch. Now, skia will only contain hooks to allow chromium to inject its own ...
7 years, 2 months ago (2013-10-15 21:53:24 UTC) #12
reed1
https://codereview.chromium.org/25432003/diff/22001/include/core/SkRefCnt.h File include/core/SkRefCnt.h (right): https://codereview.chromium.org/25432003/diff/22001/include/core/SkRefCnt.h#newcode43 include/core/SkRefCnt.h:43: class SK_API SkRefCnt : public SkRefCntBase, SkNoncopyable { To ...
7 years, 2 months ago (2013-10-16 12:27:23 UTC) #13
Justin Novosad
https://codereview.chromium.org/25432003/diff/22001/include/core/SkRefCnt.h File include/core/SkRefCnt.h (right): https://codereview.chromium.org/25432003/diff/22001/include/core/SkRefCnt.h#newcode43 include/core/SkRefCnt.h:43: class SK_API SkRefCnt : public SkRefCntBase, SkNoncopyable { On ...
7 years, 2 months ago (2013-10-16 13:19:57 UTC) #14
reed1
works for me, deferring to bungeman
7 years, 2 months ago (2013-10-16 13:37:39 UTC) #15
bungeman-skia
lgtm with one comment nit. https://codereview.chromium.org/25432003/diff/27001/include/core/SkRefCnt.h File include/core/SkRefCnt.h (right): https://codereview.chromium.org/25432003/diff/27001/include/core/SkRefCnt.h#newcode126 include/core/SkRefCnt.h:126: * Make, SkRefCnt non-copyable ...
7 years, 2 months ago (2013-10-16 14:36:34 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/junov@chromium.org/25432003/33001
7 years, 2 months ago (2013-10-16 14:44:16 UTC) #17
commit-bot: I haz the power
Presubmit check for 25432003-33001 failed and returned exit status 1. Running presubmit commit checks ...
7 years, 2 months ago (2013-10-16 14:44:18 UTC) #18
Justin Novosad
On 2013/10/16 14:44:18, I haz the power (commit-bot) wrote: > ** Presubmit ERRORS ** > ...
7 years, 2 months ago (2013-10-16 14:45:24 UTC) #19
reed1
lgtm
7 years, 2 months ago (2013-10-16 14:52:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/junov@chromium.org/25432003/33001
7 years, 2 months ago (2013-10-16 14:52:56 UTC) #21
commit-bot: I haz the power
7 years, 2 months ago (2013-10-16 15:15:59 UTC) #22
Message was sent while issue was closed.
Change committed as 11811

Powered by Google App Engine
This is Rietveld 408576698