disable PP capability 63/61263/1 accepted/tizen/common/20160310.074230 accepted/tizen/ivi/20160310.053753 accepted/tizen/mobile/20160310.053655 accepted/tizen/tv/20160310.053717 accepted/tizen/wearable/20160310.053732 submit/tizen/20160309.043414
authorBoram Park <boram1288.park@samsung.com>
Mon, 7 Mar 2016 05:25:45 +0000 (14:25 +0900)
committerBoram Park <boram1288.park@samsung.com>
Mon, 7 Mar 2016 05:25:52 +0000 (14:25 +0900)
Change-Id: I262dd66f753b7639edd5b68f8b6d411ca2b3ba2a

src/tdm_drm.c

index b55cbde..ab2ee53 100644 (file)
@@ -9,6 +9,8 @@
 #include "tdm_drm.h"
 #include <tdm_helper.h>
 
+//#define ENABLE_PP
+
 #define TDM_DRM_NAME "vigs"
 
 static tdm_func_display drm_func_display = {
@@ -50,6 +52,7 @@ static tdm_func_layer drm_func_layer = {
        NULL,    //layer_create_capture
 };
 
+#ifdef ENABLE_PP
 static tdm_func_pp drm_func_pp = {
        drm_pp_destroy,
        drm_pp_set_info,
@@ -57,6 +60,7 @@ static tdm_func_pp drm_func_pp = {
        drm_pp_commit,
        drm_pp_set_done_handler,
 };
+#endif
 
 static tdm_drm_data *drm_data;
 
@@ -211,9 +215,11 @@ tdm_drm_init(tdm_display *dpy, tdm_error *error)
        if (ret != TDM_ERROR_NONE)
                goto failed;
 
+#ifdef ENABLE_PP
        ret = tdm_backend_register_func_pp(dpy, &drm_func_pp);
        if (ret != TDM_ERROR_NONE)
                goto failed;
+#endif
 
        drm_data->dpy = dpy;