| Index: ui/gl/gl_gl_api_implementation.cc
|
| diff --git a/ui/gl/gl_gl_api_implementation.cc b/ui/gl/gl_gl_api_implementation.cc
|
| index b7dc44bb8ae8e2450dfed1f7e917187d9c2dfc2a..a59a2c04ef4df70e1c9453f09172c746543d8d25 100644
|
| --- a/ui/gl/gl_gl_api_implementation.cc
|
| +++ b/ui/gl/gl_gl_api_implementation.cc
|
| @@ -614,4 +614,13 @@
|
| GLApiBase::glFinishFn();
|
| }
|
|
|
| +ScopedSetGLToRealGLApi::ScopedSetGLToRealGLApi()
|
| + : old_gl_api_(GetCurrentGLApi()) {
|
| + SetGLToRealGLApi();
|
| +}
|
| +
|
| +ScopedSetGLToRealGLApi::~ScopedSetGLToRealGLApi() {
|
| + SetGLApi(old_gl_api_);
|
| +}
|
| +
|
| } // namespace gfx
|
|
|