diff options
author | sergeyv <sergeyv@google.com> | 2016-11-17 17:54:57 -0800 |
---|---|---|
committer | sergeyv <sergeyv@google.com> | 2016-11-18 10:49:27 -0800 |
commit | 59eecb526adc5bd7041e7b6147bfcc40dd2c200e (patch) | |
tree | ae56e418d5ab01387b9a9fba4912a15d7fc208a1 /libs/hwui/Readback.h | |
parent | a79a655e4b97d204c220d20ad5352e48d261afd5 (diff) |
Support readback from hardware bitmaps
Test: hwuimacro readbackFromHBitmap --onscreen.
bug:30999911
Change-Id: I369c069c40cb0f9adae5a94501815f29c2d7df0f
Diffstat (limited to 'libs/hwui/Readback.h')
-rw-r--r-- | libs/hwui/Readback.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/hwui/Readback.h b/libs/hwui/Readback.h index 7fbc4bf48c4e..b76395301a21 100644 --- a/libs/hwui/Readback.h +++ b/libs/hwui/Readback.h @@ -23,6 +23,7 @@ #include <gui/Surface.h> namespace android { +class GraphicBuffer; namespace uirenderer { // Keep in sync with PixelCopy.java codes @@ -42,6 +43,7 @@ public: */ virtual CopyResult copySurfaceInto(Surface& surface, const Rect& srcRect, SkBitmap* bitmap) = 0; + virtual CopyResult copyGraphicBufferInto(GraphicBuffer* graphicBuffer, SkBitmap* bitmap) = 0; protected: explicit Readback(renderthread::RenderThread& thread) : mRenderThread(thread) {} |