| 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 892b16c6e58233607aee5a7b7d59440c94625e16..f4dca224e2f884b91ddaed513c6f02542e951839 100644
|
| --- a/ui/gl/gl_gl_api_implementation.cc
|
| +++ b/ui/gl/gl_gl_api_implementation.cc
|
| @@ -492,4 +492,13 @@
|
| GLApiBase::SignalFlush();
|
| }
|
|
|
| +ScopedSetGLToRealGLApi::ScopedSetGLToRealGLApi()
|
| + : old_gl_api_(GetCurrentGLApi()) {
|
| + SetGLToRealGLApi();
|
| +}
|
| +
|
| +ScopedSetGLToRealGLApi::~ScopedSetGLToRealGLApi() {
|
| + SetGLApi(old_gl_api_);
|
| +}
|
| +
|
| } // namespace gfx
|
|
|