diff options
| author | Leon Scroggins III <scroggo@google.com> | 2018-12-17 10:40:07 -0500 |
|---|---|---|
| committer | Leon Scroggins III <scroggo@google.com> | 2019-01-15 12:16:19 -0500 |
| commit | 4c4259b33972300f98d77a19d80d9971b521c1b9 (patch) | |
| tree | 03bd2d2b4cc346777a042b50299f55824fff249d /graphics/java/android/renderscript/ProgramFragmentFixedFunction.java | |
| parent | 5ca575ae71493aedfbd93da032692ad5a1d50f27 (diff) | |
Add Bitmap#eraseColor(@ColorLong) + helpers
Bug: 120904891
Test: I162451ebf807f3a8a44679e5c10406468c922500
- Add Bitmap#eraseColor(@ColorLong). This allows erasing in ColorSpaces
besides SRGB. New API is hidden pending API-council approval. It is
@TestApi so it can be used by the new tests.
- Rewrite Bitmap#erase(@ColorInt)'s internals. The ColorInt should be
treated as an SRGB color. The old code (deep in SkPixmap::erase)
treated the color as being in the SkColorSpace of the SkBitmap.
- Update getNativeColorSpace to return immediately when it throws.
Existing callers should never throw anyway, since they do their own
checks (and throws) in Java before reaching this method. But relying
on this method to properly return simplifies the new callers.
Change-Id: I1b736934ce1b8294c827bb61c2a363207569da4f
Diffstat (limited to 'graphics/java/android/renderscript/ProgramFragmentFixedFunction.java')
0 files changed, 0 insertions, 0 deletions
