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

Issue 13097002: Do not create one GL context per CompositingIOSurface (Closed)

Created:
7 years, 9 months ago by ccameron
Modified:
7 years, 8 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, James Su
Visibility:
Public.

Description

Do not create one GL context per CompositingIOSurface Do not create one GL context per CompositingIOSurface, rather, share a single GL context across all CompositingIOSurfaces that are drawing to a given NSWindow (as determined by window number) and have the same window ordering (above or below). This cuts the regression in the ShutdownTests.TwentyTabs* from 81% to 47%. Most of the rest is from the cost of destroying the renderers' GL contexts in the GPU process. BUG=180463 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=192111

Patch Set 1 #

Total comments: 9

Patch Set 2 : Incorporate review feedback #

Patch Set 3 : Minimize diffs #

Patch Set 4 : Resolve against https://codereview.chromium.org/13363002/ #

Total comments: 10

Patch Set 5 : Re-resolve #

Patch Set 6 : More and better comments #

Total comments: 4

Patch Set 7 : Fix pair syntax #

Patch Set 8 : Re-resolve against HEAD #

Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -17 lines) Patch
M content/browser/renderer_host/compositing_iosurface_context_mac.h View 1 2 3 4 5 4 chunks +21 lines, -1 line 0 comments Download
M content/browser/renderer_host/compositing_iosurface_context_mac.mm View 1 2 3 4 5 6 5 chunks +42 lines, -4 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.h View 1 2 3 4 5 4 chunks +14 lines, -5 lines 0 comments Download
M content/browser/renderer_host/compositing_iosurface_mac.mm View 1 2 3 4 5 6 7 4 chunks +28 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 chunk +2 lines, -0 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 6 chunks +16 lines, -4 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
ccameron
This takes care of half of the shutdown regression. https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.mm File content/browser/renderer_host/compositing_iosurface_mac.mm (right): https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.mm#newcode241 content/browser/renderer_host/compositing_iosurface_mac.mm:241: ...
7 years, 9 months ago (2013-03-26 20:52:42 UTC) #1
Avi (use Gerrit)
https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.mm File content/browser/renderer_host/compositing_iosurface_mac.mm (right): https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.mm#newcode241 content/browser/renderer_host/compositing_iosurface_mac.mm:241: if (order == SURFACE_ORDER_BELOW_WINDOW) { For tab web contents, ...
7 years, 9 months ago (2013-03-26 20:59:39 UTC) #2
ccameron
On 2013/03/26 20:59:39, Avi wrote: > https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.mm > File content/browser/renderer_host/compositing_iosurface_mac.mm (right): > > https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.mm#newcode241 > ...
7 years, 9 months ago (2013-03-26 21:05:36 UTC) #3
ccameron
Ping
7 years, 9 months ago (2013-03-28 00:36:57 UTC) #4
Ken Russell (switch to Gerrit)
Sorry for the delay. LGTM with a couple of small issues. https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.h File content/browser/renderer_host/compositing_iosurface_mac.h (right): ...
7 years, 9 months ago (2013-03-28 00:54:59 UTC) #5
ccameron
Thanks!! https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.h File content/browser/renderer_host/compositing_iosurface_mac.h (right): https://codereview.chromium.org/13097002/diff/1/content/browser/renderer_host/compositing_iosurface_mac.h#newcode220 content/browser/renderer_host/compositing_iosurface_mac.h:220: int window_number_; Thanks -- I changed this to ...
7 years, 9 months ago (2013-03-28 19:16: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/13097002/15001
7 years, 9 months ago (2013-03-28 19:17:33 UTC) #7
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/compositing_iosurface_mac.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 9 months ago (2013-03-28 19:17:36 UTC) #8
ccameron
This conflicts horribly with https://codereview.chromium.org/12914002/ and basically needs to be rewritten.
7 years, 9 months ago (2013-03-28 19:41:20 UTC) #9
ccameron
Resolved now (added https://codereview.chromium.org/13363002/ as an intermediate). Adding miu to verify that this work with ...
7 years, 8 months ago (2013-04-01 20:03:53 UTC) #10
Ken Russell (switch to Gerrit)
Still LGTM if it doesn't change substantially once https://codereview.chromium.org/13363002/ lands. https://codereview.chromium.org/13097002/diff/23001/content/browser/renderer_host/compositing_iosurface_mac.h File content/browser/renderer_host/compositing_iosurface_mac.h (right): https://codereview.chromium.org/13097002/diff/23001/content/browser/renderer_host/compositing_iosurface_mac.h#newcode214 ...
7 years, 8 months ago (2013-04-01 20:18:07 UTC) #11
miu
ccameron@, Thanks for looping me in on these changes. I'm pretty sure they will work ...
7 years, 8 months ago (2013-04-01 21:37:37 UTC) #12
ccameron
Thanks!! This is a lot better for the cleanup that it conflicted with. https://codereview.chromium.org/13097002/diff/23001/content/browser/renderer_host/compositing_iosurface_context_mac.h File ...
7 years, 8 months ago (2013-04-01 23:55:49 UTC) #13
miu
lgtm https://codereview.chromium.org/13097002/diff/23002/content/browser/renderer_host/compositing_iosurface_context_mac.mm File content/browser/renderer_host/compositing_iosurface_context_mac.mm (right): https://codereview.chromium.org/13097002/diff/23002/content/browser/renderer_host/compositing_iosurface_context_mac.mm#newcode27 content/browser/renderer_host/compositing_iosurface_context_mac.mm:27: std::pair<int,int> key = std::make_pair( style nit: need space ...
7 years, 8 months ago (2013-04-02 00:08:10 UTC) #14
ccameron
Thanks! https://codereview.chromium.org/13097002/diff/23002/content/browser/renderer_host/compositing_iosurface_context_mac.mm File content/browser/renderer_host/compositing_iosurface_context_mac.mm (right): https://codereview.chromium.org/13097002/diff/23002/content/browser/renderer_host/compositing_iosurface_context_mac.mm#newcode27 content/browser/renderer_host/compositing_iosurface_context_mac.mm:27: std::pair<int,int> key = std::make_pair( On 2013/04/02 00:08:10, Yuri ...
7 years, 8 months ago (2013-04-02 00:49:27 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/13097002/42001
7 years, 8 months ago (2013-04-02 23:46:11 UTC) #16
commit-bot: I haz the power
Failed to apply patch for content/browser/renderer_host/render_widget_host_view_mac.mm: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-02 23:46:13 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ccameron@chromium.org/13097002/48001
7 years, 8 months ago (2013-04-03 16:44:51 UTC) #18
commit-bot: I haz the power
7 years, 8 months ago (2013-04-03 18:59:51 UTC) #19
Message was sent while issue was closed.
Change committed as 192111

Powered by Google App Engine
This is Rietveld 408576698