diff options
author | Stan Iliev <stani@google.com> | 2017-05-24 13:28:36 -0400 |
---|---|---|
committer | Stan Iliev <stani@google.com> | 2017-06-02 15:59:42 -0400 |
commit | 7bc3bc6028d0c7b16fec72c3922fc627c8657951 (patch) | |
tree | 11e2869037fb89183e2a857b10b0aa76267edc34 /libs/hwui/renderthread/RenderThread.h | |
parent | a9861756b5a79e23b317ef7a89a504a68ac61e34 (diff) |
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
Diffstat (limited to 'libs/hwui/renderthread/RenderThread.h')
-rw-r--r-- | libs/hwui/renderthread/RenderThread.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderThread.h b/libs/hwui/renderthread/RenderThread.h index 9bc5985e5b16..4b5601c5abc4 100644 --- a/libs/hwui/renderthread/RenderThread.h +++ b/libs/hwui/renderthread/RenderThread.h @@ -24,6 +24,7 @@ #include <GrContext.h> #include <cutils/compiler.h> +#include <SkBitmap.h> #include <ui/DisplayInfo.h> #include <utils/Looper.h> #include <utils/Thread.h> @@ -33,6 +34,7 @@ namespace android { +class Bitmap; class DisplayEventReceiver; namespace uirenderer { @@ -104,6 +106,8 @@ public: VulkanManager& vulkanManager() { return *mVkManager; } + sk_sp<Bitmap> allocateHardwareBitmap(SkBitmap& skBitmap); + protected: virtual bool threadLoop() override; |