summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandroid-build-prod (mdb) <android-build-team-robot@google.com>2017-10-06 20:11:18 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2017-10-06 20:11:18 +0000
commit4f08186dd242c14b9339590152f7f8d8790cd930 (patch)
tree19d2082c959f0fffe1039d3876ee79d5c0e2bd15
parent7d951867416234a6f3228eb9d888009184b1d0b7 (diff)
parent299a5fce6f945d2bcfce8a0e2b0daeb631ad8522 (diff)
downloadnative-oreo-cts-release.tar.gz
-rw-r--r--services/surfaceflinger/Layer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp
index 88a5bd4a06..230520611b 100644
--- a/services/surfaceflinger/Layer.cpp
+++ b/services/surfaceflinger/Layer.cpp
@@ -2682,7 +2682,7 @@ Transform Layer::getTransform() const {
// for in the transform. We need to mirror this scaling in child surfaces
// or we will break the contract where WM can treat child surfaces as
// pixels in the parent surface.
- if (p->isFixedSize()) {
+ if (p->isFixedSize() && p->mActiveBuffer != nullptr) {
int bufferWidth;
int bufferHeight;
if ((p->mCurrentTransform & NATIVE_WINDOW_TRANSFORM_ROT_90) == 0) {