1
0
Fork 0

drm_hwcomposer: Make TestComposition const

Making TestComposition const ensures that the Backend can't modify any
HwcDisplay state while creating and validating a composition.

Also make a bunch of other stuff const-correct since there is a const
version of GetPipe()

Change-Id: Ib7769d290148ce496b0165b64806dbd0a601b213
This commit is contained in:
Drew Davenport 2025-08-21 10:54:31 -06:00
parent eb46a0dae5
commit bf4210c17e
6 changed files with 37 additions and 30 deletions

View file

@ -34,10 +34,10 @@ struct DrmKmsPlan {
std::vector<LayerToPlaneJoining> plan;
static auto CreateDrmKmsPlan(DrmDisplayPipeline &pipe,
std::vector<LayerData> composition,
std::optional<LayerData> cursor_layer =
std::nullopt) -> std::unique_ptr<DrmKmsPlan>;
static auto CreateDrmKmsPlan(
const DrmDisplayPipeline &pipe, std::vector<LayerData> composition,
std::optional<LayerData> cursor_layer = std::nullopt)
-> std::unique_ptr<DrmKmsPlan>;
};
} // namespace android