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

Unified Diff: ui/gl/gl_context_cgl.cc

Issue 303543004: MacViews: views_examples_with_content_exe working! Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add files Created 6 years, 7 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/gfx/mac/point_utils.mm ('k') | ui/gl/gl_surface_cgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_cgl.cc
diff --git a/ui/gl/gl_context_cgl.cc b/ui/gl/gl_context_cgl.cc
index 141d9352a42c56c756a4c367c3d499b9922db4f4..d56729166cc0304a766c54720fdef175628d7dd3 100644
--- a/ui/gl/gl_context_cgl.cc
+++ b/ui/gl/gl_context_cgl.cc
@@ -116,6 +116,11 @@ bool GLContextCGL::Initialize(GLSurface* compatible_surface,
return false;
}
+ // For transparent windows.
+ GLint opaque = 0;
+ CGLSetParameter(
+ static_cast<CGLContextObj>(context_), kCGLCPSurfaceOpacity, &opaque);
+
gpu_preference_ = gpu_preference;
return true;
}
« no previous file with comments | « ui/gfx/mac/point_utils.mm ('k') | ui/gl/gl_surface_cgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698