Index: ui/gl/gl_glx_api_implementation.cc |
diff --git a/ui/gl/gl_glx_api_implementation.cc b/ui/gl/gl_glx_api_implementation.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..377176abb072a5d78e9945e4a4cf9ed05835bd48 |
--- /dev/null |
+++ b/ui/gl/gl_glx_api_implementation.cc |
@@ -0,0 +1,44 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "ui/gl/gl_glx_api_implementation.h" |
+ |
+namespace gfx { |
+ |
+RealGLXApi g_real_glx; |
+ |
+void InitializeGLBindingsGLX() { |
+ g_driver_glx.InitializeBindings(); |
+ g_real_glx.Initialize(&g_driver_glx); |
+ g_current_glx_context = &g_real_glx; |
+} |
+ |
+void InitializeGLExtensionBindingsGLX(GLContext* context) { |
+ g_driver_osmesa.InitializeExtensionBindings(context); |
+} |
+ |
+void InitializeDebugGLBindingsGLX() { |
+ g_driver_osmesa.InitializeDebugBindings(); |
+} |
+ |
+void ClearGLBindingsGLX() { |
+ g_driver_osmesa.ClearBindings(); |
+} |
+ |
+GLXApi::GLXApi() { |
+} |
+ |
+GLXApi::~GLXApi() { |
+} |
+ |
+RealGLXApi::RealGLXApi() { |
+} |
+ |
+void RealGLXApi::Initialize(DriverGLX* driver) { |
+ driver_ = driver; |
+} |
+ |
+} // namespace gfx |
+ |
+ |