Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(192)

Unified Diff: ui/gl/gl_gl_api_implementation.h

Issue 1280033004: Revert of Mac Overlays: Add GPU back-pressure (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_gl_api_implementation.h
diff --git a/ui/gl/gl_gl_api_implementation.h b/ui/gl/gl_gl_api_implementation.h
index cfefb1384bcdd77a0a1fbbcfde4256acbde8695f..a5197fed774418c6f6cfe8d338828febd1dfd761 100644
--- a/ui/gl/gl_gl_api_implementation.h
+++ b/ui/gl/gl_gl_api_implementation.h
@@ -36,7 +36,6 @@
void SetGLToRealGLApi();
void SetGLApi(GLApi* api);
void SetGLApiToNoContext();
-GLApi* GetCurrentGLApi();
const GLVersionInfo* GetGLVersionInfo();
class GL_EXPORT GLApiBase : public GLApi {
@@ -140,6 +139,15 @@
std::string extensions_;
};
+class GL_EXPORT ScopedSetGLToRealGLApi {
+ public:
+ ScopedSetGLToRealGLApi();
+ ~ScopedSetGLToRealGLApi();
+
+ private:
+ GLApi* old_gl_api_;
+};
+
} // namespace gfx
#endif // UI_GL_GL_GL_API_IMPLEMENTATION_H_
« no previous file with comments | « ui/gl/gl.gyp ('k') | ui/gl/gl_gl_api_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698