History log of /frameworks/base/libs/hwui/hwui/Bitmap.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
937c6940809cfc931e5ca8d1400ac5fda9340e20 08-Feb-2018 Mike Reed <reed@google.com> SkColorTypeShiftPerPixel is deprecated

Test: make

Change-Id: Ib55e1d8d0bd173be0d5afa70b40fa0d867e20fd1
/frameworks/base/libs/hwui/hwui/Bitmap.h
1bcacfdcab0eaa0cee92bd7f5a1b5e271dd68e52 03-Nov-2017 John Reck <jreck@google.com> Format the world (or just HWUI)

Test: No code changes, just ran through clang-format
Change-Id: Id23aa4ec7eebc0446fe3a30260f33e7fd455bb8c
/frameworks/base/libs/hwui/hwui/Bitmap.h
fb0c8fc3d5413a3ec357680d85084a17bb9ef64f 26-Jul-2017 Derek Sollenberger <djsollen@google.com> Enable colorspace conversion while perserving legacy blending.

When requesting an SkImage from a android::Bitmap we will also
return a colorFilter that will perform the sRGB conversion at draw
time.

Bug: 62347704
Test: CtsUiRenderingTestCases, CtsGraphicsTestCases, CtsViewTestCases
Change-Id: Icc4694e2c42605e29fcc834c252bc21263bac658
/frameworks/base/libs/hwui/hwui/Bitmap.h
f51a80d2b074d1971b11b19e890c936af5aa57a3 12-Jul-2017 Leon Scroggins III <scroggo@google.com> Remove more references to kIndex_8

Test: Covered by existing tests. No actual change in behavior, since
kIndex_8 is not being used anyway.

Bug: 62483967

Change-Id: I317e3a814dbd102925fe412d2e19111b0af3af38
/frameworks/base/libs/hwui/hwui/Bitmap.h
7bc3bc6028d0c7b16fec72c3922fc627c8657951 24-May-2017 Stan Iliev <stani@google.com> Implement HW Bitmap for Skia pipeline

Implement HW Bitmap for Skia pipeline. Use new Skia
SkImage::MakeFromAHardwareBuffer API, which will enable to
record HW Bitmap into a picture. Move logic that uploads
SkBitmap into a GraphicBuffer into pipeline specific classes.

Test: All CTS and other tests pass for HWUI pipleine. For Skia
pipeline graphics CTS tests pass, 2 UIRendering CTS tests which
excise HW bitmaps with color spaces fail, bitmapShaderEglImage
macrobench fails (to be fixed by a CL in Skia), HWUI unit tests
pass, no EGL leaks found.

Change-Id: Id5926d7cccd81af8b55400f44fb524a427543d05
/frameworks/base/libs/hwui/hwui/Bitmap.h
59069e00a8965cb67350e95f32d62c31d6bf010e 17-May-2017 John Reck <jreck@google.com> Revert "Fix recent apps in system UI for Skia pipeline"

This reverts commit b33013fb3c570e0a3ced8729dced9f0d294761a6.

Reason for revert: Caused a memory leak, b/38330767
Bug: 38136140
Bug: 38330767
Test: manual, verified memory isn't leaking doing the steps in b/38330767

Change-Id: I98b2dfd750be57a15785808e2d5723616e2ce20a
/frameworks/base/libs/hwui/hwui/Bitmap.h
b33013fb3c570e0a3ced8729dced9f0d294761a6 06-May-2017 Stan Iliev <stani@google.com> Fix recent apps in system UI for Skia pipeline

Enable HW Bitmaps for Skia pipeline just enough to make
recent apps list working by adding support for BitmapShader.
Drawing HW bitmaps in a canvas is also supported.

Test: recent apps work, HWUI unit tests pass, CTS tests pass.
bug: 38136140
Change-Id: Ibd06c859c86dc213310d5ce5272497e1882d0cc6
/frameworks/base/libs/hwui/hwui/Bitmap.h
489cfff4ad8a67c03f93e17f6650bb04398a021d 22-Apr-2017 Matt Sarett <msarett@google.com> Store an SkImageInfo on Bitmap

Color type, alpha type, and color space are being removed from
SkPixelRef.

The Bitmap class wants these to be mutable anyway.

For other uses of SkPixelRef, it is often convenient to reinterpret
the swizzle, alpha type, or color space of the pixel ref.

Test: Refactor
skbug.com/6535

Change-Id: Ie49ac64b46e171974a53614e1803ab18300e634e
/frameworks/base/libs/hwui/hwui/Bitmap.h
0a8fb522eba5fbaa5e98e54abb7bb59e37c4584c 13-Apr-2017 Mike Reed <reed@google.com> use sk_sp to manage colortables

The goal is to eliminate the times we have to manually save ref or
unref.

Test: hwui_unit_tests and CtsGraphicsTestCases pass

Change-Id: I69273acc18d3f3beea60625a37bf007907ff05e9
/frameworks/base/libs/hwui/hwui/Bitmap.h
2cb0826d2e9d5b5e7721a150977ef1cc5b432301 12-Apr-2017 Mike Reed <reed@google.com> lockPixels is no longer virtual

See skbug.com/6481

With pixelrefs now always (logically) locked, we no longer override
onNewLockPixels/onUnlockPixels. We also must now pass our
address/rowBytes to the base constructor.

These changes allow us to remove duplicate fields in the hwui Bitmap
subclass -- mRowBytes and mColorTable, since these fields are now always
available from the base-class.

However, since this subclass still wants to overwrite const fields in
the base-class (its reconfigure api), change the impl to use the newly
added private method (android_only_reset) to encapsulate this.

Test: hwui_unit_tests and CtsGraphicsTestCases pass

Change-Id: I57a3af1135580513b708f35549a6defb7ac6c04e
/frameworks/base/libs/hwui/hwui/Bitmap.h
63df65dfe2632f0b2e5d53bea36df9aece96ed12 10-Apr-2017 Mike Reed <reed@google.com> mark mPixelStorageType const

This is a natural consequence of the fact that we always call
setPreLocked from the constructor. Future Skia will remove the virtual
for lockPixels (onNewLockPixels), but that is compatible with this
subclass since does not change its pixel-addr or pixel-type after the
constructor.

See skbug.com/6481 for more details

Test: existing tests apply, no behavior change

Change-Id: I0f9d3efc9a05b71907480eaaadbc7fafe9dd491b
/frameworks/base/libs/hwui/hwui/Bitmap.h
8242656f495847c50c9ceaea92839dce78218a75 05-Apr-2017 Romain Guy <romainguy@google.com> Color management, the missing pieces

Implement missing color management pieces for bitmaps:

- Bitmap.createBitmap(Bitmap src, ...) now creates a bitmap
in the same color space as the source bitmap
- Bitmap.createScaledBitmap() now creates a bitmap in the
same color space as the source bitmap
- Bitmap.createBitmap(..., ColorSpace colorSpace) to create
bitmaps in a specific color space
- Fix copy from A8 to F16
- Copying bitmaps in F16 or with a color space does not work,
it's currently a limitation in Skia

Bug: 36905374
Test: BitmapColorSpaceTest
Change-Id: I0092fe4432511db50daa3a9393389a9db05e0c2a
/frameworks/base/libs/hwui/hwui/Bitmap.h
9a029876422926e313f646f44ab3592cfd4f9933 29-Nov-2016 sergeyv <sergeyv@google.com> Add createHardwareBitmap on GraphicBuffer for SysUI

Test: none
bug:30999911
Change-Id: Ic396e25d9e587665e634c3192e14ef4bc3dc78f7
/frameworks/base/libs/hwui/hwui/Bitmap.h
554ffeb8b7c836da43a637c59eedfc617895b19d 16-Nov-2016 sergeyv <sergeyv@google.com> Support hardware bitmaps in bitmap shaders

Test: hwuimacro bitmapShaderEglImage --onscreen.
bug:30999911
Change-Id: I9d16a1c217a4474841794cf27ce49e3f7823678e
/frameworks/base/libs/hwui/hwui/Bitmap.h
694d499662838123f474f41b31dea84ec5d563f0 27-Oct-2016 sergeyv <sergeyv@google.com> Routine to upload hardware bitmaps

Change-Id: Id8283a0975325e6830d55fd1e33c5f292a1e9be0
Test: refactoring cl.
bug:30999911
/frameworks/base/libs/hwui/hwui/Bitmap.h
98fa4f9e7b33a3004ce9142c9acd4300391b9a0e 25-Oct-2016 sergeyv <sergeyv@google.com> Use Bitmap in Texture.upload

Test: refactoring cl.
bug:32216791

Change-Id: Ib0b16c878d8371e0471e9a502f55626ec5999c60
/frameworks/base/libs/hwui/hwui/Bitmap.h
ec4a4b13eae2241d1613890c1c1c096bed891845 21-Oct-2016 sergeyv <sergeyv@google.com> Use Bitmap in DisplayList & RecordedOps instead of SkBitmap
Test: refactoring cl.
bug:32216791

Change-Id: I1d8a9a6e772e2176b6c2409409a910478b45f8db
/frameworks/base/libs/hwui/hwui/Bitmap.h
fc9999505a36c66892d7ccce85187936105f4f36 17-Oct-2016 sergeyv <sergeyv@google.com> Pass Bitmap instead of SkBitmap for bitmap rect operation
Test: refactoring cl.
bug:32216791

Change-Id: I66d19194c57b3aa2c400aa87acffc774a533776a
/frameworks/base/libs/hwui/hwui/Bitmap.h
aed7f58fb05a25ce2112829e77c0eb5dd268e8a7 15-Oct-2016 sergeyv <sergeyv@google.com> Pass Bitmap instead of SkBitmap in canvas.drawBitmap(Bitmap, float,float,Paint)
Test: refactoring cl.
bug:32216791

Change-Id: If9f9fbc19e683b14cce6c3c268258bd832d495d2
/frameworks/base/libs/hwui/hwui/Bitmap.h
c1c54062f8cc9d47bdea820ae5ab6aef260b4488 20-Oct-2016 sergeyv <sergeyv@google.com> Rename hwui/PixelRef to hwui/Bitmap
Test: refactoring cl.
bug:32216791

Change-Id: I26de43f71027bccb43a5011f84080ab4631b2883
/frameworks/base/libs/hwui/hwui/Bitmap.h