Exclude TrayIMETest.PerformActionOnDetailedView under valgrind, where it crashes.
[chromium-blink-merge.git] / ui / gl / gl_wgl_api_implementation.h
blobf22f7093e08fc86d587f114f0c3dfa2f15389ed9
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GL_GL_WGL_API_IMPLEMENTATION_H_
6 #define UI_GL_GL_WGL_API_IMPLEMENTATION_H_
8 #include <vector>
10 #include "base/compiler_specific.h"
11 #include "ui/gl/gl_bindings.h"
12 #include "ui/gl/gl_export.h"
14 namespace base {
15 class CommandLine;
17 namespace gfx {
19 class GLContext;
20 struct GLWindowSystemBindingInfo;
22 void InitializeStaticGLBindingsWGL();
23 void InitializeDebugGLBindingsWGL();
24 void ClearGLBindingsWGL();
25 bool GetGLWindowSystemBindingInfoWGL(GLWindowSystemBindingInfo* info);
27 class GL_EXPORT WGLApiBase : public WGLApi {
28 public:
29 // Include the auto-generated part of this class. We split this because
30 // it means we can easily edit the non-auto generated parts right here in
31 // this file instead of having to edit some template or the code generator.
32 #include "gl_bindings_api_autogen_wgl.h"
34 protected:
35 WGLApiBase();
36 ~WGLApiBase() override;
37 void InitializeBase(DriverWGL* driver);
39 DriverWGL* driver_;
42 class GL_EXPORT RealWGLApi : public WGLApiBase {
43 public:
44 RealWGLApi();
45 ~RealWGLApi() override;
46 void Initialize(DriverWGL* driver);
47 void InitializeWithCommandLine(DriverWGL* driver,
48 base::CommandLine* command_line);
50 const char* wglGetExtensionsStringARBFn(HDC hDC) override;
51 const char* wglGetExtensionsStringEXTFn() override;
52 private:
54 std::vector<std::string> disabled_exts_;
55 std::string filtered_arb_exts_;
56 std::string filtered_ext_exts_;
59 // Inserts a TRACE for every WGL call.
60 class GL_EXPORT TraceWGLApi : public WGLApi {
61 public:
62 TraceWGLApi(WGLApi* wgl_api) : wgl_api_(wgl_api) { }
63 ~TraceWGLApi() override;
65 // Include the auto-generated part of this class. We split this because
66 // it means we can easily edit the non-auto generated parts right here in
67 // this file instead of having to edit some template or the code generator.
68 #include "gl_bindings_api_autogen_wgl.h"
70 private:
71 WGLApi* wgl_api_;
74 } // namespace gfx
76 #endif // UI_GL_GL_WGL_API_IMPLEMENTATION_H_