commit | 2fd0d14b9be34a7a945942733c3516d97d07f516 | [log] [tgz] |
---|---|---|
author | scroggo <scroggo@google.com> | Tue Jul 01 07:08:19 2014 -0700 |
committer | Commit bot <commit-bot@chromium.org> | Tue Jul 01 07:08:20 2014 -0700 |
tree | 3271e0f2cf4b034cee36dd2308d69eb74e255a24 | |
parent | e8e8d0226c7729b87915b37cd4fde44c1f1cb611 [diff] |
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. R=reed@google.com, halcanary@google.com Author: scroggo@google.com Review URL: https://codereview.chromium.org/346593003