Loading libs/gui/ISurfaceComposer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -691,8 +691,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 @@ -354,7 +354,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 @@ -785,7 +785,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 @@ -1501,7 +1501,7 @@ LayerDebugInfo Layer::getLayerDebugInfo(const DisplayDevice* display) const { LayerDebugInfo info; const State& ds = getDrawingState(); info.mName = getName(); sp<Layer> parent = getParent(); sp<Layer> parent = mDrawingParent.promote(); info.mParentName = parent ? parent->getName() : "none"s; info.mType = getType(); info.mTransparentRegion = ds.activeTransparentRegion_legacy; Loading services/surfaceflinger/SurfaceFlinger.cpp +7 −10 Original line number Diff line number Diff line Loading @@ -1449,17 +1449,14 @@ status_t SurfaceFlinger::injectVSync(nsecs_t when) { return mScheduler->injectVSync(when, calculateExpectedPresentTime(when)) ? NO_ERROR : BAD_VALUE; } status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const { TimedLock lock(mStateLock, s2ns(1), __FUNCTION__); if (!lock.locked()) { return TIMED_OUT; } const auto display = getDefaultDisplayDeviceLocked(); status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) { outLayers->clear(); mCurrentState.traverseInZOrder( [&](Layer* layer) { outLayers->push_back(layer->getLayerDebugInfo(display.get())); }); schedule([=] { const auto display = ON_MAIN_THREAD(getDefaultDisplayDeviceLocked()); mDrawingState.traverseInZOrder([&](Layer* layer) { outLayers->push_back(layer->getLayerDebugInfo(display.get())); }); }).wait(); return NO_ERROR; } Loading Loading
libs/gui/ISurfaceComposer.cpp +1 −2 Original line number Diff line number Diff line Loading @@ -691,8 +691,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 @@ -354,7 +354,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 @@ -785,7 +785,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 @@ -1501,7 +1501,7 @@ LayerDebugInfo Layer::getLayerDebugInfo(const DisplayDevice* display) const { LayerDebugInfo info; const State& ds = getDrawingState(); info.mName = getName(); sp<Layer> parent = getParent(); sp<Layer> parent = mDrawingParent.promote(); info.mParentName = parent ? parent->getName() : "none"s; info.mType = getType(); info.mTransparentRegion = ds.activeTransparentRegion_legacy; Loading
services/surfaceflinger/SurfaceFlinger.cpp +7 −10 Original line number Diff line number Diff line Loading @@ -1449,17 +1449,14 @@ status_t SurfaceFlinger::injectVSync(nsecs_t when) { return mScheduler->injectVSync(when, calculateExpectedPresentTime(when)) ? NO_ERROR : BAD_VALUE; } status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) const { TimedLock lock(mStateLock, s2ns(1), __FUNCTION__); if (!lock.locked()) { return TIMED_OUT; } const auto display = getDefaultDisplayDeviceLocked(); status_t SurfaceFlinger::getLayerDebugInfo(std::vector<LayerDebugInfo>* outLayers) { outLayers->clear(); mCurrentState.traverseInZOrder( [&](Layer* layer) { outLayers->push_back(layer->getLayerDebugInfo(display.get())); }); schedule([=] { const auto display = ON_MAIN_THREAD(getDefaultDisplayDeviceLocked()); mDrawingState.traverseInZOrder([&](Layer* layer) { outLayers->push_back(layer->getLayerDebugInfo(display.get())); }); }).wait(); return NO_ERROR; } Loading