Chromium Code Reviews| Index: ui/gl/gl_context.cc |
| diff --git a/ui/gl/gl_context.cc b/ui/gl/gl_context.cc |
| index 0f3b3561390189453f9c746bfb31a7a43f564546..e1b09b126e450e1a674f22fefa2e28eed9e66835 100644 |
| --- a/ui/gl/gl_context.cc |
| +++ b/ui/gl/gl_context.cc |
| @@ -25,13 +25,25 @@ |
| namespace gl { |
| namespace { |
| + |
| base::LazyInstance<base::ThreadLocalPointer<GLContext>>::Leaky |
| current_context_ = LAZY_INSTANCE_INITIALIZER; |
| base::LazyInstance<base::ThreadLocalPointer<GLContext>>::Leaky |
| current_real_context_ = LAZY_INSTANCE_INITIALIZER; |
| + |
| +GLWorkarounds gl_workarounds; |
|
Zhenyao Mo
2017/06/20 21:34:17
Sorry. What I mean is the gl_workarounds should be
jiajia.qin
2017/06/21 02:47:22
Done.
|
| + |
| } // namespace |
| +void SetGLWorkarounds(const GLWorkarounds& workarounds) { |
| + gl_workarounds = workarounds; |
| +} |
| + |
| +GLWorkarounds GetGLWorkarounds() { |
| + return gl_workarounds; |
| +} |
| + |
| GLContext::ScopedReleaseCurrent::ScopedReleaseCurrent() : canceled_(false) {} |
| GLContext::ScopedReleaseCurrent::~ScopedReleaseCurrent() { |