summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMathias Agopian <mathias@google.com>2013-03-20 21:10:23 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2013-03-20 21:10:23 +0000
commit036f43723cf12b7c21ef2c55cb2466d79f958ac6 (patch)
treebdfeb39f7dffbb7f734a052c3b7e6bc5dac44441 /cmds
parent2effb1dc55e31fec85bdbcb002eb8fb85544bdba (diff)
parent3cbd626c6e09aee02ddbfc08341db95b2345b76d (diff)
downloadframeworks_base-036f43723cf12b7c21ef2c55cb2466d79f958ac6.zip
frameworks_base-036f43723cf12b7c21ef2c55cb2466d79f958ac6.tar.gz
frameworks_base-036f43723cf12b7c21ef2c55cb2466d79f958ac6.tar.bz2
am 3cbd626c: am b936b774: Merge "make sure to start the binder thread pool" into jb-mr2-dev
* commit '3cbd626c6e09aee02ddbfc08341db95b2345b76d': make sure to start the binder thread pool
Diffstat (limited to 'cmds')
-rw-r--r--cmds/screencap/screencap.cpp5
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;