OSDN Git Service

Merge changes from topic 'layer-wp-race' into oc-dev am: a17b14eb92
authorChia-I Wu <olv@google.com>
Sat, 17 Jun 2017 02:00:50 +0000 (02:00 +0000)
committerandroid-build-merger <android-build-merger@google.com>
Sat, 17 Jun 2017 02:00:50 +0000 (02:00 +0000)
am: f39c08c906

Change-Id: I579504e93cc6c21dd13e5b8468d8b87037133a0c

1  2 
services/surfaceflinger/Layer.cpp
services/surfaceflinger/Layer.h
services/surfaceflinger/SurfaceFlinger.cpp
services/surfaceflinger/SurfaceFlinger.h
services/surfaceflinger/SurfaceFlinger_hwc1.cpp

@@@ -1928,12 -1928,8 +1929,12 @@@ bool Layer::setDataSpace(android_datasp
      return true;
  }
  
 +android_dataspace Layer::getDataSpace() const {
 +    return mCurrentState.dataSpace;
 +}
 +
  uint32_t Layer::getLayerStack() const {
-     auto p = getParent();
+     auto p = mDrawingParent.promote();
      if (p == nullptr) {
          return getDrawingState().layerStack;
      }
Simple merge