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

Issue 469333002: Patches memory leak and crashing (Closed)

Created:
6 years, 4 months ago by dandov
Modified:
6 years, 4 months ago
Reviewers:
mtklein, egdaniel
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Fixed memory leak for nanobench and crashing in SampleApp NOTREECHECKS=True BUG=skia:2830 Committed: https://skia.googlesource.com/skia/+/45f7842de7148a544008483a7829071d3dffba51

Patch Set 1 #

Total comments: 5

Patch Set 2 : Overflow fix #

Total comments: 1

Patch Set 3 : use mult64 to set vertex count #

Patch Set 4 : Don't switch to unsigned #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -9 lines) Patch
M src/core/SkDevice.cpp View 1 chunk +6 lines, -4 lines 0 comments Download
M src/utils/SkPatchUtils.cpp View 1 2 3 1 chunk +22 lines, -5 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
dandov
Fixed the memory issues in nanobench and fixed the crash of sample app https://codereview.chromium.org/469333002/diff/1/src/core/SkDevice.cpp File ...
6 years, 4 months ago (2014-08-14 14:26:55 UTC) #1
mtklein
https://codereview.chromium.org/469333002/diff/1/src/utils/SkPatchUtils.cpp File src/utils/SkPatchUtils.cpp (right): https://codereview.chromium.org/469333002/diff/1/src/utils/SkPatchUtils.cpp#newcode209 src/utils/SkPatchUtils.cpp:209: data->fVertexCount = (lodX + 1) * (lodY + 1); ...
6 years, 4 months ago (2014-08-14 14:33:27 UTC) #2
dandov
https://codereview.chromium.org/469333002/diff/1/src/utils/SkPatchUtils.cpp File src/utils/SkPatchUtils.cpp (right): https://codereview.chromium.org/469333002/diff/1/src/utils/SkPatchUtils.cpp#newcode209 src/utils/SkPatchUtils.cpp:209: data->fVertexCount = (lodX + 1) * (lodY + 1); ...
6 years, 4 months ago (2014-08-14 15:17:16 UTC) #3
mtklein
https://codereview.chromium.org/469333002/diff/20001/src/utils/SkPatchUtils.cpp File src/utils/SkPatchUtils.cpp (right): https://codereview.chromium.org/469333002/diff/20001/src/utils/SkPatchUtils.cpp#newcode208 src/utils/SkPatchUtils.cpp:208: // check for overflow in multiplication I think what ...
6 years, 4 months ago (2014-08-14 15:32:25 UTC) #4
dandov
Used Mike's solution.
6 years, 4 months ago (2014-08-14 15:48:46 UTC) #5
mtklein
lgtm, of course :)
6 years, 4 months ago (2014-08-14 15:51:34 UTC) #6
dandov
The CQ bit was checked by dandov@google.com
6 years, 4 months ago (2014-08-14 15:52:17 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/469333002/60001
6 years, 4 months ago (2014-08-14 15:53:07 UTC) #8
egdaniel
The CQ bit was unchecked by egdaniel@google.com
6 years, 4 months ago (2014-08-15 13:06:35 UTC) #9
egdaniel
The CQ bit was checked by egdaniel@google.com
6 years, 4 months ago (2014-08-15 13:06:37 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/dandov@google.com/469333002/60001
6 years, 4 months ago (2014-08-15 13:06:42 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-15 13:06:53 UTC) #12
Message was sent while issue was closed.
Committed patchset #4 (60001) as 45f7842de7148a544008483a7829071d3dffba51

Powered by Google App Engine
This is Rietveld 408576698