Always use either glXCreateNewContext or glXCreateContextAttribsARB for GLX

Explicitly create the GLX window for onscreen surfaces.

Use glXCreateContextAttribsARB to create GLX contexts when GLX_ARB_create_context is supported, otherwise use glXCreateNewContext.

This will allow us to explicitly destroy hibernated GLX windows, which will hopefully plug some GPU memory leaks that were causing instability.

BUG=145600


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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@172122 0039d316-1c4b-4281-b951-d872f2087c98
3 files changed