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

Issue 675013003: Trying to be consistent when members are allowed to be NULL (Closed)

Created:
6 years, 1 month ago by sugoi1
Modified:
6 years, 1 month ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Trying to be consistent when members are allowed to be NULL Got a few crashes running the fuzzer locally, all related to handling NULL members/parameters in an inconsistent way. BUG=skia: Committed: https://skia.googlesource.com/skia/+/9bde31e95ddd82a4a923275bb01265740407dab1

Patch Set 1 #

Total comments: 11

Patch Set 2 : Fixed comments #

Total comments: 4

Patch Set 3 : Removed unnecessary SkSafeRef()/SkSafeUnref() calls #

Total comments: 2

Patch Set 4 : Fixed nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -11 lines) Patch
M src/core/SkLocalMatrixShader.cpp View 1 1 chunk +4 lines, -0 lines 0 comments Download
M src/effects/SkColorFilterImageFilter.cpp View 1 2 3 3 chunks +5 lines, -4 lines 0 comments Download
M src/effects/SkRectShaderImageFilter.cpp View 1 2 3 3 chunks +5 lines, -7 lines 0 comments Download

Messages

Total messages: 14 (4 generated)
sugoi1
https://codereview.chromium.org/675013003/diff/1/src/core/SkLocalMatrixShader.cpp File src/core/SkLocalMatrixShader.cpp (right): https://codereview.chromium.org/675013003/diff/1/src/core/SkLocalMatrixShader.cpp#newcode63 src/core/SkLocalMatrixShader.cpp:63: if (localMatrix.isIdentity() || !proxy) { proxy may be NULL ...
6 years, 1 month ago (2014-10-29 15:26:12 UTC) #2
reed1
https://codereview.chromium.org/675013003/diff/1/src/core/SkLocalMatrixShader.cpp File src/core/SkLocalMatrixShader.cpp (right): https://codereview.chromium.org/675013003/diff/1/src/core/SkLocalMatrixShader.cpp#newcode63 src/core/SkLocalMatrixShader.cpp:63: if (localMatrix.isIdentity() || !proxy) { Would this be even ...
6 years, 1 month ago (2014-10-29 15:43:39 UTC) #4
sugoi1
https://codereview.chromium.org/675013003/diff/1/src/core/SkLocalMatrixShader.cpp File src/core/SkLocalMatrixShader.cpp (right): https://codereview.chromium.org/675013003/diff/1/src/core/SkLocalMatrixShader.cpp#newcode63 src/core/SkLocalMatrixShader.cpp:63: if (localMatrix.isIdentity() || !proxy) { On 2014/10/29 15:43:38, reed1 ...
6 years, 1 month ago (2014-10-29 18:21:00 UTC) #5
reed1
https://codereview.chromium.org/675013003/diff/20001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/675013003/diff/20001/src/effects/SkColorFilterImageFilter.cpp#newcode147 src/effects/SkColorFilterImageFilter.cpp:147: SkSafeRef(fColorFilter); When can this ever be NULL? https://codereview.chromium.org/675013003/diff/20001/src/effects/SkRectShaderImageFilter.cpp File ...
6 years, 1 month ago (2014-10-29 18:27:08 UTC) #6
sugoi1
https://codereview.chromium.org/675013003/diff/20001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/675013003/diff/20001/src/effects/SkColorFilterImageFilter.cpp#newcode147 src/effects/SkColorFilterImageFilter.cpp:147: SkSafeRef(fColorFilter); On 2014/10/29 18:27:08, reed1 wrote: > When can ...
6 years, 1 month ago (2014-10-29 18:30:58 UTC) #7
sugoi1
Removed unnecessary SkSafeRef()/SkSafeUnref() calls
6 years, 1 month ago (2014-10-29 18:35:37 UTC) #8
reed1
lgtm https://codereview.chromium.org/675013003/diff/40001/src/effects/SkColorFilterImageFilter.cpp File src/effects/SkColorFilterImageFilter.cpp (right): https://codereview.chromium.org/675013003/diff/40001/src/effects/SkColorFilterImageFilter.cpp#newcode84 src/effects/SkColorFilterImageFilter.cpp:84: : INHERITED(1, &input, cropRect, uniqueID), fColorFilter(cf) { suggestion ...
6 years, 1 month ago (2014-10-29 19:55:00 UTC) #9
Stephen White
LGTM
6 years, 1 month ago (2014-10-29 20:22:51 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/675013003/60001
6 years, 1 month ago (2014-10-30 20:57:27 UTC) #13
commit-bot: I haz the power
6 years, 1 month ago (2014-10-30 21:05:19 UTC) #14
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as 9bde31e95ddd82a4a923275bb01265740407dab1

Powered by Google App Engine
This is Rietveld 408576698