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

Issue 1365563002: Make channel preemption not require view contexts for hookup (Closed)

Created:
5 years, 3 months ago by piman
Modified:
5 years, 2 months ago
Reviewers:
danakj, kenrb, no sievers
CC:
chromium-reviews, mlamouri+watch-content_chromium.org, creis+watch_chromium.org, yusukes+watch_chromium.org, shuchen+watch_chromium.org, nasko+codewatch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, mkwst+moarreviews-renderer_chromium.org, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@wakeup_gpu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make channel preemption not require view contexts for hookup Instead have a single preemption flag on the GpuChannelManager, and make the browser channel always be the one preempting, and the child channels always be the ones being preempted (if --ui-prioritize-in-gpu-process is set). This reflects our current usage, and is much simpler. It means we don't need parent_client_id in GLSurfaceHandle any more, and all the renderer view surfaces are identical, so we don't need their surface ids. BUG=497658 Committed: https://crrev.com/4db52c1398011b124745567b5383572c2f319135 Cr-Commit-Position: refs/heads/master@{#350663}

Patch Set 1 : . #

Total comments: 3

Patch Set 2 : fix mac #

Patch Set 3 : rebase #

Patch Set 4 : fix build and broken rebase #

Total comments: 8

Patch Set 5 : review comments #

Patch Set 6 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+213 lines, -527 lines) Patch
M content/browser/compositor/gpu_process_transport_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 2 chunks +10 lines, -9 lines 0 comments Download
M content/browser/compositor/image_transport_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/test/no_transport_image_transport_factory.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/test/no_transport_image_transport_factory.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/frame_host/render_widget_host_view_child_frame.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/gpu/browser_gpu_channel_host_factory.cc View 2 chunks +6 lines, -2 lines 0 comments Download
M content/browser/gpu/gpu_process_host.h View 6 chunks +2 lines, -14 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 2 3 4 5 9 chunks +13 lines, -31 lines 0 comments Download
M content/browser/gpu/gpu_surface_tracker.h View 3 chunks +1 line, -41 lines 0 comments Download
M content/browser/gpu/gpu_surface_tracker.cc View 5 chunks +4 lines, -33 lines 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/gpu_message_filter.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/gpu_message_filter.cc View 3 chunks +13 lines, -48 lines 0 comments Download
M content/browser/renderer_host/render_view_host_impl.cc View 1 2 3 4 5 2 chunks +0 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 4 chunks +0 lines, -14 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 2 chunks +0 lines, -12 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_base.h View 1 2 3 4 5 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M content/common/gpu/gpu_channel.h View 1 2 3 4 5 6 chunks +3 lines, -7 lines 0 comments Download
M content/common/gpu/gpu_channel.cc View 1 2 3 4 5 9 chunks +21 lines, -48 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.h View 5 chunks +18 lines, -15 lines 0 comments Download
M content/common/gpu/gpu_channel_manager.cc View 1 2 3 4 5 chunks +25 lines, -33 lines 0 comments Download
M content/common/gpu/gpu_channel_manager_unittest.cc View 2 chunks +22 lines, -6 lines 0 comments Download
M content/common/gpu/gpu_channel_test_common.h View 2 chunks +2 lines, -2 lines 0 comments Download
M content/common/gpu/gpu_channel_test_common.cc View 3 chunks +5 lines, -4 lines 0 comments Download
M content/common/gpu/gpu_channel_unittest.cc View 18 chunks +30 lines, -60 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 5 chunks +3 lines, -9 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.cc View 1 2 3 4 9 chunks +9 lines, -31 lines 0 comments Download
M content/common/gpu/gpu_messages.h View 6 chunks +16 lines, -19 lines 0 comments Download
M content/common/gpu/image_transport_surface.h View 1 2 3 4 1 chunk +0 lines, -3 lines 0 comments Download
M content/common/gpu/image_transport_surface.cc View 1 2 3 4 3 chunks +3 lines, -16 lines 0 comments Download
M content/common/gpu/image_transport_surface_android.cc View 1 chunk +1 line, -2 lines 0 comments Download
M content/renderer/render_thread_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/render_widget.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/test/test_render_view_host.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/test/test_render_view_host.cc View 1 chunk +0 lines, -5 lines 0 comments Download
M ui/gfx/native_widget_types.h View 1 3 chunks +4 lines, -13 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 18 (8 generated)
piman
sievers: please review danakj: ui/gfx/native_widget_types.h kenrb: content/common/gpu/gpu_messages.h https://codereview.chromium.org/1365563002/diff/20001/content/browser/gpu/gpu_surface_tracker.h File content/browser/gpu/gpu_surface_tracker.h (left): https://codereview.chromium.org/1365563002/diff/20001/content/browser/gpu/gpu_surface_tracker.h#oldcode43 content/browser/gpu/gpu_surface_tracker.h:43: class SurfaceRef ...
5 years, 3 months ago (2015-09-23 04:50:51 UTC) #3
danakj
ui/gfx LGTM
5 years, 3 months ago (2015-09-23 18:46:37 UTC) #4
kenrb
ipc lgtm
5 years, 3 months ago (2015-09-23 19:11:07 UTC) #5
no sievers
lgtm. this is great. https://codereview.chromium.org/1365563002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/1365563002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc#newcode559 content/browser/compositor/gpu_process_transport_factory.cc:559: #if defined(OS_MACOSX) While you're at ...
5 years, 3 months ago (2015-09-23 21:53:21 UTC) #6
piman
https://codereview.chromium.org/1365563002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc File content/browser/compositor/gpu_process_transport_factory.cc (right): https://codereview.chromium.org/1365563002/diff/80001/content/browser/compositor/gpu_process_transport_factory.cc#newcode559 content/browser/compositor/gpu_process_transport_factory.cc:559: #if defined(OS_MACOSX) On 2015/09/23 21:53:21, sievers wrote: > While ...
5 years, 3 months ago (2015-09-23 23:33:37 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365563002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365563002/100001
5 years, 3 months ago (2015-09-24 01:02:25 UTC) #10
commit-bot: I haz the power
Failed to apply patch for content/common/gpu/gpu_channel_manager.h: While running git apply --index -3 -p1; error: patch ...
5 years, 3 months ago (2015-09-24 03:01:49 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1365563002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1365563002/120001
5 years, 2 months ago (2015-09-24 19:48:12 UTC) #16
commit-bot: I haz the power
Committed patchset #6 (id:120001)
5 years, 2 months ago (2015-09-24 21:12:38 UTC) #17
commit-bot: I haz the power
5 years, 2 months ago (2015-09-24 21:13:44 UTC) #18
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/4db52c1398011b124745567b5383572c2f319135
Cr-Commit-Position: refs/heads/master@{#350663}

Powered by Google App Engine
This is Rietveld 408576698