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

Issue 517763002: Address MSVC warnings about possible value truncation. (Closed)

Created:
6 years, 3 months ago by Peter Kasting
Modified:
6 years, 3 months ago
Reviewers:
reed1
CC:
reviews_skia.org
Base URL:
https://chromium.googlesource.com/skia.git@master
Project:
skia
Visibility:
Public.

Description

Address MSVC warnings about possible value truncation. In the process removes some apparently unused code. BUG=81439 TEST=none Committed: https://skia.googlesource.com/skia/+/280c2c6fbbf953d83710d2229280075585a1ab59

Patch Set 1 #

Total comments: 11

Patch Set 2 : Review comments #

Total comments: 3

Patch Set 3 : Back to cast #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -34 lines) Patch
M include/core/SkColorPriv.h View 1 2 5 chunks +7 lines, -34 lines 0 comments Download

Messages

Total messages: 18 (3 generated)
Peter Kasting
pkasting@chromium.org changed reviewers: + reed@google.com
6 years, 3 months ago (2014-08-28 21:13:39 UTC) #1
Peter Kasting
https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h File include/core/SkColorPriv.h (left): https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h#oldcode821 include/core/SkColorPriv.h:821: static inline U16CPU SkCompact_4444(uint32_t c) { Seemingly only used ...
6 years, 3 months ago (2014-08-28 21:13:54 UTC) #2
reed1
https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h File include/core/SkColorPriv.h (left): https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h#oldcode821 include/core/SkColorPriv.h:821: static inline U16CPU SkCompact_4444(uint32_t c) { On 2014/08/28 21:13:54, ...
6 years, 3 months ago (2014-08-28 21:30:00 UTC) #3
Peter Kasting
Updated, PTAL. https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h#newcode310 include/core/SkColorPriv.h:310: SkCompact_rgb_16(dst32 + ((src32 - dst32) * srcScale ...
6 years, 3 months ago (2014-08-28 21:58:23 UTC) #4
reed1
https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/517763002/diff/1/include/core/SkColorPriv.h#newcode310 include/core/SkColorPriv.h:310: SkCompact_rgb_16(dst32 + ((src32 - dst32) * srcScale >> 5))); ...
6 years, 3 months ago (2014-08-29 12:47:08 UTC) #5
reed1
https://codereview.chromium.org/517763002/diff/20001/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/517763002/diff/20001/include/core/SkColorPriv.h#newcode801 include/core/SkColorPriv.h:801: return (scaled_c & mask) | ((scaled_c >> 12) & ...
6 years, 3 months ago (2014-08-29 12:48:42 UTC) #6
Peter Kasting
https://codereview.chromium.org/517763002/diff/20001/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/517763002/diff/20001/include/core/SkColorPriv.h#newcode801 include/core/SkColorPriv.h:801: return (scaled_c & mask) | ((scaled_c >> 12) & ...
6 years, 3 months ago (2014-08-29 20:50:35 UTC) #7
reed1
lgtm https://codereview.chromium.org/517763002/diff/20001/include/core/SkColorPriv.h File include/core/SkColorPriv.h (right): https://codereview.chromium.org/517763002/diff/20001/include/core/SkColorPriv.h#newcode801 include/core/SkColorPriv.h:801: return (scaled_c & mask) | ((scaled_c >> 12) ...
6 years, 3 months ago (2014-09-02 14:10:07 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/pkasting@chromium.org/517763002/20001
6 years, 3 months ago (2014-09-02 19:55:08 UTC) #10
Peter Kasting
Mike, the patch looks to be failing due to the assertion from the added SkToU16() ...
6 years, 3 months ago (2014-09-02 20:05:51 UTC) #11
reed1
Yea, I see that it, and the other functions that call it within SkColorPriv.h all ...
6 years, 3 months ago (2014-09-02 20:16:34 UTC) #13
Peter Kasting
On 2014/09/02 20:16:34, reed1 wrote: > Yea, I see that it, and the other functions ...
6 years, 3 months ago (2014-09-02 20:25:06 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/pkasting@chromium.org/517763002/40001
6 years, 3 months ago (2014-09-02 20:33:08 UTC) #16
reed1
On 2014/09/02 20:25:06, Peter Kasting wrote: > On 2014/09/02 20:16:34, reed1 wrote: > > Yea, ...
6 years, 3 months ago (2014-09-02 20:37:02 UTC) #17
commit-bot: I haz the power
6 years, 3 months ago (2014-09-02 20:40:55 UTC) #18
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 280c2c6fbbf953d83710d2229280075585a1ab59

Powered by Google App Engine
This is Rietveld 408576698