diff options
| author | 2023-05-23 23:12:58 +0000 | |
|---|---|---|
| committer | 2023-05-23 23:12:58 +0000 | |
| commit | 53be432e74ab460a882245ea7e3ae6d624a35d6f (patch) | |
| tree | d9dd05fa4e7e73e4bb7ebc101c18d387329a4f3a | |
| parent | 84641a414ae838c538dab0eb9b3c15fdb882f354 (diff) | |
| parent | 39fcb5040622c94ffc44ce4cfc893ef87f536f49 (diff) | |
Merge "[sf] Update snapshots after screenshots" into udc-dev am: 39fcb50406
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/native/+/23377686
Change-Id: Ib0fd0d2434a5aec124280855674f4212f95f2a6c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
| -rw-r--r-- | services/surfaceflinger/Layer.h | 3 | ||||
| -rw-r--r-- | services/surfaceflinger/LayerRenderArea.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/services/surfaceflinger/Layer.h b/services/surfaceflinger/Layer.h index 38590e6f20..f7596e20e5 100644 --- a/services/surfaceflinger/Layer.h +++ b/services/surfaceflinger/Layer.h @@ -877,6 +877,7 @@ public: // TODO(b/238781169) Remove direct calls to RenderEngine::drawLayers that don't go through // CompositionEngine to create a single path for composing layers. void updateSnapshot(bool updateGeometry); + void updateChildrenSnapshots(bool updateGeometry); void updateMetadataSnapshot(const LayerMetadata& parentMetadata); void updateRelativeMetadataSnapshot(const LayerMetadata& relativeLayerMetadata, std::unordered_set<Layer*>& visited); @@ -1134,8 +1135,6 @@ private: bool hasSomethingToDraw() const { return hasEffect() || hasBufferOrSidebandStream(); } - void updateChildrenSnapshots(bool updateGeometry); - // Fills the provided vector with the currently available JankData and removes the processed // JankData from the pending list. void transferAvailableJankData(const std::deque<sp<CallbackHandle>>& handles, diff --git a/services/surfaceflinger/LayerRenderArea.cpp b/services/surfaceflinger/LayerRenderArea.cpp index d606cffe40..51d4ff854f 100644 --- a/services/surfaceflinger/LayerRenderArea.cpp +++ b/services/surfaceflinger/LayerRenderArea.cpp @@ -116,6 +116,8 @@ void LayerRenderArea::render(std::function<void()> drawLayers) { mLayer->setChildrenDrawingParent(mLayer); } } + mLayer->updateSnapshot(/*updateGeometry=*/true); + mLayer->updateChildrenSnapshots(/*updateGeometry=*/true); } } // namespace android |