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

Unified Diff: ui/gl/gl_context.h

Issue 13746002: Force GPU switch with CGLSetVirtualScreen only for compositor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Clean up branching mess Created 7 years, 8 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 | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context.h
diff --git a/ui/gl/gl_context.h b/ui/gl/gl_context.h
index 76cbd353a4960403e571da0ac391ed4a7e3e312f..7300cdb311955068428fae4afb07761576843f67 100644
--- a/ui/gl/gl_context.h
+++ b/ui/gl/gl_context.h
@@ -61,6 +61,10 @@ class GL_EXPORT GLContext : public base::RefCounted<GLContext> {
// to get the exact amount of GPU memory.
virtual bool GetTotalGpuMemory(size_t* bytes);
+ // Indicate that it is safe to force this context to switch GPUs, since
+ // transitioning can cause corruption and hangs (OS X only).
+ virtual void SetSafeToForceGpuSwitch();
+
// Returns whether the current context supports the named extension. The
// context must be current.
bool HasExtension(const char* name);
« no previous file with comments | « gpu/command_buffer/service/gles2_cmd_decoder.cc ('k') | ui/gl/gl_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698