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:
parent
eb46a0dae5
commit
bf4210c17e
6 changed files with 37 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue