Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(279)

Unified Diff: ui/base/ozone/event_factory_ozone.cc

Issue 23438002: Adding functionality to paint and signal buffer swap for ozone surface factory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removing call to SchedulePageFlip in gl_surface_egl Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/base/ozone/event_factory_ozone.cc
diff --git a/ui/base/ozone/event_factory_ozone.cc b/ui/base/ozone/event_factory_ozone.cc
index afeff2b7a1997a76129bd51f401574a7104b3406..d008047e546c897b3fc900e5bb3794376b47c80a 100644
--- a/ui/base/ozone/event_factory_ozone.cc
+++ b/ui/base/ozone/event_factory_ozone.cc
@@ -4,6 +4,7 @@
#include "ui/base/ozone/event_factory_ozone.h"
+#include <errno.h>
#include <fcntl.h>
#include <linux/input.h>
#include <poll.h>
@@ -45,8 +46,10 @@ void EventFactoryOzone::CreateStartupEventConverters() {
for (int id = 0; true; id++) {
std::string path = base::StringPrintf("/dev/input/event%d", id);
int fd = open(path.c_str(), O_RDONLY | O_NONBLOCK);
- if (fd < 0)
+ if (fd < 0) {
+ DLOG(ERROR) << "Cannot open '" << path << "': " << strerror(errno);
break;
+ }
size_t evtype = 0;
COMPILE_ASSERT(sizeof(evtype) * 8 >= EV_MAX, evtype_wide_enough);
if (ioctl(fd, EVIOCGBIT(0, sizeof(evtype)), &evtype) == -1) {

Powered by Google App Engine
This is Rietveld 408576698