/frameworks/native/services/surfaceflinger/FrontEnd/ |
D | LayerLifecycleManager.h | 41 void addLayers(std::vector<std::unique_ptr<RequestedLayerState>>); 71 virtual void onLayerAdded(const RequestedLayerState&) = 0; 74 virtual void onLayerDestroyed(const RequestedLayerState&) = 0; 78 const std::vector<std::unique_ptr<RequestedLayerState>>& getLayers() const; 79 const std::vector<std::unique_ptr<RequestedLayerState>>& getDestroyedLayers() const; 80 const std::vector<RequestedLayerState*>& getChangedLayers() const; 81 const ftl::Flags<RequestedLayerState::Changes> getGlobalChanges() const; 82 const RequestedLayerState* getLayerFromId(uint32_t) const; 90 RequestedLayerState* getLayerFromId(uint32_t); 96 void updateDisplayMirrorLayers(RequestedLayerState& rootLayer); [all …]
|
D | RequestedLayerState.cpp | 51 RequestedLayerState::RequestedLayerState(const LayerCreationArgs& args) in RequestedLayerState() function in android::surfaceflinger::frontend::RequestedLayerState 61 changes |= RequestedLayerState::Changes::Created; in RequestedLayerState() 63 changes |= RequestedLayerState::Changes::Metadata; in RequestedLayerState() 69 changes |= RequestedLayerState::Changes::Mirror; in RequestedLayerState() 72 changes |= RequestedLayerState::Changes::Mirror; in RequestedLayerState() 145 void RequestedLayerState::merge(const ResolvedComposerState& resolvedComposerState) { in merge() 169 changes |= RequestedLayerState::Changes::Visibility | in merge() 170 RequestedLayerState::Changes::VisibleRegion; in merge() 173 changes |= RequestedLayerState::Changes::Geometry; in merge() 176 changes |= RequestedLayerState::Changes::Input; in merge() [all …]
|
D | LayerLifecycleManager.cpp | 33 bool canMirrorRootLayer(RequestedLayerState& mirroringLayer, RequestedLayerState& rootLayer) { in canMirrorRootLayer() 39 void LayerLifecycleManager::addLayers(std::vector<std::unique_ptr<RequestedLayerState>> newLayers) { in addLayers() 44 mGlobalChanges |= RequestedLayerState::Changes::Hierarchy; in addLayers() 46 RequestedLayerState& layer = *newLayer.get(); in addLayers() 101 RequestedLayerState& layer = it->second.owner; in onHandlesDestroyed() 107 layer.changes |= RequestedLayerState::Changes::Destroyed; in onHandlesDestroyed() 115 mGlobalChanges |= RequestedLayerState::Changes::Hierarchy; in onHandlesDestroyed() 122 RequestedLayerState& layer = it->second.owner; in onHandlesDestroyed() 138 RequestedLayerState* linkedLayer = getLayerFromId(linkedLayerId); in onHandlesDestroyed() 145 linkedLayer->changes |= RequestedLayerState::Changes::Destroyed; in onHandlesDestroyed() [all …]
|
D | LayerSnapshotBuilder.cpp | 249 auto getBlendMode(const LayerSnapshot& snapshot, const RequestedLayerState& requested) { in getBlendMode() 260 snapshot.changes |= RequestedLayerState::Changes::Visibility; in updateVisibility() 282 bool needsInputInfo(const LayerSnapshot& snapshot, const RequestedLayerState& requested) { in needsInputInfo() 300 void updateMetadata(LayerSnapshot& snapshot, const RequestedLayerState& requested, in updateMetadata() 345 snapshot.changes = ftl::Flags<RequestedLayerState::Changes>(); in getRootSnapshot() 395 const RequestedLayerState* requested = in tryFastUpdate() 405 for (const RequestedLayerState* requested : args.layerLifecycleManager.getChangedLayers()) { in tryFastUpdate() 414 ~(RequestedLayerState::Changes::Content | RequestedLayerState::Changes::Buffer).get()) != in tryFastUpdate() 432 rootSnapshot.changes = RequestedLayerState::Changes::AffectsChildren | in updateSnapshots() 433 RequestedLayerState::Changes::Geometry; in updateSnapshots() [all …]
|
D | LayerHierarchy.h | 135 LayerHierarchy(RequestedLayerState* layer); 162 const RequestedLayerState* getLayer() const; 198 const RequestedLayerState* mLayer; 216 void onLayerAdded(RequestedLayerState* layer); 224 void init(const std::vector<std::unique_ptr<RequestedLayerState>>&); 225 void doUpdate(const std::vector<std::unique_ptr<RequestedLayerState>>& layers, 226 const std::vector<std::unique_ptr<RequestedLayerState>>& destroyedLayers); 227 void onLayerDestroyed(RequestedLayerState* layer); 228 void updateMirrorLayer(RequestedLayerState* layer);
|
D | LayerSnapshotBuilder.h | 104 void updateSnapshot(LayerSnapshot&, const Args&, const RequestedLayerState&, 109 static void updateRoundedCorner(LayerSnapshot& snapshot, const RequestedLayerState& layerState, 111 void updateLayerBounds(LayerSnapshot& snapshot, const RequestedLayerState& layerState, 113 static void updateShadows(LayerSnapshot& snapshot, const RequestedLayerState& requested, 115 void updateInput(LayerSnapshot& snapshot, const RequestedLayerState& requested, 121 const RequestedLayerState& layer,
|
D | LayerHierarchy.cpp | 48 LayerHierarchy::LayerHierarchy(RequestedLayerState* layer) : mLayer(layer) {} in LayerHierarchy() 128 const RequestedLayerState* LayerHierarchy::getLayer() const { in getLayer() 197 void LayerHierarchyBuilder::init(const std::vector<std::unique_ptr<RequestedLayerState>>& layers) { in init() 296 void LayerHierarchyBuilder::onLayerAdded(RequestedLayerState* layer) { in onLayerAdded() 313 void LayerHierarchyBuilder::onLayerDestroyed(RequestedLayerState* layer) { in onLayerDestroyed() 343 void LayerHierarchyBuilder::updateMirrorLayer(RequestedLayerState* layer) { in updateMirrorLayer() 366 const std::vector<std::unique_ptr<RequestedLayerState>>& layers, in doUpdate() 367 const std::vector<std::unique_ptr<RequestedLayerState>>& destroyedLayers) { in doUpdate() 370 if (layer->changes.test(RequestedLayerState::Changes::Created)) { in doUpdate() 380 if (layer->changes.test(RequestedLayerState::Changes::Created)) { in doUpdate() [all …]
|
D | LayerSnapshot.h | 49 LayerSnapshot(const RequestedLayerState&, const LayerHierarchy::TraversalPath&); 56 ftl::Flags<RequestedLayerState::Changes> changes; 150 Hwc2::IComposerClient::BlendMode getBlendMode(const RequestedLayerState& requested) const; 152 void merge(const RequestedLayerState& requested, bool forceUpdate, bool displayChanges,
|
D | RequestedLayerState.h | 36 struct RequestedLayerState : layer_state_t { struct 70 RequestedLayerState(const LayerCreationArgs&); argument 86 friend std::ostream& operator<<(std::ostream& os, const RequestedLayerState& obj); 138 ftl::Flags<RequestedLayerState::Changes> changes; argument
|
D | LayerSnapshot.cpp | 30 void updateSurfaceDamage(const RequestedLayerState& requested, bool hasReadyFrame, in updateSurfaceDamage() 102 LayerSnapshot::LayerSnapshot(const RequestedLayerState& state, in LayerSnapshot() 128 changes = RequestedLayerState::Changes::Created; in LayerSnapshot() 344 const RequestedLayerState& requested) const { in getBlendMode() 353 void LayerSnapshot::merge(const RequestedLayerState& requested, bool forceUpdate, in merge() 467 requested.changes.test(RequestedLayerState::Changes::BufferSize) || displayChanges) { in merge() 480 requested.changes.test(RequestedLayerState::Changes::BufferSize) || displayChanges) && in merge() 487 requested.changes.test(RequestedLayerState::Changes::BufferSize)) { in merge()
|
D | Update.h | 47 std::vector<std::unique_ptr<frontend::RequestedLayerState>> newLayers;
|
D | readme.md | 80 RequestedLayerState is a simple data class that stores the server side layer state.
|
/frameworks/native/services/surfaceflinger/tests/unittests/ |
D | LayerLifecycleManagerTest.cpp | 42 void onLayerAdded(const RequestedLayerState& layer) override { in onLayerAdded() 45 void onLayerDestroyed(const RequestedLayerState& layer) override { in onLayerDestroyed() 64 std::unique_ptr<RequestedLayerState> rootLayer(uint32_t id) { in rootLayer() 65 return std::make_unique<RequestedLayerState>(createArgs(/*id=*/id, /*canBeRoot=*/true, in rootLayer() 70 std::unique_ptr<RequestedLayerState> childLayer(uint32_t id, uint32_t parentId) { in childLayer() 71 return std::make_unique<RequestedLayerState>(createArgs(/*id=*/id, /*canBeRoot=*/false, in childLayer() 76 RequestedLayerState* getRequestedLayerState(LayerLifecycleManager& lifecycleManager, in getRequestedLayerState() 86 std::vector<std::unique_ptr<RequestedLayerState>> layers; in TEST_F() 92 EXPECT_TRUE(lifecycleManager.getGlobalChanges().test(RequestedLayerState::Changes::Hierarchy)); in TEST_F() 94 EXPECT_FALSE(lifecycleManager.getGlobalChanges().test(RequestedLayerState::Changes::Hierarchy)); in TEST_F() [all …]
|
D | LayerSnapshotTest.cpp | 64 if (mLifecycleManager.getGlobalChanges().test(RequestedLayerState::Changes::Hierarchy)) { in update() 155 EXPECT_TRUE(mLifecycleManager.getGlobalChanges().test(RequestedLayerState::Changes::Geometry)); in TEST_F() 224 EXPECT_TRUE(getSnapshot(111)->changes.test(RequestedLayerState::Changes::Visibility)); in TEST_F() 256 EXPECT_TRUE(getSnapshot(1)->changes.test(RequestedLayerState::Changes::Geometry)); in TEST_F() 257 EXPECT_TRUE(getSnapshot(11)->changes.test(RequestedLayerState::Changes::Geometry)); in TEST_F() 260 EXPECT_TRUE(getSnapshot(2)->changes.test(RequestedLayerState::Changes::Geometry)); in TEST_F() 261 EXPECT_FALSE(getSnapshot(1)->changes.test(RequestedLayerState::Changes::Geometry)); in TEST_F() 262 EXPECT_FALSE(getSnapshot(11)->changes.test(RequestedLayerState::Changes::Geometry)); in TEST_F() 269 RequestedLayerState::Changes::Content); in TEST_F() 280 RequestedLayerState::Changes::Content); in TEST_F() [all …]
|
D | CommitTest.cpp | 98 auto parent = std::make_unique<frontend::RequestedLayerState>(parentArgs); in TEST_F() 103 auto child = std::make_unique<frontend::RequestedLayerState>(childArgs); in TEST_F() 142 auto parent = std::make_unique<frontend::RequestedLayerState>(parentArgs); in TEST_F() 147 auto child = std::make_unique<frontend::RequestedLayerState>(childArgs); in TEST_F()
|
D | FpsReporterTest.cpp | 135 std::vector<std::unique_ptr<frontend::RequestedLayerState>> layers; in createRootLayer() 136 layers.emplace_back(std::make_unique<frontend::RequestedLayerState>( in createRootLayer() 144 std::vector<std::unique_ptr<frontend::RequestedLayerState>> layers; in createLayer() 145 layers.emplace_back(std::make_unique<frontend::RequestedLayerState>( in createLayer()
|
D | SchedulerTest.cpp | 58 using RequestedLayerState = surfaceflinger::frontend::RequestedLayerState; typedef 814 RequestedLayerState layerState(LayerCreationArgs(layer->getSequence())); in TEST_F() 843 RequestedLayerState layerState(LayerCreationArgs(layer->getSequence())); in frameRateTestScenario() 903 RequestedLayerState parentState(LayerCreationArgs(parent->getSequence())); in TEST_F() 906 RequestedLayerState layerState(LayerCreationArgs(layer->getSequence())); in TEST_F() 930 RequestedLayerState parentState(LayerCreationArgs(parent->getSequence())); in TEST_F() 933 RequestedLayerState layer1State(LayerCreationArgs(layer1->getSequence())); in TEST_F() 938 RequestedLayerState layer2State(LayerCreationArgs(layer1->getSequence())); in TEST_F() 965 RequestedLayerState parentState(LayerCreationArgs(parent->getSequence())); in TEST_F() 968 RequestedLayerState layer1State(LayerCreationArgs(layer1->getSequence())); in TEST_F() [all …]
|
D | LayerHierarchyTest.h | 98 std::vector<std::unique_ptr<RequestedLayerState>> layers; in createRootLayer() 99 layers.emplace_back(std::make_unique<RequestedLayerState>( in createRootLayer() 106 std::vector<std::unique_ptr<RequestedLayerState>> layers; in createDisplayMirrorLayer() 107 layers.emplace_back(std::make_unique<RequestedLayerState>( in createDisplayMirrorLayer() 113 std::vector<std::unique_ptr<RequestedLayerState>> layers; in createLayer() 114 layers.emplace_back(std::make_unique<RequestedLayerState>( in createLayer() 170 std::vector<std::unique_ptr<RequestedLayerState>> layers; in mirrorLayer() 171 layers.emplace_back(std::make_unique<RequestedLayerState>( in mirrorLayer() 201 mLifecycleManager.getGlobalChanges().test(RequestedLayerState::Changes::Hierarchy)); in updateAndVerify()
|
D | TestableSurfaceFlinger.h | 618 void addLayer(std::unique_ptr<frontend::RequestedLayerState>& layer) { in addLayer()
|
/frameworks/native/services/surfaceflinger/Tracing/tools/ |
D | LayerTraceGenerator.cpp | 89 std::vector<std::unique_ptr<frontend::RequestedLayerState>> addedLayers; in generate() 95 addedLayers.emplace_back(std::make_unique<frontend::RequestedLayerState>(args)); in generate() 153 frontend::RequestedLayerState::Changes::VisibleRegion | in generate() 154 frontend::RequestedLayerState::Changes::Hierarchy | in generate() 155 frontend::RequestedLayerState::Changes::Visibility); in generate()
|
/frameworks/native/services/surfaceflinger/ |
D | LayerProtoHelper.h | 75 const frontend::RequestedLayerState& requestedState, 97 const frontend::RequestedLayerState& layer);
|
D | LayerProtoHelper.cpp | 313 frontend::LayerHierarchy::TraversalPath& path, const frontend::RequestedLayerState& layer) { in getSnapshot() 327 const frontend::RequestedLayerState& layer = *root.getLayer(); in writeHierarchyToProto() 366 const frontend::RequestedLayerState& requestedState, in writeSnapshotToProto()
|
D | Android.bp | 183 "FrontEnd/RequestedLayerState.cpp",
|
D | RegionSamplingThread.cpp | 318 const Rect bounds = frontend::RequestedLayerState::reduce(Rect(snapshot.geomLayerBounds), in captureSample()
|
/frameworks/native/services/surfaceflinger/Scheduler/ |
D | Scheduler.h | 457 void updateAttachedChoreographersFrameRate(const surfaceflinger::frontend::RequestedLayerState&,
|