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

Issue 12383042: Switch all contexts in a share group to be on the same screen as the window they present to. (Closed)

Created:
7 years, 9 months ago by jbauman
Modified:
7 years, 9 months ago
CC:
chromium-reviews, yusukes+watch_chromium.org, jam, penghuang+watch_chromium.org, sail+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, apatrick_chromium, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Switch all contexts in a share group to be on the same screen as the window they present to. When OS X switches GPUs, some contexts that were created beforehand and aren't associated with an NSView can be left behind on the old GPU, which will cause problems when other contexts attempt to share textures with them. To fix this, track what renderer is being used to present to the screen, transmit that to the IOSurfaceImageTransportSurface in the GPU process, and change every context in the same share group to use that renderer. BUG=174149 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=186388

Patch Set 1 #

Total comments: 8

Patch Set 2 : rename to renderer id #

Patch Set 3 : #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -26 lines) Patch
M content/browser/renderer_host/compositing_iosurface_mac.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M content/common/gpu/image_transport_surface_mac.cc View 1 1 chunk +3 lines, -1 line 0 comments Download
M ui/gl/gl_context_cgl.h View 1 1 chunk +3 lines, -0 lines 0 comments Download
M ui/gl/gl_context_cgl.cc View 1 3 chunks +69 lines, -24 lines 0 comments Download
M ui/gl/gl_share_group.h View 1 2 chunks +11 lines, -0 lines 0 comments Download
M ui/gl/gl_share_group.cc View 1 2 chunks +15 lines, -1 line 0 comments Download

Messages

Total messages: 11 (0 generated)
jbauman
7 years, 9 months ago (2013-03-01 02:47:22 UTC) #1
greggman
I'm gonna defer to Ken as he has a lot more experience with mac stuff ...
7 years, 9 months ago (2013-03-01 03:06:41 UTC) #2
Ken Russell (switch to Gerrit)
LGTM The logic all looks good. Would like to see a small renaming of the ...
7 years, 9 months ago (2013-03-01 22:00:58 UTC) #3
jbauman
https://codereview.chromium.org/12383042/diff/1/content/browser/renderer_host/compositing_iosurface_mac.h File content/browser/renderer_host/compositing_iosurface_mac.h (right): https://codereview.chromium.org/12383042/diff/1/content/browser/renderer_host/compositing_iosurface_mac.h#newcode53 content/browser/renderer_host/compositing_iosurface_mac.h:53: // Get the CGL renderer currently associated with this ...
7 years, 9 months ago (2013-03-02 03:52:22 UTC) #4
jbauman
Adding thakis@ for content/browser/renderer_host/*mac* OWNERS review, and jschuh@ to rubber-stamp the trivial IPC change.
7 years, 9 months ago (2013-03-02 03:54:27 UTC) #5
jschuh
Doesn't seem to have a security impact, so lgtm for ipc.
7 years, 9 months ago (2013-03-02 18:46:31 UTC) #6
Nico
lgtm. kbr should be an owner for content/browser/renderer_host/*mac* too.
7 years, 9 months ago (2013-03-04 08:39:33 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/12383042/3002
7 years, 9 months ago (2013-03-05 01:41:23 UTC) #8
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=118219
7 years, 9 months ago (2013-03-05 06:45:25 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jbauman@chromium.org/12383042/20001
7 years, 9 months ago (2013-03-06 04:15:36 UTC) #10
commit-bot: I haz the power
7 years, 9 months ago (2013-03-06 09:31:38 UTC) #11
Message was sent while issue was closed.
Change committed as 186388

Powered by Google App Engine
This is Rietveld 408576698