diff options
-rw-r--r-- | cmds/screencap/screencap.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cmds/screencap/screencap.cpp b/cmds/screencap/screencap.cpp index a1ea81a..d196392 100644 --- a/cmds/screencap/screencap.cpp +++ b/cmds/screencap/screencap.cpp @@ -23,7 +23,8 @@ #include <sys/ioctl.h> #include <sys/mman.h> -#include <binder/IMemory.h> +#include <binder/ProcessState.h> + #include <gui/SurfaceComposerClient.h> #include <gui/ISurfaceComposer.h> @@ -89,6 +90,8 @@ static status_t vinfoToPixelFormat(const fb_var_screeninfo& vinfo, int main(int argc, char** argv) { + ProcessState::self()->startThreadPool(); + const char* pname = argv[0]; bool png = false; int32_t displayId = DEFAULT_DISPLAY_ID; |