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

Issue 1277253003: Update CodexTest to test valid_alpha. (Closed)

Created:
5 years, 4 months ago by scroggo_chromium
Modified:
5 years, 4 months ago
Reviewers:
msarett, scroggo, emmaleer, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Update CodexTest to test valid_alpha. Add a static function to CodexTest, which consolidates decoding, comparing to an expected SkCodec::Result, and optionally comparing to a digest. Test decoding non-opaque to opaque (fails) and premul to unpremul/vice versa (succeeds). BUG=skia:3475 Committed: https://skia.googlesource.com/skia/+/d1bc5746ba9ec86b1ef50aa0d3131adb0e2843f5

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Test opaque to not, plus conversion check in wbmp #

Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -7 lines) Patch
M src/codec/SkCodec_wbmp.cpp View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M tests/CodexTest.cpp View 1 2 2 chunks +45 lines, -7 lines 0 comments Download

Messages

Total messages: 8 (2 generated)
scroggo_chromium
https://codereview.chromium.org/1277253003/diff/1/tests/CodexTest.cpp File tests/CodexTest.cpp (right): https://codereview.chromium.org/1277253003/diff/1/tests/CodexTest.cpp#newcode114 tests/CodexTest.cpp:114: if (info.alphaType() == kOpaque_SkAlphaType) { When I started writing ...
5 years, 4 months ago (2015-08-07 23:16:31 UTC) #2
msarett
https://codereview.chromium.org/1277253003/diff/1/tests/CodexTest.cpp File tests/CodexTest.cpp (right): https://codereview.chromium.org/1277253003/diff/1/tests/CodexTest.cpp#newcode114 tests/CodexTest.cpp:114: if (info.alphaType() == kOpaque_SkAlphaType) { On 2015/08/07 23:16:31, scroggo_chromium ...
5 years, 4 months ago (2015-08-10 13:51:12 UTC) #3
scroggo_chromium
https://codereview.chromium.org/1277253003/diff/1/tests/CodexTest.cpp File tests/CodexTest.cpp (right): https://codereview.chromium.org/1277253003/diff/1/tests/CodexTest.cpp#newcode114 tests/CodexTest.cpp:114: if (info.alphaType() == kOpaque_SkAlphaType) { On 2015/08/10 13:51:12, msarett ...
5 years, 4 months ago (2015-08-12 14:55:31 UTC) #4
msarett
lgtm
5 years, 4 months ago (2015-08-12 15:04:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1277253003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1277253003/40001
5 years, 4 months ago (2015-08-12 15:21:37 UTC) #7
commit-bot: I haz the power
5 years, 4 months ago (2015-08-12 15:31:47 UTC) #8
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/d1bc5746ba9ec86b1ef50aa0d3131adb0e2843f5

Powered by Google App Engine
This is Rietveld 408576698