summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoram Park <boram1288.park@samsung.com>2016-03-07 14:25:45 +0900
committerBoram Park <boram1288.park@samsung.com>2016-03-07 14:25:52 +0900
commit06cf5498b864273a466a02418b8c45e6914a31c5 (patch)
treea48181dd0cc1aaf2e507195be746b0705dbfdc54
parent34a5715d38e1889b65dec9077626db15c6581c01 (diff)
downloadlibtdm-drm-06cf5498b864273a466a02418b8c45e6914a31c5.tar.gz
libtdm-drm-06cf5498b864273a466a02418b8c45e6914a31c5.tar.bz2
libtdm-drm-06cf5498b864273a466a02418b8c45e6914a31c5.zip
Change-Id: I262dd66f753b7639edd5b68f8b6d411ca2b3ba2a
-rw-r--r--src/tdm_drm.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tdm_drm.c b/src/tdm_drm.c
index b55cbde..ab2ee53 100644
--- a/src/tdm_drm.c
+++ b/src/tdm_drm.c
@@ -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;