summaryrefslogtreecommitdiff
path: root/libs/ui/DebugUtils.cpp
diff options
context:
space:
mode:
author Robert Carr <racarr@google.com> 2018-03-27 12:59:18 -0700
committer Robert Carr <racarr@google.com> 2018-03-27 14:31:44 -0700
commit740eaf09b41c0e47c492ae34dc84ccef3ad54bf5 (patch)
tree210b44dcfa528c72205f78993497c7eb48038782 /libs/ui/DebugUtils.cpp
parentf7a23bd97a8ea900f9bf023c57f812855cfbf539 (diff)
SurfaceComposerClient: Ensure createSurface returns error codes.
If SurfaceComposerClient::mStatus is not equal to NO_ERROR (for example because we have attempted to construct a rooted-connection to a destroyed surface, and initialization has failed) then it is possible for createSurface to return NO_ERROR while failing to assign a value to outSurface. This violates the expectations of the JNI layer which expects that NO_ERROR will result in a valid surface. Bug: 76231383 Test: Surface_test.cpp (libgui_test) Change-Id: Ie68aafad01674c43e13af09bc144cc673b84ac1b
Diffstat (limited to 'libs/ui/DebugUtils.cpp')
0 files changed, 0 insertions, 0 deletions