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

Unified Diff: ui/accelerated_widget_mac/io_surface_layer.mm

Issue 1164363005: Mac: Only allow NSOpenGLContext displaying on the main display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add GPU switch Created 5 years, 6 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
Index: ui/accelerated_widget_mac/io_surface_layer.mm
diff --git a/ui/accelerated_widget_mac/io_surface_layer.mm b/ui/accelerated_widget_mac/io_surface_layer.mm
index 56a6391a99da52496519ce16071c7632b8533a8a..d880316d9168285d05aeed0b8e657f92ba0e1efa 100644
--- a/ui/accelerated_widget_mac/io_surface_layer.mm
+++ b/ui/accelerated_widget_mac/io_surface_layer.mm
@@ -174,7 +174,8 @@ void IOSurfaceLayerHelper::EndPumpingFrames() {
if (self = [super init]) {
helper_.reset(new ui::IOSurfaceLayerHelper(client, self));
- iosurface_ = ui::IOSurfaceTexture::Create(needs_gl_finish_workaround);
+ iosurface_ = ui::IOSurfaceTexture::Create(
+ needs_gl_finish_workaround, false);
context_ = ui::IOSurfaceContext::Get(
ui::IOSurfaceContext::kCALayerContext);
if (!iosurface_.get() || !context_.get()) {
« no previous file with comments | « ui/accelerated_widget_mac/accelerated_widget_mac.mm ('k') | ui/accelerated_widget_mac/io_surface_ns_gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698