From: Mike J. Chen Date: Tue, 30 Jul 2013 17:19:24 +0000 (-0700) Subject: SurfaceFlinger: Set the result of binderized screencapture X-Git-Tag: android-x86-4.4-r1~136 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=aaff4ef717c08f6aed7ccd96e1d65222ceb4fd17;p=android-x86%2Fframeworks-native.git 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 --- 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)); }