Searched refs:layerProto (Results 1 – 9 of 9) sorted by relevance
/frameworks/native/services/surfaceflinger/layerproto/ |
D | LayerProtoParser.cpp | 79 const perfetto::protos::LayerProto& layerProto) { in generateLayer() argument 81 layer.id = layerProto.id(); in generateLayer() 82 layer.name = layerProto.name(); in generateLayer() 83 layer.type = layerProto.type(); in generateLayer() 84 layer.transparentRegion = generateRegion(layerProto.transparent_region()); in generateLayer() 85 layer.visibleRegion = generateRegion(layerProto.visible_region()); in generateLayer() 86 layer.damageRegion = generateRegion(layerProto.damage_region()); in generateLayer() 87 layer.layerStack = layerProto.layer_stack(); in generateLayer() 88 layer.z = layerProto.z(); in generateLayer() 89 layer.position = {layerProto.position().x(), layerProto.position().y()}; in generateLayer() [all …]
|
/frameworks/native/services/surfaceflinger/TimeStats/timestatsproto/ |
D | TimeStatsHelper.cpp | 196 SFTimeStatsLayerProto layerProto; in toProto() local 197 layerProto.set_layer_name(layerName); in toProto() 198 layerProto.set_package_name(packageName); in toProto() 199 layerProto.set_total_frames(totalFrames); in toProto() 200 layerProto.set_dropped_frames(droppedFrames); in toProto() 202 SFTimeStatsDeltaProto* deltaProto = layerProto.add_deltas(); in toProto() 210 return layerProto; in toProto() 246 SFTimeStatsLayerProto* layerProto = globalProto.add_stats(); in toProto() local 247 layerProto->CopyFrom(ele->toProto()); in toProto()
|
/frameworks/native/services/surfaceflinger/ |
D | LayerProtoHelper.cpp | 292 auto layerProto = mLayersProto.mutable_layers()->Mutable(i); in generate() local 293 auto it = mChildToRelativeParent.find(layerProto->id()); in generate() 295 layerProto->set_z_order_relative_of(-1); in generate() 297 layerProto->set_z_order_relative_of(it->second); in generate() 299 it = mChildToParent.find(layerProto->id()); in generate() 301 layerProto->set_parent(-1); in generate() 303 layerProto->set_parent(it->second); in generate() 326 perfetto::protos::LayerProto* layerProto = mLayersProto.add_layers(); in writeHierarchyToProto() local 329 LayerProtoHelper::writeSnapshotToProto(layerProto, layer, *snapshot, mTraceFlags); in writeHierarchyToProto() 339 layerProto->add_children(childSnapshot->uniqueSequence); in writeHierarchyToProto() [all …]
|
D | Layer.cpp | 2177 perfetto::protos::LayerProto* layerProto = layersProto.add_layers(); in writeToProto() local 2178 writeToProtoDrawingState(layerProto); in writeToProto() 2179 writeToProtoCommonState(layerProto, LayerVector::StateSet::Drawing, traceFlags); in writeToProto() 2184 writeCompositionStateToProto(layerProto, layerStack); in writeToProto() 2191 return layerProto; in writeToProto() 2194 void Layer::writeCompositionStateToProto(perfetto::protos::LayerProto* layerProto, in writeCompositionStateToProto() argument 2202 layerProto->set_hwc_composition_type( in writeCompositionStateToProto() 2205 [&]() { return layerProto->mutable_visible_region(); }); in writeCompositionStateToProto()
|
D | Layer.h | 652 void writeCompositionStateToProto(perfetto::protos::LayerProto* layerProto,
|
D | SurfaceFlinger.cpp | 6771 auto* layerProto = offscreenLayer->writeToProto(layersProto, traceFlags); in dumpOffscreenLayersProto() local 6772 layerProto->set_parent(offscreenRootLayerId); in dumpOffscreenLayersProto()
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | TimeStatsTest.cpp | 651 const SFTimeStatsLayerProto& layerProto = globalProto.stats(0); in TEST_F() local 652 ASSERT_TRUE(layerProto.has_layer_name()); in TEST_F() 653 EXPECT_EQ(genLayerName(LAYER_ID_0), layerProto.layer_name()); in TEST_F() 654 ASSERT_TRUE(layerProto.has_total_frames()); in TEST_F() 655 EXPECT_EQ(1, layerProto.total_frames()); in TEST_F() 656 ASSERT_EQ(6, layerProto.deltas_size()); in TEST_F() 657 for (const SFTimeStatsDeltaProto& deltaProto : layerProto.deltas()) { in TEST_F() 755 const SFTimeStatsLayerProto& layerProto = globalProto.stats().Get(0); in TEST_F() local 756 ASSERT_TRUE(layerProto.has_layer_name()); in TEST_F() 757 EXPECT_EQ(genLayerName(LAYER_ID_0), layerProto.layer_name()); in TEST_F() [all …]
|
/frameworks/native/services/surfaceflinger/layerproto/include/layerproto/ |
D | LayerProtoParser.h | 139 static LayerProtoParser::Layer generateLayer(const perfetto::protos::LayerProto& layerProto); 149 static void updateChildrenAndRelative(const perfetto::protos::LayerProto& layerProto,
|
/frameworks/native/services/surfaceflinger/Tracing/ |
D | TransactionProtoParser.cpp | 87 perfetto::protos::LayerState layerProto = toProto(state); in toProto() local 88 layerProto.set_has_sideband_stream(state.hasSidebandStream); in toProto() 89 proto.mutable_layer_changes()->Add(std::move(layerProto)); in toProto()
|