From 16e0efd89b890932ff32fb612228b48dea4371fa Mon Sep 17 00:00:00 2001 From: "evan@chromium.org" Date: Wed, 8 Jul 2009 03:58:29 +0000 Subject: linux: port Jankometer Originally I had split it into multiple files, but I think it's cleaner to just use one. (I want to use this for measuring plugin jank.) BUG=8077 Review URL: http://codereview.chromium.org/155194 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20130 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/gtk_util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chrome/common/gtk_util.h') diff --git a/chrome/common/gtk_util.h b/chrome/common/gtk_util.h index e4e7da3..58339d4 100644 --- a/chrome/common/gtk_util.h +++ b/chrome/common/gtk_util.h @@ -22,6 +22,11 @@ namespace event_utils { // event_flags are the state in the GdkEvent structure. WindowOpenDisposition DispositionFromEventFlags(guint state); +// Get the timestamp (milliseconds) out of a GdkEvent. +// Returns 0 if the event has no timestamp. +// TODO(evanm): see comments in jankometer.cc about using this. +guint32 GetGdkEventTime(GdkEvent* event); + } // namespace event_utils namespace gtk_util { -- cgit v1.1