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

Issue 1055093002: SkPMFloat: fewer internal this->isValid() assertions. (Closed)

Created:
5 years, 8 months ago by mtklein_C
Modified:
5 years, 8 months ago
Reviewers:
reed2
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

SkPMFloat: fewer internal this->isValid() assertions. Each of these conversion functions now only asserts is output is valid. For SkPMColor -> SkPMFloat, we assert isValid(). For SkPMFloat -> SkPMColor, we SkPMColorAssert. #floats BUG=skia: BUG=skia:3592 Committed: https://skia.googlesource.com/skia/+/07342361a3cda94376230b37d9e863052449653c

Patch Set 1 #

Patch Set 2 : doc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -8 lines) Patch
M src/core/SkPMFloat.h View 1 1 chunk +4 lines, -2 lines 0 comments Download
M src/opts/SkPMFloat_SSE2.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/opts/SkPMFloat_SSSE3.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/opts/SkPMFloat_neon.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/opts/SkPMFloat_none.h View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 10 (4 generated)
reed2
The dox could/should says that they assert on the returned pmcolor. lgtm
5 years, 8 months ago (2015-04-02 18:10:39 UTC) #2
mtklein
On 2015/04/02 18:10:39, reed2 wrote: > The dox could/should says that they assert on the ...
5 years, 8 months ago (2015-04-02 18:12:10 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1055093002/20001
5 years, 8 months ago (2015-04-02 18:12:38 UTC) #6
reed2
At some point I'd vote to rename get() to something more parallel to trunc(), making ...
5 years, 8 months ago (2015-04-02 18:13:59 UTC) #8
mtklein
On 2015/04/02 18:13:59, reed2 wrote: > At some point I'd vote to rename get() to ...
5 years, 8 months ago (2015-04-02 18:21:08 UTC) #9
commit-bot: I haz the power
5 years, 8 months ago (2015-04-02 18:21:16 UTC) #10
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/07342361a3cda94376230b37d9e863052449653c

Powered by Google App Engine
This is Rietveld 408576698