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

Unified Diff: content/renderer/gpu/renderer_gl_context.h

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/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/gpu/renderer_gl_context.h
===================================================================
--- content/renderer/gpu/renderer_gl_context.h (revision 105357)
+++ content/renderer/gpu/renderer_gl_context.h (working copy)
@@ -16,6 +16,7 @@
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "build/build_config.h"
+#include "ui/gfx/gl/gpu_preference.h"
#include "ui/gfx/native_widget_types.h"
#include "ui/gfx/size.h"
@@ -107,7 +108,8 @@
RendererGLContext* share_group,
const char* allowed_extensions,
const int32* attrib_list,
- const GURL& active_arl);
+ const GURL& active_url,
+ gfx::GpuPreference gpu_preference);
// Create a RendererGLContext that renders to an offscreen frame buffer. If
// parent is not NULL, that RendererGLContext can access a copy of the created
@@ -123,7 +125,8 @@
RendererGLContext* share_group,
const char* allowed_extensions,
const int32* attrib_list,
- const GURL& active_url);
+ const GURL& active_url,
+ gfx::GpuPreference gpu_preference);
// Sets the parent context. If any parent textures have been created for
// another parent, it is important to delete them before changing the parent.
@@ -185,7 +188,8 @@
RendererGLContext* share_group,
const char* allowed_extensions,
const int32* attrib_list,
- const GURL& active_url);
+ const GURL& active_url,
+ gfx::GpuPreference gpu_preference);
void Destroy();
void OnContextLost();
« no previous file with comments | « content/renderer/gpu/gpu_channel_host.cc ('k') | content/renderer/gpu/renderer_gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698