diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 03:58:29 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-08 03:58:29 +0000 |
commit | 16e0efd89b890932ff32fb612228b48dea4371fa (patch) | |
tree | e8de88cf77fbc568fae0d377392ded1df0cb33f7 /chrome/common/gtk_util.h | |
parent | 8351861274bcfad6e2c3580f7256d8d863ac4f17 (diff) | |
download | chromium_src-16e0efd89b890932ff32fb612228b48dea4371fa.zip chromium_src-16e0efd89b890932ff32fb612228b48dea4371fa.tar.gz chromium_src-16e0efd89b890932ff32fb612228b48dea4371fa.tar.bz2 |
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
Diffstat (limited to 'chrome/common/gtk_util.h')
-rw-r--r-- | chrome/common/gtk_util.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 { |