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

Unified Diff: ui/gfx/gl/gl_surface_cgl.cc

Issue 8698008: This change adds the apple software renderer as an option on Chrome/Mac. It's enabled by passing... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years 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/gfx/gl/gl_surface_cgl.cc
===================================================================
--- ui/gfx/gl/gl_surface_cgl.cc (revision 113194)
+++ ui/gfx/gl/gl_surface_cgl.cc (working copy)
@@ -4,11 +4,14 @@
#include "ui/gfx/gl/gl_surface_cgl.h"
+#include <OpenGL/CGLRenderers.h>
+
#include "base/basictypes.h"
#include "base/logging.h"
#include "base/mac/mac_util.h"
#include "ui/gfx/gl/gl_bindings.h"
#include "ui/gfx/gl/gl_context.h"
+#include "ui/gfx/gl/gl_implementation.h"
namespace gfx {
@@ -36,6 +39,11 @@
// format selection.
attribs.push_back(kCGLPFAAllowOfflineRenderers);
}
+ if (GetGLImplementation() == kGLImplementationAppleGL) {
+ attribs.push_back(kCGLPFARendererID);
+ attribs.push_back(static_cast<CGLPixelFormatAttribute>(
+ kCGLRendererGenericFloatID));
+ }
attribs.push_back(static_cast<CGLPixelFormatAttribute>(0));
CGLPixelFormatObj format;

Powered by Google App Engine
This is Rietveld 408576698