drm_hwcomposer: Remove drmSetMaster call
Now that gralloc is using a render node, we can remove
this call. This allows us to run as a non-root user as
well.
Change-Id: I46c9c16c7a9a169378e567d4973172f8392d441b
Signed-off-by: Sean Paul <seanpaul@chromium.org>
diff --git a/hwcomposer.cpp b/hwcomposer.cpp
index 912bb74..2fe2244 100644
--- a/hwcomposer.cpp
+++ b/hwcomposer.cpp
@@ -1294,12 +1294,6 @@
goto out;
}
- ret = drmSetMaster(ctx->fd);
- if (ret) {
- ALOGE("Failed to set hwcomposer as drm master %d", ret);
- goto out;
- }
-
ret = hwc_enumerate_displays(ctx);
if (ret) {
ALOGE("Failed to enumerate displays: %s", strerror(ret));