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

Issue 231863002: Mac: Recreate browser-side GL contexts on GPU switch (Closed)

Created:
6 years, 8 months ago by ccameron
Modified:
6 years, 8 months ago
Reviewers:
Zhenyao Mo
CC:
chromium-reviews, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, jam, penghuang+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, James Su, miu+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Mac: Recreate browser-side GL contexts on GPU switch When a GPU switch is detected, poison all browser-side GL contexts, which will cause them to be recreated. Make CompositorSwapBuffers destroy and recreate the GL context if it has been poisoned. Ensure that the CALayer for the old content remain in place until the new layer is in place and correctly sized, to avoid flickering. BUG=361493 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262901

Patch Set 1 #

Patch Set 2 : Add comments #

Patch Set 3 : Remove prototype #

Total comments: 8

Patch Set 4 : Incorporate review feedback #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+57 lines, -15 lines) Patch
M content/browser/renderer_host/compositing_iosurface_context_mac.h View 1 2 4 chunks +7 lines, -2 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_context_mac.mm View 1 2 3 3 chunks +12 lines, -0 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_layer_mac.mm View 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 chunk +8 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 6 chunks +30 lines, -7 lines 1 comment Download

Messages

Total messages: 12 (0 generated)
ccameron
ptal https://codereview.chromium.org/231863002/diff/40001/content/browser/renderer_host/compositing_iosurface_layer_mac.mm File content/browser/renderer_host/compositing_iosurface_layer_mac.mm (left): https://codereview.chromium.org/231863002/diff/40001/content/browser/renderer_host/compositing_iosurface_layer_mac.mm#oldcode47 content/browser/renderer_host/compositing_iosurface_layer_mac.mm:47: [self removeFromSuperlayer]; This was always done by the ...
6 years, 8 months ago (2014-04-09 22:06:01 UTC) #1
Zhenyao Mo
In general this looks good, but I am not very familiar with the code this ...
6 years, 8 months ago (2014-04-09 22:24:23 UTC) #2
ccameron
On 2014/04/09 22:24:23, Zhenyao Mo wrote: > In general this looks good, but I am ...
6 years, 8 months ago (2014-04-09 22:35:41 UTC) #3
ccameron
> If you look at GpuDataManagerImplPrivate::HandleGpuSwitch(), there is logic > detecting whether truly it's a ...
6 years, 8 months ago (2014-04-09 22:37:27 UTC) #4
Zhenyao Mo
LGTM https://codereview.chromium.org/231863002/diff/60001/content/browser/renderer_host/render_widget_host_view_mac.mm File content/browser/renderer_host/render_widget_host_view_mac.mm (right): https://codereview.chromium.org/231863002/diff/60001/content/browser/renderer_host/render_widget_host_view_mac.mm#newcode591 content/browser/renderer_host/render_widget_host_view_mac.mm:591: [compositing_iosurface_layer_ removeFromSuperlayer]; nit: this could call the helper ...
6 years, 8 months ago (2014-04-09 22:47:24 UTC) #5
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 8 months ago (2014-04-09 23:15:15 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/231863002/60001
6 years, 8 months ago (2014-04-09 23:16:05 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-09 23:54:20 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_clang_dbg
6 years, 8 months ago (2014-04-09 23:54:21 UTC) #9
ccameron
The CQ bit was checked by ccameron@chromium.org
6 years, 8 months ago (2014-04-09 23:54:38 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/231863002/60001
6 years, 8 months ago (2014-04-09 23:55:43 UTC) #11
commit-bot: I haz the power
6 years, 8 months ago (2014-04-10 02:18:35 UTC) #12
Message was sent while issue was closed.
Change committed as 262901

Powered by Google App Engine
This is Rietveld 408576698