Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(74)

Side by Side Diff: ui/gl/gl_osmesa_api_implementation.h

Issue 1203513004: Respect the disabled extension list during binding initialization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: split extension binding loading from static binding loading; pass enabled extensions Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef UI_GL_GL_OSMESA_API_IMPLEMENTATION_H_ 5 #ifndef UI_GL_GL_OSMESA_API_IMPLEMENTATION_H_
6 #define UI_GL_GL_OSMESA_API_IMPLEMENTATION_H_ 6 #define UI_GL_GL_OSMESA_API_IMPLEMENTATION_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gl/gl_bindings.h" 9 #include "ui/gl/gl_bindings.h"
10 #include "ui/gl/gl_export.h" 10 #include "ui/gl/gl_export.h"
(...skipping 19 matching lines...) Expand all
30 void InitializeBase(DriverOSMESA* driver); 30 void InitializeBase(DriverOSMESA* driver);
31 31
32 DriverOSMESA* driver_; 32 DriverOSMESA* driver_;
33 }; 33 };
34 34
35 class GL_EXPORT RealOSMESAApi : public OSMESAApiBase { 35 class GL_EXPORT RealOSMESAApi : public OSMESAApiBase {
36 public: 36 public:
37 RealOSMESAApi(); 37 RealOSMESAApi();
38 ~RealOSMESAApi() override; 38 ~RealOSMESAApi() override;
39 void Initialize(DriverOSMESA* driver); 39 void Initialize(DriverOSMESA* driver);
40 std::set<std::string> GetEnabledExtensions() const;
40 }; 41 };
41 42
42 // Inserts a TRACE for every OSMESA call. 43 // Inserts a TRACE for every OSMESA call.
43 class GL_EXPORT TraceOSMESAApi : public OSMESAApi { 44 class GL_EXPORT TraceOSMESAApi : public OSMESAApi {
44 public: 45 public:
45 TraceOSMESAApi(OSMESAApi* osmesa_api) : osmesa_api_(osmesa_api) { } 46 TraceOSMESAApi(OSMESAApi* osmesa_api) : osmesa_api_(osmesa_api) { }
46 ~TraceOSMESAApi() override; 47 ~TraceOSMESAApi() override;
47 48
48 // Include the auto-generated part of this class. We split this because 49 // Include the auto-generated part of this class. We split this because
49 // it means we can easily edit the non-auto generated parts right here in 50 // it means we can easily edit the non-auto generated parts right here in
50 // this file instead of having to edit some template or the code generator. 51 // this file instead of having to edit some template or the code generator.
51 #include "gl_bindings_api_autogen_osmesa.h" 52 #include "gl_bindings_api_autogen_osmesa.h"
52 53
53 private: 54 private:
54 OSMESAApi* osmesa_api_; 55 OSMESAApi* osmesa_api_;
55 }; 56 };
56 57
57 } // namespace gfx 58 } // namespace gfx
58 59
59 #endif // UI_GL_GL_OSMESA_API_IMPLEMENTATION_H_ 60 #endif // UI_GL_GL_OSMESA_API_IMPLEMENTATION_H_
60 61
61 62
62 63
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698