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

Unified Diff: ui/gl/gl_gl_api_implementation.cc

Issue 516643002: Fix assorted issues with remote CoreAnimation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@clean_up_accel_layers
Patch Set: Incorporate review feedback Created 6 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
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 @@ void VirtualGLApi::glFinishFn() {
GLApiBase::SignalFlush();
}
+ScopedSetGLToRealGLApi::ScopedSetGLToRealGLApi()
+ : old_gl_api_(GetCurrentGLApi()) {
+ SetGLToRealGLApi();
+}
+
+ScopedSetGLToRealGLApi::~ScopedSetGLToRealGLApi() {
+ SetGLApi(old_gl_api_);
+}
+
} // namespace gfx
« content/common/gpu/image_transport_surface_fbo_mac.mm ('K') | « ui/gl/gl_gl_api_implementation.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698