Wait some time before switching to integrated GPU.
commitac64d6fe6fcd98b877f2dc87469ef530968c2964
authorjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 23 Mar 2013 22:12:02 +0000 (23 22:12 +0000)
committerjbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Sat, 23 Mar 2013 22:12:02 +0000 (23 22:12 +0000)
tree30353d6a647719376bba0da389851eba9fa516ac
parent03bf84adf8081592e527fdd781391c1ad9765a98
Wait some time before switching to integrated GPU.

Switching between the discrete GPU and integrated GPU is expensive (and probably buggy), so delay switching back from the discrete GPU to the integrated GPU for 10 seconds after a context is deleted in case a new context will soon request the discrete GPU.

BUG=156986

Review URL: https://chromiumcodereview.appspot.com/12619009

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@190096 0039d316-1c4b-4281-b951-d872f2087c98
ui/gl/gl_context_cgl.cc