1
0
Fork 0
android_external_drm_hwcomp.../utils/properties.h
Konsta adcc927bd4 drm_hwcomposer: Add property to disable HDR
* It has been reported that HDR is not working properly on Raspberry Pi
  with HDMI displays that support it.

Change-Id: I31f9d7bb5a3f81eeca1f98a72c26786d97edc28d
2025-11-10 15:56:28 +02:00

43 lines
1.4 KiB
C++

/*
* Copyright (C) 2022 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#pragma once
#include <optional>
#include <string>
namespace android::drm_hwcomposer {
enum class CtmHandling {
kDrmOrGpu, /* Handled by DRM is possible, otherwise by GPU */
kDrmOrIgnore, /* Handled by DRM is possible, otherwise displayed as is */
};
class Properties {
public:
static auto IsPresentFenceNotReliable() -> bool;
static auto InternalDisplayNames() -> std::string;
static auto UseOverlayPlanes() -> bool;
static auto ScaleWithGpu() -> bool;
static auto EnableVirtualDisplay() -> bool;
static auto GetCtmHandling() -> CtmHandling;
static auto GetBackendOverride() -> std::string;
static auto GetDevicePath() -> std::string;
static auto GetForceMode() -> std::string;
static auto DisableHdr() -> bool;
};
} // namespace android::drm_hwcomposer