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

Unified Diff: content/common/sandbox_mac.mm

Issue 8233027: Support dynamic switching between integrated and discrete GPUs on Mac OS X. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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 | « content/common/gpu/gpu_messages.h ('k') | content/gpu/gpu_info_collector.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/sandbox_mac.mm
===================================================================
--- content/common/sandbox_mac.mm (revision 105357)
+++ content/common/sandbox_mac.mm (working copy)
@@ -5,7 +5,6 @@
#include "content/common/sandbox_mac.h"
#import <Cocoa/Cocoa.h>
-#import <OpenGL/OpenGL.h>
extern "C" {
#include <sandbox.h>
@@ -250,16 +249,6 @@
// Process-type dependent warm-up.
switch (sandbox_type) {
case SANDBOX_TYPE_GPU:
- { // GPU-related stuff is very slow without this, probably because
- // the sandbox prevents loading graphics drivers or some such.
- CGLPixelFormatAttribute attribs[] = { (CGLPixelFormatAttribute)0 };
- CGLPixelFormatObj format;
- GLint n;
- CGLChoosePixelFormat(attribs, &format, &n);
- if (format)
- CGLReleasePixelFormat(format);
- }
-
{
// Preload either the desktop GL or the osmesa so, depending on the
// --use-gl flag.
« no previous file with comments | « content/common/gpu/gpu_messages.h ('k') | content/gpu/gpu_info_collector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698