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

Issue 235983015: SkRecord bug fixes (Closed)

Created:
6 years, 8 months ago by mtklein_C
Modified:
6 years, 8 months ago
Reviewers:
reed1, mtklein, tomhudson
CC:
skia-review_googlegroups.com
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

SkRecord bug fixes Optional arguments to SkCanvas calls leaked refs (but not memory) because we didn't destruct the optional objects (really, just SkPaint: other optional args are all POD). This adds Optional and PODArray, where Optional makes sure to call the destructor. I overlooked that SkPictureRecord really does call paint.computeFastBounds(). Do the same in SkRecordDraw. BUG=skia:2378 Committed: http://code.google.com/p/skia/source/detail?r=14197

Patch Set 1 #

Patch Set 2 : add regression test for leaking refs #

Total comments: 2

Patch Set 3 : tomments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -20 lines) Patch
M src/record/SkRecordDraw.cpp View 1 2 2 chunks +8 lines, -2 lines 0 comments Download
M src/record/SkRecords.h View 4 chunks +55 lines, -18 lines 0 comments Download
M tests/RecorderTest.cpp View 1 2 chunks +22 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
mtklein
6 years, 8 months ago (2014-04-15 12:57:02 UTC) #1
tomhudson
LGTM modulo comment nits. https://codereview.chromium.org/235983015/diff/20001/src/record/SkRecordDraw.cpp File src/record/SkRecordDraw.cpp (right): https://codereview.chromium.org/235983015/diff/20001/src/record/SkRecordDraw.cpp#newcode79 src/record/SkRecordDraw.cpp:79: // We need to call ...
6 years, 8 months ago (2014-04-15 13:41:36 UTC) #2
mtklein
How's this?
6 years, 8 months ago (2014-04-15 13:58:43 UTC) #3
tomhudson
Thanks.
6 years, 8 months ago (2014-04-15 14:07:59 UTC) #4
mtklein
lgtm
6 years, 8 months ago (2014-04-15 14:09:09 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/mtklein@chromium.org/235983015/40001
6 years, 8 months ago (2014-04-15 14:09:26 UTC) #6
commit-bot: I haz the power
6 years, 8 months ago (2014-04-15 14:27:17 UTC) #7
Message was sent while issue was closed.
Change committed as 14197

Powered by Google App Engine
This is Rietveld 408576698