diff options
author | 2017-04-06 15:10:21 -0700 | |
---|---|---|
committer | 2017-04-10 14:35:41 -0700 | |
commit | 0c9a1ed91f8e19887ac43eff5af16e59878c8226 (patch) | |
tree | bd52e3d82e3f86537129d59ff2b24ee4c6f9b40d /libs/gui/ConsumerBase.cpp | |
parent | 1d0359c5a8e19a3ad0bb3e0d8265c32bab6f0d4d (diff) |
libgui: Normalize IGraphicBufferConsumer methods
This change modifies IGraphicBufferConsumer such that all synchronous
methods return a status_t and, as such, all outputs are returned by
output parameter rather than return value. It also eliminates the use
of a const char* parameter that SafeInterface can't handle.
Test: m -j + libgui_tests + manual testing
Change-Id: I9bb0e2892492d5e0a3f660bf228834b9ed014539
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
-rw-r--r-- | libs/gui/ConsumerBase.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/gui/ConsumerBase.cpp b/libs/gui/ConsumerBase.cpp index d4e4dc3616..1783561928 100644 --- a/libs/gui/ConsumerBase.cpp +++ b/libs/gui/ConsumerBase.cpp @@ -270,7 +270,9 @@ void ConsumerBase::dumpLocked(String8& result, const char* prefix) const { result.appendFormat("%smAbandoned=%d\n", prefix, int(mAbandoned)); if (!mAbandoned) { - mConsumer->dumpState(result, prefix); + String8 consumerState; + mConsumer->dumpState(String8(prefix), &consumerState); + result.append(consumerState); } } |