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

Issue 346593003: Adjust the alpha type for pixelRefs. (Closed)

Created:
6 years, 6 months ago by scroggo
Modified:
6 years, 5 months ago
Reviewers:
hal.canary, reed1
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Visibility:
Public.

Description

Adjust the alpha type for pixelRefs. Move SkBitmap's validate_alphaType to SkImageInfo, with the new name SkColorTypeValidateAlphaType. Use it in SkPixelRef's constructors, as well as in SkDecodingImageGenerator. This fixes a bug where an SkPixelRef's SkAlphaType could get out of sync with its SkBitmap, when both were assigned the same SkAlphaType. Committed: https://skia.googlesource.com/skia/+/2fd0d14b9be34a7a945942733c3516d97d07f516

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename SkValidateAlphaType to SkColorTypeValidateAlphaType. #

Patch Set 3 : Fix alignment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -35 lines) Patch
M include/core/SkImageInfo.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M src/core/SkBitmap.cpp View 1 3 chunks +4 lines, -35 lines 0 comments Download
M src/core/SkImageInfo.cpp View 1 1 chunk +31 lines, -0 lines 0 comments Download
M src/core/SkPixelRef.cpp View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M src/images/SkDecodingImageGenerator.cpp View 1 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scroggo
https://codereview.chromium.org/346593003/diff/1/include/core/SkImageInfo.h File include/core/SkImageInfo.h (right): https://codereview.chromium.org/346593003/diff/1/include/core/SkImageInfo.h#newcode123 include/core/SkImageInfo.h:123: * Return true if alphaType is supported by colorType. ...
6 years, 6 months ago (2014-06-18 17:45:43 UTC) #1
reed1
https://codereview.chromium.org/346593003/diff/1/include/core/SkImageInfo.h File include/core/SkImageInfo.h (right): https://codereview.chromium.org/346593003/diff/1/include/core/SkImageInfo.h#newcode123 include/core/SkImageInfo.h:123: * Return true if alphaType is supported by colorType. ...
6 years, 6 months ago (2014-06-18 17:58:20 UTC) #2
scroggo
https://codereview.chromium.org/346593003/diff/1/include/core/SkImageInfo.h File include/core/SkImageInfo.h (right): https://codereview.chromium.org/346593003/diff/1/include/core/SkImageInfo.h#newcode126 include/core/SkImageInfo.h:126: bool SkValidateAlphaType(SkColorType colorType, SkAlphaType alphaType, On 2014/06/18 17:58:20, reed1 ...
6 years, 5 months ago (2014-06-30 22:03:59 UTC) #3
reed1
nit: CL comment says SkValidateAlphaType, but I think the name is SkColorTypeValidateAlphaType.
6 years, 5 months ago (2014-07-01 13:30:36 UTC) #4
reed1
lgtm
6 years, 5 months ago (2014-07-01 13:30:44 UTC) #5
scroggo
On 2014/07/01 13:30:36, reed1 wrote: > nit: CL comment says SkValidateAlphaType, but I think the ...
6 years, 5 months ago (2014-07-01 13:36:50 UTC) #6
scroggo
The CQ bit was checked by scroggo@google.com
6 years, 5 months ago (2014-07-01 13:36:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://skia-tree-status.appspot.com/cq/scroggo@google.com/346593003/40001
6 years, 5 months ago (2014-07-01 13:37:07 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-01 14:08:26 UTC) #9
Message was sent while issue was closed.
Change committed as 2fd0d14b9be34a7a945942733c3516d97d07f516

Powered by Google App Engine
This is Rietveld 408576698