Loading libs/gui/ISurfaceComposer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -610,7 +610,7 @@ public: return result; } virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) { if (!outLayers) { return UNEXPECTED_NULL; Loading libs/gui/include/gui/ISurfaceComposer.h +1 −1 Original line number Diff line number Diff line Loading @@ -307,7 +307,7 @@ public: * * Requires the ACCESS_SURFACE_FLINGER permission. */ virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const = 0; virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) = 0; virtual status_t getColorManagement(bool* outGetColorManagement) const = 0; Loading libs/gui/tests/Surface_test.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -648,7 +648,7 @@ public: return NO_ERROR; } status_t injectVSync(nsecs_t /*when*/) override { return NO_ERROR; } status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* /*layers*/) const override { status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* /*layers*/) override { return NO_ERROR; } status_t getCompositionPreference( Loading services/surfaceflinger/Layer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1280,7 +1280,7 @@ LayerDebugInfo Layer::getLayerDebugInfo() const { LayerDebugInfo info; const State& ds = getDrawingState(); info.mName = getName(); sp<Layer> parent = getParent(); sp<Layer> parent = mDrawingParent.promote(); info.mParentName = (parent == nullptr ? std::string("none") : parent->getName().string()); info.mType = std::string(getTypeId()); info.mTransparentRegion = ds.activeTransparentRegion_legacy; Loading services/surfaceflinger/SurfaceFlinger.cpp +6 −13 Original line number Diff line number Diff line Loading @@ -1284,22 +1284,15 @@ status_t SurfaceFlinger::injectVSync(nsecs_t when) { return NO_ERROR; } status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) NO_THREAD_SAFETY_ANALYSIS { // Try to acquire a lock for 1s, fail gracefully const status_t err = mStateLock.timedLock(s2ns(1)); const bool locked = (err == NO_ERROR); if (!locked) { ALOGE("LayerDebugInfo: SurfaceFlinger unresponsive (%s [%d]) - exit", strerror(-err), err); return TIMED_OUT; } outLayers->clear(); mCurrentState.traverseInZOrder([&](Layer* layer) { postMessageSync(new LambdaMessage([&]() { mDrawingState.traverseInZOrder([&](Layer* layer) { outLayers->push_back(layer->getLayerDebugInfo()); }); mStateLock.unlock(); })); return NO_ERROR; } Loading Loading
libs/gui/ISurfaceComposer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -610,7 +610,7 @@ public: return result; } virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) { if (!outLayers) { return UNEXPECTED_NULL; Loading
libs/gui/include/gui/ISurfaceComposer.h +1 −1 Original line number Diff line number Diff line Loading @@ -307,7 +307,7 @@ public: * * Requires the ACCESS_SURFACE_FLINGER permission. */ virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const = 0; virtual status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) = 0; virtual status_t getColorManagement(bool* outGetColorManagement) const = 0; Loading
libs/gui/tests/Surface_test.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -648,7 +648,7 @@ public: return NO_ERROR; } status_t injectVSync(nsecs_t /*when*/) override { return NO_ERROR; } status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* /*layers*/) const override { status_t getLayerDebugInfo(std::vector<LayerDebugInfo>* /*layers*/) override { return NO_ERROR; } status_t getCompositionPreference( Loading
services/surfaceflinger/Layer.cpp +1 −1 Original line number Diff line number Diff line Loading @@ -1280,7 +1280,7 @@ LayerDebugInfo Layer::getLayerDebugInfo() const { LayerDebugInfo info; const State& ds = getDrawingState(); info.mName = getName(); sp<Layer> parent = getParent(); sp<Layer> parent = mDrawingParent.promote(); info.mParentName = (parent == nullptr ? std::string("none") : parent->getName().string()); info.mType = std::string(getTypeId()); info.mTransparentRegion = ds.activeTransparentRegion_legacy; Loading
services/surfaceflinger/SurfaceFlinger.cpp +6 −13 Original line number Diff line number Diff line Loading @@ -1284,22 +1284,15 @@ status_t SurfaceFlinger::injectVSync(nsecs_t when) { return NO_ERROR; } status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) NO_THREAD_SAFETY_ANALYSIS { // Try to acquire a lock for 1s, fail gracefully const status_t err = mStateLock.timedLock(s2ns(1)); const bool locked = (err == NO_ERROR); if (!locked) { ALOGE("LayerDebugInfo: SurfaceFlinger unresponsive (%s [%d]) - exit", strerror(-err), err); return TIMED_OUT; } outLayers->clear(); mCurrentState.traverseInZOrder([&](Layer* layer) { postMessageSync(new LambdaMessage([&]() { mDrawingState.traverseInZOrder([&](Layer* layer) { outLayers->push_back(layer->getLayerDebugInfo()); }); mStateLock.unlock(); })); return NO_ERROR; } Loading