Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / ui / gl / scoped_api.h
blobdd9af506d9d1183de074b1ba2defee60414c5cf5
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef UI_GL_SCOPED_API_H_
6 #define UI_GL_SCOPED_API_H_
8 #include "base/basictypes.h"
9 #include "ui/gl/gl_export.h"
11 namespace gfx {
13 class GLApi;
15 class GL_EXPORT ScopedSetGLToRealGLApi {
16 public:
17 ScopedSetGLToRealGLApi();
18 ~ScopedSetGLToRealGLApi();
20 private:
21 GLApi* old_gl_api_;
23 DISALLOW_COPY_AND_ASSIGN(ScopedSetGLToRealGLApi);
26 } // namespace gfx
28 #endif // UI_GL_SCOPED_API_H_