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

Issue 1164363005: Mac: Only allow NSOpenGLContext displaying on the main display (Closed)

Created:
5 years, 6 months ago by ccameron
Modified:
5 years, 6 months ago
Reviewers:
Andre
CC:
chromium-reviews, darin-cc_chromium.org, jam, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mac: Only allow NSOpenGLContext displaying on the main display Perhaps indicating that we're entering a losing struggle, using an layer backed NSOpenGLContext with IOSurfaces on a non-primary display results in terrible jank (it appears to be due to paging the IOSurface ... where to and from is unclear). Add support to dynamically switch between this and the CAOpenGLLayer with IOSurface mode (which doesn't exhibit this problem). Also add support for querying the current CGLRendererID (since I was hoping this to solve the problem ... it didn't). BUG=496484 Committed: https://crrev.com/347a77b6fac3ce9d1aa2d2b86bb4ce14583aa7a1 Cr-Commit-Position: refs/heads/master@{#333824}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add GPU switch #

Unified diffs Side-by-side diffs Delta from patch set Stats (+135 lines, -32 lines) Patch
M content/common/gpu/image_transport_surface_fbo_mac.mm View 1 chunk +5 lines, -1 line 0 comments Download
M ui/accelerated_widget_mac/accelerated_widget_mac.h View 1 chunk +1 line, -0 lines 0 comments Download
M ui/accelerated_widget_mac/accelerated_widget_mac.mm View 1 12 chunks +22 lines, -11 lines 0 comments Download
M ui/accelerated_widget_mac/io_surface_layer.mm View 1 chunk +2 lines, -1 line 0 comments Download
M ui/accelerated_widget_mac/io_surface_ns_gl_surface.h View 1 3 chunks +19 lines, -3 lines 0 comments Download
M ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm View 1 7 chunks +71 lines, -8 lines 0 comments Download
M ui/accelerated_widget_mac/io_surface_texture.h View 3 chunks +7 lines, -1 line 0 comments Download
M ui/accelerated_widget_mac/io_surface_texture.mm View 2 chunks +8 lines, -7 lines 0 comments Download

Messages

Total messages: 9 (3 generated)
ccameron
This falls in the "horrible and unpredictable bugs" category.
5 years, 6 months ago (2015-06-10 01:09:34 UTC) #2
Andre
LGTM https://codereview.chromium.org/1164363005/diff/1/ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm File ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm (right): https://codereview.chromium.org/1164363005/diff/1/ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm#newcode153 ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm:153: CGLContextObj cgl_context = static_cast<CGLContextObj>( Why do you need ...
5 years, 6 months ago (2015-06-10 05:23:40 UTC) #3
ccameron
Thanks! https://codereview.chromium.org/1164363005/diff/1/ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm File ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm (right): https://codereview.chromium.org/1164363005/diff/1/ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm#newcode153 ui/accelerated_widget_mac/io_surface_ns_gl_surface.mm:153: CGLContextObj cgl_context = static_cast<CGLContextObj>( On 2015/06/10 05:23:39, Andre ...
5 years, 6 months ago (2015-06-10 21:39:51 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1164363005/20001
5 years, 6 months ago (2015-06-10 22:36:28 UTC) #7
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 6 months ago (2015-06-10 22:44:11 UTC) #8
commit-bot: I haz the power
5 years, 6 months ago (2015-06-10 22:45:35 UTC) #9
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/347a77b6fac3ce9d1aa2d2b86bb4ce14583aa7a1
Cr-Commit-Position: refs/heads/master@{#333824}

Powered by Google App Engine
This is Rietveld 408576698