Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(119)

Issue 6813081: When cloning into an SkPicture, clear its data. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 1 month ago by Leon
Modified:
10 years, 10 months ago
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlecode.com/svn/trunk
Visibility:
Public.

Description

When cloning into an SkPicture, clear its data. Prevents a memory leak if the caller clones into an SkPicture that already has a playback or record. Committed: https://code.google.com/p/skia/source/detail?r=6282

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -0 lines) Patch
M src/core/SkPicture.cpp View 1 chunk +6 lines, -0 lines 0 comments Download

Messages

Total messages: 13
Leon
12 years, 1 month ago (2012-11-02 19:53:35 UTC) #1
Leon
12 years, 1 month ago (2012-11-02 20:36:35 UTC) #2
Leon
On 2012/11/02 20:36:35, scroggo-work wrote: reed@ gave me verbal approval, but wondered if it would ...
12 years, 1 month ago (2012-11-02 22:13:07 UTC) #3
DerekS
lgtm. Mike and I decided to have the caller pass in the SkPicture so that ...
12 years, 1 month ago (2012-11-05 13:19:34 UTC) #4
reed1
I like having the Array be on the stack (rather than the API returning a ...
12 years, 1 month ago (2012-11-05 13:31:04 UTC) #5
reed1
Is there a bleeding-edge canary that will have this build available somewhere? On Mon, Nov ...
12 years, 1 month ago (2012-11-05 13:45:03 UTC) #6
reed1
oops, wrong thread. On Mon, Nov 5, 2012 at 8:44 AM, Mike Reed <reed@google.com> wrote: ...
12 years, 1 month ago (2012-11-05 13:45:14 UTC) #7
Leon
On 2012/11/05 13:19:34, DerekS wrote: > lgtm. > > Mike and I decided to have ...
12 years, 1 month ago (2012-11-05 14:05:40 UTC) #8
TomH
15 months later, everybody in London is confused by this change: the previous line of ...
10 years, 10 months ago (2014-02-14 12:27:07 UTC) #9
DerekS
Seems to me that I may have rubber stamped LGTM'd this one without doing a ...
10 years, 10 months ago (2014-02-14 14:50:51 UTC) #10
mtklein
On 2014/02/14 12:27:07, TomH wrote: > 15 months later, everybody in London is confused by ...
10 years, 10 months ago (2014-02-14 14:51:01 UTC) #11
iancottrell
On 2014/02/14 14:51:01, mtklein wrote: > On 2014/02/14 12:27:07, TomH wrote: > > 15 months ...
10 years, 10 months ago (2014-02-14 14:59:57 UTC) #12
Leon
10 years, 10 months ago (2014-02-14 15:11:05 UTC) #13
Message was sent while issue was closed.
On 2014/02/14 14:50:51, DerekS wrote:
> Seems to me that I may have rubber stamped LGTM'd this one without doing a
full
> review.  I think we just need to remove line 158 for this CL to make sense,
but
> I'll let Leon confirm.

Yep. I'll let this be a reminder to write tests. Deleting the fPlayback fixed
the memory leak I happened to run into, and the other code was copied from
beginRecording.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b