OSDN Git Service

SurfaceFlinger: Set the result of binderized screencapture
authorMike J. Chen <mjchen@google.com>
Tue, 30 Jul 2013 17:19:24 +0000 (10:19 -0700)
committerMike J. Chen <mjchen@google.com>
Tue, 30 Jul 2013 17:24:22 +0000 (10:24 -0700)
commitaaff4ef717c08f6aed7ccd96e1d65222ceb4fd17
tree5b621144e9e82f4d6c25bf7a3eb07951e2604d91
parentad678e18b66f495efa78dc3b9ab99b579945c9e2
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>
services/surfaceflinger/SurfaceFlinger.cpp