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

Issue 821663003: Change DebugCanvas API to not encourage memory leaks (Closed)

Created:
6 years ago by Kimmo Kinnunen
Modified:
5 years, 11 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@debugger-raster-black-bg
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Change DebugCanvas API to not encourage memory leaks Pass command strings and offset arrays as out parameters instead of returning new arrays from the functions. This simplifies debugger leak investigations, as the app leaks less by design. Committed: https://skia.googlesource.com/skia/+/5037e9de94e57d36592cc596d831cc2b5ec45bd3

Patch Set 1 #

Total comments: 2

Patch Set 2 : another approach #

Patch Set 3 : ..nacl #

Unified diffs Side-by-side diffs Delta from patch set Stats (+25 lines, -65 lines) Patch
M debugger/QT/SkDebuggerGUI.h View 1 1 chunk +4 lines, -4 lines 0 comments Download
M debugger/QT/SkDebuggerGUI.cpp View 1 4 chunks +16 lines, -20 lines 0 comments Download
M debugger/SkDebugger.h View 1 2 chunks +3 lines, -7 lines 0 comments Download
M platform_tools/nacl/src/nacl_debugger.cpp View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.h View 1 1 chunk +0 lines, -10 lines 0 comments Download
M src/utils/debugger/SkDebugCanvas.cpp View 1 1 chunk +0 lines, -21 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
Kimmo Kinnunen
6 years ago (2014-12-22 11:10:57 UTC) #2
robertphillips
lgtm + suggestion https://codereview.chromium.org/821663003/diff/1/src/utils/debugger/SkDebugCanvas.cpp File src/utils/debugger/SkDebugCanvas.cpp (right): https://codereview.chromium.org/821663003/diff/1/src/utils/debugger/SkDebugCanvas.cpp#newcode397 src/utils/debugger/SkDebugCanvas.cpp:397: } else { outCommands->reset(); } ??
5 years, 12 months ago (2014-12-22 15:25:36 UTC) #3
Kimmo Kinnunen
https://codereview.chromium.org/821663003/diff/1/src/utils/debugger/SkDebugCanvas.cpp File src/utils/debugger/SkDebugCanvas.cpp (right): https://codereview.chromium.org/821663003/diff/1/src/utils/debugger/SkDebugCanvas.cpp#newcode397 src/utils/debugger/SkDebugCanvas.cpp:397: } On 2014/12/22 15:25:36, robertphillips wrote: > else { ...
5 years, 11 months ago (2014-12-29 07:23:13 UTC) #4
robertphillips
lgtm
5 years, 11 months ago (2014-12-30 15:12:38 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/821663003/40001
5 years, 11 months ago (2014-12-30 15:13:44 UTC) #7
commit-bot: I haz the power
5 years, 11 months ago (2014-12-30 15:23:01 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/5037e9de94e57d36592cc596d831cc2b5ec45bd3

Powered by Google App Engine
This is Rietveld 408576698