summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author TreeHugger Robot <treehugger-gerrit@google.com> 2020-05-05 17:36:09 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2020-05-05 17:36:09 +0000
commit547bea0331cd9d24e3931fefe4ea4fdfd6ddbbcf (patch)
tree03958f70e883e76eda54d7e4d40cfb62f3d786a1
parent0abfdcad57bf67e537653d3d10b80e72dd330ab0 (diff)
parentc91b4f56b857376e22148b9116146d737fc4c8d1 (diff)
Merge "Remove unsafe cast in Client::createWithSurfaceParent" into rvc-dev
-rw-r--r--services/surfaceflinger/Client.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/services/surfaceflinger/Client.cpp b/services/surfaceflinger/Client.cpp
index fb72ab8065..78bbcba4b4 100644
--- a/services/surfaceflinger/Client.cpp
+++ b/services/surfaceflinger/Client.cpp
@@ -93,11 +93,6 @@ status_t Client::createWithSurfaceParent(const String8& name, uint32_t w, uint32
uint32_t* outTransformHint) {
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;
}