diff options
author | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 23:45:38 +0000 |
---|---|---|
committer | backer@chromium.org <backer@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-10 23:45:38 +0000 |
commit | 8f1d2aa6f3433d4ea36e624ee2bb84155bbd67b4 (patch) | |
tree | 3ee5ae5244a5322673361b79030e1b57ff044f9d /ui/gl/gl_bindings.h | |
parent | aa9b14d66749ef7d81702ef53ce1cd765e6affd2 (diff) | |
download | chromium_src-8f1d2aa6f3433d4ea36e624ee2bb84155bbd67b4.zip chromium_src-8f1d2aa6f3433d4ea36e624ee2bb84155bbd67b4.tar.gz chromium_src-8f1d2aa6f3433d4ea36e624ee2bb84155bbd67b4.tar.bz2 |
Reland 199454: "Move WrappedTexImage functionality to ui/gl"
Move WrappedTexImage functionality to ui/gl
BUG=235031
Review URL: https://chromiumcodereview.appspot.com/14983005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@199573 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_bindings.h')
-rw-r--r-- | ui/gl/gl_bindings.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/ui/gl/gl_bindings.h b/ui/gl/gl_bindings.h index e7bd808..38cadde 100644 --- a/ui/gl/gl_bindings.h +++ b/ui/gl/gl_bindings.h @@ -212,6 +212,77 @@ typedef uint64 EGLuint64CHROMIUM; namespace gfx { +struct GL_EXPORT DriverGL { + void Initialize(); + void InitializeExtensions(GLContext* context); + void InitializeDebugBindings(); + void ClearBindings(); + void UpdateDebugExtensionBindings(); + + ProcsGL fn; + ProcsGL orig_fn; + ProcsGL debug_fn; + ExtensionsGL ext; + + private: + void InitializeBindings(); + void InitializeExtensionBindings(GLContext* context); +}; + +struct GL_EXPORT DriverOSMESA { + void InitializeBindings(); + void InitializeExtensionBindings(GLContext* context); + void InitializeDebugBindings(); + void ClearBindings(); + void UpdateDebugExtensionBindings(); + + ProcsOSMESA fn; + ProcsOSMESA debug_fn; + ExtensionsOSMESA ext; +}; + +#if defined(OS_WIN) +struct GL_EXPORT DriverWGL { + void InitializeBindings(); + void InitializeExtensionBindings(GLContext* context); + void InitializeDebugBindings(); + void ClearBindings(); + void UpdateDebugExtensionBindings(); + + ProcsWGL fn; + ProcsWGL debug_fn; + ExtensionsWGL ext; +}; +#endif + +#if defined(OS_WIN) || defined(USE_X11) || defined(OS_ANDROID) +struct GL_EXPORT DriverEGL { + void InitializeBindings(); + void InitializeExtensionBindings(GLContext* context); + void InitializeDebugBindings(); + void ClearBindings(); + void UpdateDebugExtensionBindings(); + + ProcsEGL fn; + ProcsEGL debug_fn; + ExtensionsEGL ext; +}; +#endif + +#if defined(USE_X11) +struct GL_EXPORT DriverGLX { + void InitializeBindings(); + void InitializeExtensionBindings(GLContext* context); + void InitializeDebugBindings(); + void ClearBindings(); + void UpdateDebugExtensionBindings(); + + ProcsGLX fn; + ProcsGLX debug_fn; + ExtensionsGLX ext; +}; +#endif + GL_EXPORT extern GLApi* g_current_gl_context; GL_EXPORT extern OSMESAApi* g_current_osmesa_context; GL_EXPORT extern DriverGL g_driver_gl; |