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

Issue 2003653002: Use SkASSERTResult to avoid unused local variables (Closed)

Created:
4 years, 7 months ago by liyuqian
Modified:
4 years, 7 months ago
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Use SkASSERTResult to avoid unused local variables BUG=skia: GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2003653002 Committed: https://skia.googlesource.com/skia/+/beb1c67c9d332b41b306b292bb77a0e1566c32a8

Patch Set 1 #

Patch Set 2 : Name #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -6 lines) Patch
M tools/viewer/Viewer.cpp View 1 1 chunk +1 line, -2 lines 0 comments Download
M tools/viewer/sk_app/android/surface_glue_android.cpp View 1 1 chunk +2 lines, -4 lines 2 comments Download

Messages

Total messages: 21 (10 generated)
liyuqian
Thanks and here's the fix with SkAssertResult :)
4 years, 7 months ago (2016-05-20 16:18:02 UTC) #4
jvanverth1
lgtm
4 years, 7 months ago (2016-05-20 17:25:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003653002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003653002/20001
4 years, 7 months ago (2016-05-20 17:26:17 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: Build-Mac-Clang-x86_64-Release-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Mac-Clang-x86_64-Release-Trybot/builds/2743)
4 years, 7 months ago (2016-05-20 17:41:36 UTC) #9
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003653002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003653002/20001
4 years, 7 months ago (2016-05-20 18:06:23 UTC) #11
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 7 months ago (2016-05-20 18:09:53 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2003653002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2003653002/20001
4 years, 7 months ago (2016-05-20 18:39:47 UTC) #15
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://skia.googlesource.com/skia/+/beb1c67c9d332b41b306b292bb77a0e1566c32a8
4 years, 7 months ago (2016-05-20 18:41:04 UTC) #17
egdaniel
https://codereview.chromium.org/2003653002/diff/20001/tools/viewer/sk_app/android/surface_glue_android.cpp File tools/viewer/sk_app/android/surface_glue_android.cpp (right): https://codereview.chromium.org/2003653002/diff/20001/tools/viewer/sk_app/android/surface_glue_android.cpp#newcode84 tools/viewer/sk_app/android/surface_glue_android.cpp:84: SkAssertResult(read(fPipes[0], message, sizeof(Message)) == sizeof(Message)); So just doing a ...
4 years, 7 months ago (2016-05-20 18:50:23 UTC) #19
liyuqian
https://codereview.chromium.org/2003653002/diff/20001/tools/viewer/sk_app/android/surface_glue_android.cpp File tools/viewer/sk_app/android/surface_glue_android.cpp (right): https://codereview.chromium.org/2003653002/diff/20001/tools/viewer/sk_app/android/surface_glue_android.cpp#newcode84 tools/viewer/sk_app/android/surface_glue_android.cpp:84: SkAssertResult(read(fPipes[0], message, sizeof(Message)) == sizeof(Message)); On 2016/05/20 18:50:23, egdaniel ...
4 years, 7 months ago (2016-05-20 18:53:00 UTC) #20
egdaniel
4 years, 7 months ago (2016-05-20 18:54:00 UTC) #21
Message was sent while issue was closed.
On 2016/05/20 18:53:00, liyuqian wrote:
>
https://codereview.chromium.org/2003653002/diff/20001/tools/viewer/sk_app/and...
> File tools/viewer/sk_app/android/surface_glue_android.cpp (right):
> 
>
https://codereview.chromium.org/2003653002/diff/20001/tools/viewer/sk_app/and...
> tools/viewer/sk_app/android/surface_glue_android.cpp:84:
> SkAssertResult(read(fPipes[0], message, sizeof(Message)) == sizeof(Message));
> On 2016/05/20 18:50:23, egdaniel wrote:
> > So just doing a fly by unsolicited review. Here would it be better to have
> just
> > surrounded the "auto read/writeSize =" in SkDEBUGCODE(...) so we don't do
the
> > compare on release?
> 
> That's a good point. However, I've already committed the change... Shall I
> create another CL?

Sure

Powered by Google App Engine
This is Rietveld 408576698