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..5fbe7f1412585fd9ad071b543cc433ae5dacc2b3 100644 |
| --- a/ui/gl/gl_context.cc |
| +++ b/ui/gl/gl_context.cc |
| @@ -210,6 +210,14 @@ void GLContext::SetCurrent(GLSurface* surface) { |
| } |
| } |
| +GLWorkarounds GLContext::GetGLWorkarounds() { |
| + return gl_workarounds_; |
| +} |
| + |
| +void GLContext::SetGLWorkarounds(const GLWorkarounds& workarounds) { |
| + gl_workarounds_ = workarounds; |
| +} |
| + |
| GLStateRestorer* GLContext::GetGLStateRestorer() { |
| return state_restorer_.get(); |
| } |
| @@ -243,6 +251,7 @@ void GLContext::InitializeDynamicBindings() { |
| if (real_gl_api_) { |
| real_gl_api_->InitializeFilteredExtensions(); |
| real_gl_api_->set_version(GenerateGLVersionInfo()); |
| + real_gl_api_->setGLContext(this); |
|
Zhenyao Mo
2017/06/26 21:45:22
This is less optimal. GLContext owns real_gl_api_
jiajia.qin
2017/06/28 10:03:38
Sorry for so many iterations. Please check the new
|
| } |
| driver_gl_->InitializeDynamicBindings(GetVersionInfo(), GetExtensions()); |