diff options
author | Mathias Agopian <mathias@google.com> | 2013-03-19 20:56:00 -0700 |
---|---|---|
committer | Mathias Agopian <mathias@google.com> | 2013-03-19 20:56:00 -0700 |
commit | 0678a8c250832a5549703f533f6afea9d8729e43 (patch) | |
tree | 12edfb543f95d2a8109d69661dfbd97e711642fa /cmds/screencap | |
parent | 0a4962ad11fadf7798c360efaee31b8d9d75bc9e (diff) | |
download | frameworks_base-0678a8c250832a5549703f533f6afea9d8729e43.zip frameworks_base-0678a8c250832a5549703f533f6afea9d8729e43.tar.gz frameworks_base-0678a8c250832a5549703f533f6afea9d8729e43.tar.bz2 |
make sure to start the binder thread pool
Change-Id: I5c125a001936797489ebdcd0d4ccbde23adba282
Diffstat (limited to 'cmds/screencap')
-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; |