aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Barker <jesse.barker@linaro.org>2012-12-17 14:48:52 -0800
committerJesse Barker <jesse.barker@linaro.org>2012-12-17 14:48:52 -0800
commit4be027a005d8d6dec3b4ce2317527fab424e08ac (patch)
tree48a80a882994e8557c1011035b4a928f6b3e1707
parent002f81e3db992c8edd41436cc7010e1c58abc0ef (diff)
downloadglmark2-4be027a005d8d6dec3b4ce2317527fab424e08ac.tar.gz
CanvasDRM: Further simplify the select() logic. Firstly, as we have a NULL
pointer for the timeout parameter, select() won't time out and we don't need to handle that return value. Secondly, unless we have a really great idea for handling user input (apart from Ctrl-C), we don't need to listen on stdin.
-rw-r--r--src/canvas-drm.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/canvas-drm.cpp b/src/canvas-drm.cpp
index e3a81f7..7d11e85 100644
--- a/src/canvas-drm.cpp
+++ b/src/canvas-drm.cpp
@@ -284,7 +284,6 @@ DRMState::do_flip()
fd_set fds;
FD_ZERO(&fds);
- FD_SET(0, &fds);
FD_SET(fd_, &fds);
drmEventContext evCtx;
evCtx.version = DRM_EVENT_CONTEXT_VERSION;
@@ -304,14 +303,6 @@ DRMState::do_flip()
}
return;
}
- else if (status == 0) {
- Log::info("Timeout in select\n");
- return;
- }
- else if (FD_ISSET(0, &fds)) {
- Log::info("User interrupt received\n");
- return;
- }
drmHandleEvent(fd_, &evCtx);
}