Loading services/surfaceflinger/Layer.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -1893,7 +1893,7 @@ void Layer::setInputInfo(const InputWindowInfo& info) { setTransactionFlags(eTransactionNeeded); } void Layer::writeToProto(LayersProto& layersProto, uint32_t traceFlags) const { LayerProto* Layer::writeToProto(LayersProto& layersProto, uint32_t traceFlags) const { LayerProto* layerProto = layersProto.add_layers(); writeToProtoDrawingState(layerProto, traceFlags); writeToProtoCommonState(layerProto, LayerVector::StateSet::Drawing, traceFlags); Loading @@ -1901,6 +1901,8 @@ void Layer::writeToProto(LayersProto& layersProto, uint32_t traceFlags) const { for (const sp<Layer>& layer : mDrawingChildren) { layer->writeToProto(layersProto, traceFlags); } return layerProto; } void Layer::writeToProtoDrawingState(LayerProto* layerInfo, uint32_t traceFlags) const { Loading services/surfaceflinger/Layer.h +2 −2 Original line number Diff line number Diff line Loading @@ -454,7 +454,7 @@ public: bool isRemovedFromCurrentState() const; void writeToProto(LayersProto& layersProto, LayerProto* writeToProto(LayersProto& layersProto, uint32_t traceFlags = SurfaceTracing::TRACE_ALL) const; // Write states that are modified by the main thread. This includes drawing Loading services/surfaceflinger/SurfaceFlinger.cpp +1 −6 Original line number Diff line number Diff line Loading @@ -4277,13 +4277,8 @@ void SurfaceFlinger::dumpOffscreenLayersProto(LayersProto& layersProto, uint32_t rootProto->add_children(offscreenLayer->sequence); // Add layer LayerProto* layerProto = layersProto.add_layers(); offscreenLayer->writeToProtoDrawingState(layerProto, traceFlags); offscreenLayer->writeToProtoCommonState(layerProto, LayerVector::StateSet::Drawing, traceFlags); LayerProto* layerProto = offscreenLayer->writeToProto(layersProto, traceFlags); layerProto->set_parent(offscreenRootLayerId); offscreenLayer->writeToProto(layersProto, traceFlags); } } Loading Loading
services/surfaceflinger/Layer.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -1893,7 +1893,7 @@ void Layer::setInputInfo(const InputWindowInfo& info) { setTransactionFlags(eTransactionNeeded); } void Layer::writeToProto(LayersProto& layersProto, uint32_t traceFlags) const { LayerProto* Layer::writeToProto(LayersProto& layersProto, uint32_t traceFlags) const { LayerProto* layerProto = layersProto.add_layers(); writeToProtoDrawingState(layerProto, traceFlags); writeToProtoCommonState(layerProto, LayerVector::StateSet::Drawing, traceFlags); Loading @@ -1901,6 +1901,8 @@ void Layer::writeToProto(LayersProto& layersProto, uint32_t traceFlags) const { for (const sp<Layer>& layer : mDrawingChildren) { layer->writeToProto(layersProto, traceFlags); } return layerProto; } void Layer::writeToProtoDrawingState(LayerProto* layerInfo, uint32_t traceFlags) const { Loading
services/surfaceflinger/Layer.h +2 −2 Original line number Diff line number Diff line Loading @@ -454,7 +454,7 @@ public: bool isRemovedFromCurrentState() const; void writeToProto(LayersProto& layersProto, LayerProto* writeToProto(LayersProto& layersProto, uint32_t traceFlags = SurfaceTracing::TRACE_ALL) const; // Write states that are modified by the main thread. This includes drawing Loading
services/surfaceflinger/SurfaceFlinger.cpp +1 −6 Original line number Diff line number Diff line Loading @@ -4277,13 +4277,8 @@ void SurfaceFlinger::dumpOffscreenLayersProto(LayersProto& layersProto, uint32_t rootProto->add_children(offscreenLayer->sequence); // Add layer LayerProto* layerProto = layersProto.add_layers(); offscreenLayer->writeToProtoDrawingState(layerProto, traceFlags); offscreenLayer->writeToProtoCommonState(layerProto, LayerVector::StateSet::Drawing, traceFlags); LayerProto* layerProto = offscreenLayer->writeToProto(layersProto, traceFlags); layerProto->set_parent(offscreenRootLayerId); offscreenLayer->writeToProto(layersProto, traceFlags); } } Loading