summaryrefslogtreecommitdiff
path: root/sdm/include
diff options
context:
space:
mode:
authorRajavenu Kyatham <rkyatham@codeaurora.org>2017-09-01 20:41:43 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2017-09-20 22:34:50 -0700
commitc79fceb8e12d13eb100feec3d7770b3dd3d82552 (patch)
treeb6a048805714d555b94d3e0fd81c985aec7e92bc /sdm/include
parent35ae54fe5884d777a09cd5b4148291241478c4ed (diff)
downloaddisplay-c79fceb8e12d13eb100feec3d7770b3dd3d82552.tar.gz
sdm: Refactor GetClientTargetSupport API
- Validate GetClientTargetSupport against hardware capabilities. Change-Id: Iae46254f9bcc45ca42879710e1ec4a41e593af57 CRs-Fixed: 2096611
Diffstat (limited to 'sdm/include')
-rw-r--r--sdm/include/core/display_interface.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/sdm/include/core/display_interface.h b/sdm/include/core/display_interface.h
index 142d2c6f..2f25bdef 100644
--- a/sdm/include/core/display_interface.h
+++ b/sdm/include/core/display_interface.h
@@ -674,6 +674,20 @@ class DisplayInterface {
*/
virtual DisplayError SetCompositionState(LayerComposition composition_type, bool enable) = 0;
+ /*! @brief Method to check whether a client target with the given properties
+ can be supported/handled by hardware.
+
+ @param[in] width client target width
+ @param[in] height client target height
+ @param[in] format client target format
+ @param[in] colorMetaData client target colorMetaData
+
+ @return \link DisplayError \endlink
+ */
+ virtual DisplayError GetClientTargetSupport(uint32_t width, uint32_t height,
+ LayerBufferFormat format,
+ const ColorMetaData &color_metadata) = 0;
+
protected:
virtual ~DisplayInterface() { }
};