rename tdm_hwc_get_video_supported_formats 18/185218/1
authorChangyeon Lee <cyeon.lee@samsung.com>
Thu, 19 Jul 2018 11:18:20 +0000 (20:18 +0900)
committerChangyeon Lee <cyeon.lee@samsung.com>
Thu, 19 Jul 2018 11:28:39 +0000 (20:28 +0900)
Change-Id: I9034c4f898c7753e81790c02d7e71511651ad527

haltests/src/tc_tdm_hwc.cpp
include/tdm.h
include/tdm_backend.h
src/tdm_hwc.c

index 545c6a0..4df9e54 100644 (file)
@@ -106,7 +106,7 @@ TEST_P(TDMHwc, GetSupportedFormatsFailNull)
 
        tdm_error error;
 
-       error = tdm_hwc_get_supported_formats(NULL, NULL, NULL);
+       error = tdm_hwc_get_video_supported_formats(NULL, NULL, NULL);
        ASSERT_NE(TDM_ERROR_NONE, error);
 }
 
@@ -122,14 +122,14 @@ TEST_P(TDMHwc, GetSupportedFormatsSuccessful)
        for (int o = 0; o < output_count; o++) {
                hwc = tdm_output_get_hwc(outputs[o], &error);
                if (hwc) {
-                       error = tdm_hwc_get_supported_formats(hwc, &formats, &count);
+                       error = tdm_hwc_get_video_supported_formats(hwc, &formats, &count);
                        if (error != TDM_ERROR_NOT_IMPLEMENTED) {
                                ASSERT_EQ(TDM_ERROR_NONE, error);
                                if (count > 0)
                                        ASSERT_NE(NULL, formats);
                        }
                } else {
-                       error = tdm_hwc_get_supported_formats(hwc, &formats, &count);
+                       error = tdm_hwc_get_video_supported_formats(hwc, &formats, &count);
                        ASSERT_NE(TDM_ERROR_NONE, error);
                }
        }
index 7beccd0..1568ea1 100644 (file)
@@ -825,14 +825,15 @@ tdm_hwc_window *
 tdm_hwc_create_window(tdm_hwc *hwc, tdm_error *error);
 
 /**
- * @brief Get the supported format array for hwc windows of a hwc object.
- * @param[in] hwc A output hwc
+ * @brief Get the video supported format array for hwc windows of a output object.
+ * @param[in] hwc A hwc object
  * @param[out] formats The available format array
  * @param[out] count The count of formats
  * @return #TDM_ERROR_NONE if success. Otherwise, error value.
  */
 tdm_error
-tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count);
+tdm_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats,
+                                                               int *count);
 
 /**
  * @brief Get the available property array  of a hwc object.
index e9fc70d..4949d1e 100644 (file)
@@ -694,13 +694,13 @@ typedef struct _tdm_func_hwc {
        tdm_hwc_window *(*hwc_create_window)(tdm_hwc *hwc, tdm_error *error);
 
        /**
-        * @brief Get the supported format array for the hwc windows of a hwc object.
+        * @brief Get video the supported format array for the hwc windows of a hwc object.
         * @param[in] hwc A hwc object
         * @param[out] formats The available format array
         * @param[out] count The count of formats
         * @return #TDM_ERROR_NONE if success. Otherwise, error value.
         */
-       tdm_error (*hwc_get_supported_formats)(tdm_hwc *hwc, const tbm_format **formats,
+       tdm_error (*hwc_get_video_supported_formats)(tdm_hwc *hwc, const tbm_format **formats,
                                                                                int *count);
 
 
index f7ed46f..b4df1c0 100644 (file)
@@ -178,7 +178,7 @@ tdm_hwc_create_window(tdm_hwc *hwc, tdm_error *error)
 }
 
 EXTERN tdm_error
-tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
+tdm_hwc_get_video_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *count)
 {
        tdm_private_module *private_module;
        tdm_func_hwc *func_hwc;
@@ -193,7 +193,7 @@ tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *cou
        private_module = private_output->private_module;
        func_hwc = &private_module->func_hwc;
 
-       if (!func_hwc->hwc_get_supported_formats) {
+       if (!func_hwc->hwc_get_video_supported_formats) {
                /* LCOV_EXCL_START */
                _pthread_mutex_unlock(&private_display->lock);
                TDM_WRN("not implemented!!");
@@ -201,7 +201,7 @@ tdm_hwc_get_supported_formats(tdm_hwc *hwc, const tbm_format **formats, int *cou
                /* LCOV_EXCL_STOP */
        }
 
-       ret = func_hwc->hwc_get_supported_formats(private_hwc->hwc_backend, formats, count);
+       ret = func_hwc->hwc_get_video_supported_formats(private_hwc->hwc_backend, formats, count);
 
        _pthread_mutex_unlock(&private_display->lock);