commit | 91f0a455bb6670b59b8d15cc7a9adb0e6d7f146d | [log] [tgz] |
---|---|---|
author | John Reck <jreck@google.com> | Fri Mar 21 11:09:45 2014 -0700 |
committer | John Reck <jreck@google.com> | Fri Mar 21 18:16:18 2014 +0000 |
tree | d1ae665f9ea5884833b49c5892f075ed94bb77e8 | |
parent | 3f5232220f2db839f690489ed272113f660daa40 [diff] |
Eliminate mHasAlpha Bug: 13580771 The cached value mHasAlpha on Bitmap could get out of sync with the real value stored in the SkBitmap. Fix this by just eliminating the cached value. This adds an extra JNI call in copy(), createBitmap(), and setPremultiplied(), none of which are going to be significantly impacted by the extra JNI call. Change-Id: I4fce069a77d9b3bbb47dde04275ff8510ce7e4f0