diff options
author | 2013-07-30 10:19:24 -0700 | |
---|---|---|
committer | 2013-07-30 10:24:22 -0700 | |
commit | aaff4ef717c08f6aed7ccd96e1d65222ceb4fd17 (patch) | |
tree | 5b621144e9e82f4d6c25bf7a3eb07951e2604d91 | |
parent | ad678e18b66f495efa78dc3b9ab99b579945c9e2 (diff) |
SurfaceFlinger: Set the result of binderized screencapture
A recent change to screencapture to have the call to
IGraphicBufferProducer happen on the incoming binder
thread didn't set the result so the result was always
returned as NO_ERROR.
This made screencap fail on some devices (e.g. Wolfie)
which relies on some kind of fallback mechanism to
generate the screencap but the fallback mechanism
doesn't get triggered because the error isn't returned.
Bug: 9989385
Change-Id: I2aee91ea1034869fcbb0f49b9a0087c3cff43bbe
Signed-off-by: Mike J. Chen <mjchen@google.com>
-rw-r--r-- | services/surfaceflinger/SurfaceFlinger.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/services/surfaceflinger/SurfaceFlinger.cpp b/services/surfaceflinger/SurfaceFlinger.cpp index 850bb21440..b0e4002579 100644 --- a/services/surfaceflinger/SurfaceFlinger.cpp +++ b/services/surfaceflinger/SurfaceFlinger.cpp @@ -2605,6 +2605,7 @@ public: } void exit(status_t result) { + this->result = result; exitPending = true; looper->sendMessage(this, Message(MSG_EXIT)); } |