diff options
author | girard@chromium.org <girard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 20:00:35 +0000 |
---|---|---|
committer | girard@chromium.org <girard@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-03-13 20:00:35 +0000 |
commit | a40af7aebe1a4f56bd059bc2077c9247d49cb85c (patch) | |
tree | 08076aa3cec9dd03888c6bdb947157ba50ddff8f /ui | |
parent | adfa059dd353a5c88e5d235d869d793824c70347 (diff) | |
download | chromium_src-a40af7aebe1a4f56bd059bc2077c9247d49cb85c.zip chromium_src-a40af7aebe1a4f56bd059bc2077c9247d49cb85c.tar.gz chromium_src-a40af7aebe1a4f56bd059bc2077c9247d49cb85c.tar.bz2 |
Optimized GetTouchInputInfoWrapper
We don't need to call GetProcAddress more than once.
Follow-up to https://chromiumcodereview.appspot.com/12566007/
BUG=181073
Review URL: https://chromiumcodereview.appspot.com/12585005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187921 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui')
-rw-r--r-- | ui/base/win/touch_input.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/base/win/touch_input.cc b/ui/base/win/touch_input.cc index acf62b2..a369ab1 100644 --- a/ui/base/win/touch_input.cc +++ b/ui/base/win/touch_input.cc @@ -12,7 +12,7 @@ UI_EXPORT BOOL GetTouchInputInfoWrapper(HTOUCHINPUT handle, int size) { typedef BOOL(WINAPI *GetTouchInputInfoPtr)(HTOUCHINPUT, UINT, PTOUCHINPUT, int); - GetTouchInputInfoPtr get_touch_input_info_func = + static GetTouchInputInfoPtr get_touch_input_info_func = reinterpret_cast<GetTouchInputInfoPtr>( GetProcAddress(GetModuleHandleA("user32.dll"), "GetTouchInputInfo")); if (get_touch_input_info_func) |