diff options
| author | 2019-06-13 19:06:06 -0700 | |
|---|---|---|
| committer | 2019-06-13 19:06:06 -0700 | |
| commit | 3779b7b93f271f708f63c143a4dead27d67d5f8a (patch) | |
| tree | ca2af7be81f192599e81ab01f57612be0e849cf3 | |
| parent | 68f8c55d6f2c2bbea0b6f6fd67fd974cc06edcaa (diff) | |
| parent | 9129069774d6d846dd1e30cff194283de8c7fef3 (diff) | |
Merge "createWithSurfaceParent: add logging" into qt-dev
am: 9129069774
Change-Id: Ic0621bd2e15b2cefd6916210b685a0ee39b3cae4
| -rw-r--r-- | services/surfaceflinger/Client.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/services/surfaceflinger/Client.cpp b/services/surfaceflinger/Client.cpp index 482c723a15..6bfd302b5c 100644 --- a/services/surfaceflinger/Client.cpp +++ b/services/surfaceflinger/Client.cpp @@ -87,11 +87,18 @@ status_t Client::createWithSurfaceParent(const String8& name, uint32_t w, uint32 LayerMetadata metadata, sp<IBinder>* handle, sp<IGraphicBufferProducer>* gbp) { if (mFlinger->authenticateSurfaceTexture(parent) == false) { + ALOGE("failed to authenticate surface texture"); + // The extra parent layer check below before returning is to help with debugging + // b/134888387. Once the bug is fixed the check can be deleted. + if ((static_cast<MonitoredProducer*>(parent.get()))->getLayer() == nullptr) { + ALOGE("failed to find parent layer"); + } return BAD_VALUE; } const auto& layer = (static_cast<MonitoredProducer*>(parent.get()))->getLayer(); if (layer == nullptr) { + ALOGE("failed to find parent layer"); return BAD_VALUE; } |