summaryrefslogtreecommitdiff
path: root/libs/hwui/Readback.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/hwui/Readback.h')
-rw-r--r--libs/hwui/Readback.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/hwui/Readback.h b/libs/hwui/Readback.h
index a112c42988c0..bd73734949f3 100644
--- a/libs/hwui/Readback.h
+++ b/libs/hwui/Readback.h
@@ -24,6 +24,8 @@
namespace android {
namespace uirenderer {
+class Layer;
+
// Keep in sync with PixelCopy.java codes
enum class CopyResult {
Success = 0,
@@ -36,8 +38,18 @@ enum class CopyResult {
class Readback {
public:
+ /**
+ * Copies the surface's most recently queued buffer into the provided bitmap.
+ */
static CopyResult copySurfaceInto(renderthread::RenderThread& renderThread,
Surface& surface, SkBitmap* bitmap);
+
+ /**
+ * Copies the TextureLayer's texture content (thus, the currently rendering buffer) into the
+ * provided bitmap.
+ */
+ static CopyResult copyTextureLayerInto(renderthread::RenderThread& renderThread,
+ Layer& layer, SkBitmap* bitmap);
};
} // namespace uirenderer