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

Issue 1911613002: Use SkEncodedInfo in place of SkSwizzler::SrcConfig (Closed)

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

Description

Patch Set 1 #

Total comments: 6

Patch Set 2 : Remove bytesPerPixel() from public API #

Total comments: 11

Patch Set 3 : Add kPreSwizzled_Color for internal use #

Patch Set 4 : Cleanup #

Total comments: 2

Patch Set 5 : Create private setColor #

Patch Set 6 : Fix bmp bug #

Unified diffs Side-by-side diffs Delta from patch set Stats (+248 lines, -304 lines) Patch
M include/codec/SkEncodedInfo.h View 1 2 3 4 3 chunks +39 lines, -0 lines 0 comments Download
M src/codec/SkBmpStandardCodec.cpp View 1 2 3 4 5 1 chunk +8 lines, -28 lines 0 comments Download
M src/codec/SkGifCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkJpegCodec.cpp View 1 2 3 4 2 chunks +14 lines, -25 lines 0 comments Download
M src/codec/SkPngCodec.h View 2 chunks +0 lines, -2 lines 0 comments Download
M src/codec/SkPngCodec.cpp View 1 7 chunks +16 lines, -43 lines 0 comments Download
M src/codec/SkRawCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/codec/SkSwizzler.h View 2 chunks +2 lines, -72 lines 0 comments Download
M src/codec/SkSwizzler.cpp View 1 2 3 chunks +166 lines, -131 lines 0 comments Download
M src/codec/SkWbmpCodec.cpp View 1 chunk +1 line, -1 line 0 comments Download

Dependent Patchsets:

Messages

Total messages: 30 (13 generated)
msarett
This used to be part of another CL (https://codereview.chromium.org/1835083002/) that enabled non-platform (BGRA/RGBA) swizzles. But ...
4 years, 8 months ago (2016-04-20 21:30:57 UTC) #4
reed1
https://codereview.chromium.org/1911613002/diff/1/include/codec/SkEncodedInfo.h File include/codec/SkEncodedInfo.h (right): https://codereview.chromium.org/1911613002/diff/1/include/codec/SkEncodedInfo.h#newcode165 include/codec/SkEncodedInfo.h:165: uint8_t bitsPerPixel() const { Why do we offer bitsPer ...
4 years, 8 months ago (2016-04-21 14:15:00 UTC) #5
msarett
Removed bytesPerPixel() from the public API. https://codereview.chromium.org/1911613002/diff/1/include/codec/SkEncodedInfo.h File include/codec/SkEncodedInfo.h (right): https://codereview.chromium.org/1911613002/diff/1/include/codec/SkEncodedInfo.h#newcode165 include/codec/SkEncodedInfo.h:165: uint8_t bitsPerPixel() const ...
4 years, 8 months ago (2016-04-21 14:36:44 UTC) #6
scroggo
lgtm I like how this consolidates a lot of code into the swizzler! https://codereview.chromium.org/1911613002/diff/1/src/codec/SkJpegCodec.cpp File ...
4 years, 8 months ago (2016-04-21 15:09:11 UTC) #7
msarett
I think adding kPreSwizzled makes things a lot cleaner. https://codereview.chromium.org/1911613002/diff/1/src/codec/SkJpegCodec.cpp File src/codec/SkJpegCodec.cpp (right): https://codereview.chromium.org/1911613002/diff/1/src/codec/SkJpegCodec.cpp#newcode513 src/codec/SkJpegCodec.cpp:513: ...
4 years, 8 months ago (2016-04-21 16:03:41 UTC) #8
scroggo
LGTM https://codereview.chromium.org/1911613002/diff/20001/src/codec/SkPngCodec.cpp File src/codec/SkPngCodec.cpp (right): https://codereview.chromium.org/1911613002/diff/20001/src/codec/SkPngCodec.cpp#newcode517 src/codec/SkPngCodec.cpp:517: // supporting outputs from libpng that are less ...
4 years, 8 months ago (2016-04-21 16:12:17 UTC) #9
reed1
https://codereview.chromium.org/1911613002/diff/60001/include/codec/SkEncodedInfo.h File include/codec/SkEncodedInfo.h (right): https://codereview.chromium.org/1911613002/diff/60001/include/codec/SkEncodedInfo.h#newcode80 include/codec/SkEncodedInfo.h:80: static SkEncodedInfo Make(Color color, Alpha alpha, int bitsPerComponent) { ...
4 years, 8 months ago (2016-04-22 15:08:35 UTC) #10
msarett
https://codereview.chromium.org/1911613002/diff/60001/include/codec/SkEncodedInfo.h File include/codec/SkEncodedInfo.h (right): https://codereview.chromium.org/1911613002/diff/60001/include/codec/SkEncodedInfo.h#newcode80 include/codec/SkEncodedInfo.h:80: static SkEncodedInfo Make(Color color, Alpha alpha, int bitsPerComponent) { ...
4 years, 8 months ago (2016-04-22 16:13:26 UTC) #11
reed1
lgtm
4 years, 8 months ago (2016-04-22 18:17:01 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911613002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911613002/80001
4 years, 8 months ago (2016-04-22 18:20:06 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8020)
4 years, 8 months ago (2016-04-22 18:29:08 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911613002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911613002/80001
4 years, 8 months ago (2016-04-22 18:31:27 UTC) #19
commit-bot: I haz the power
Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/8022)
4 years, 8 months ago (2016-04-22 18:37:00 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911613002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911613002/100001
4 years, 8 months ago (2016-04-22 20:07:11 UTC) #23
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-04-22 20:17:07 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1911613002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1911613002/100001
4 years, 8 months ago (2016-04-22 20:17:41 UTC) #28
commit-bot: I haz the power
4 years, 8 months ago (2016-04-22 20:18:40 UTC) #30
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://skia.googlesource.com/skia/+/a45a668fa57eb968e24f379eceb2e56324e2cca2

Powered by Google App Engine
This is Rietveld 408576698