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

Issue 1963263002: Fix Mac resize, delete more Mac code (Closed)

Created:
4 years, 7 months ago by ccameron
Modified:
4 years, 7 months ago
Reviewers:
piman
CC:
chromium-reviews, rjkroege, yusukes+watch_chromium.org, shuchen+watch_chromium.org, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, nona+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, danakj+watch_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix Mac resize, delete more Mac code Delete content::RenderWidgetResizeHelper. Previously this had two callers, both in content (one for GPU IPCs and one for renderer IPCs). Now this has one caller in content and one in gpu/ipc/client, so change both of these callers to talk to ui::WindowResizeHelperMac. Update GpuChannelHost to forward the IPC GpuCommandBufferMsg_SwapBuffersCompleted to the task runner in ui::WindowResizeHelperMac, so that new frames can be accepted while resizing. This was missed in the previous cleanup patch. Remove SurfaceShouldNotShowFramesAfterSuspendForRecycle because it is no longer needed (it can be accessed directly). Fix its use in GpuBrowserCompositorOutputSurface's OnGpuSwapBuffersCompleted. This patch also accidentally pulled in an extra git cl format, so a few whitespace fixes come in here and there as well. BUG=610596 CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:linux_optional_gpu_tests_rel;tryserver.chromium.mac:mac_optional_gpu_tests_rel;tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/817a0d6803e28e21b260f7c16025bf174e52f395 Cr-Commit-Position: refs/heads/master@{#393032}

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 1

Patch Set 3 : Fix gn #

Patch Set 4 : Fix buidl.gn #

Total comments: 2

Patch Set 5 : Incorporate review feedback #

Total comments: 3

Patch Set 6 : Incorporate review feedback #

Patch Set 7 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+62 lines, -196 lines) Patch
M content/browser/compositor/browser_compositor_output_surface.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/gpu_browser_compositor_output_surface.cc View 1 2 chunks +1 line, -6 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.h View 1 2 chunks +0 lines, -11 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 1 2 3 4 5 6 6 chunks +7 lines, -26 lines 0 comments Download
M content/browser/compositor/image_transport_factory.h View 1 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/offscreen_browser_compositor_output_surface.cc View 1 chunk +0 lines, -9 lines 0 comments Download
M content/browser/compositor/reflector_impl_unittest.cc View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/software_browser_compositor_output_surface.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M content/browser/compositor/test/no_transport_image_transport_factory.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M content/browser/compositor/test/no_transport_image_transport_factory.cc View 1 chunk +0 lines, -8 lines 0 comments Download
M content/browser/gpu/gpu_process_host.cc View 1 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/gpu/gpu_process_host_ui_shim.h View 1 1 chunk +0 lines, -3 lines 0 comments Download
M content/browser/gpu/gpu_surface_tracker.h View 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/compositor_impl_android.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_message_filter.cc View 1 2 3 4 5 6 3 chunks +23 lines, -5 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 chunk +0 lines, -1 line 0 comments Download
D content/browser/renderer_host/render_widget_resize_helper_mac.h View 1 chunk +0 lines, -48 lines 0 comments Download
D content/browser/renderer_host/render_widget_resize_helper_mac.cc View 1 chunk +0 lines, -46 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.h View 1 2 3 4 5 6 3 chunks +8 lines, -0 lines 0 comments Download
M content/common/gpu/client/context_provider_command_buffer.cc View 1 2 3 4 5 6 3 chunks +13 lines, -1 line 0 comments Download
M content/content_browser.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M content/renderer/pepper/pepper_video_encoder_host.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/ppb_graphics_3d_impl.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M gpu/ipc/client/gpu_channel_host.h View 1 2 3 4 5 6 1 chunk +2 lines, -1 line 0 comments Download
M gpu/ipc/client/gpu_channel_host.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h View 1 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 15 (7 generated)
ccameron
On today's topic of Mac resize -- the previous patch forgot to forward the new ...
4 years, 7 months ago (2016-05-10 20:58:52 UTC) #4
piman
https://codereview.chromium.org/1963263002/diff/60001/gpu/ipc/client/gpu_channel_host.cc File gpu/ipc/client/gpu_channel_host.cc (right): https://codereview.chromium.org/1963263002/diff/60001/gpu/ipc/client/gpu_channel_host.cc#newcode459 gpu/ipc/client/gpu_channel_host.cc:459: task_runner = ui::WindowResizeHelperMac::Get()->task_runner(); This is called in the renderer ...
4 years, 7 months ago (2016-05-10 22:24:16 UTC) #6
ccameron
Good point. Moved the OS-specific logic to GpuProcessTransportFactory::EstablishedGpuChannel. Added ContextProviderCommandBuffer::SetDefaultTaskRunner to handle setting the default ...
4 years, 7 months ago (2016-05-11 06:23:01 UTC) #7
piman
LGTM+nits. Thanks! https://codereview.chromium.org/1963263002/diff/30026/content/common/gpu/client/context_provider_command_buffer.cc File content/common/gpu/client/context_provider_command_buffer.cc (right): https://codereview.chromium.org/1963263002/diff/30026/content/common/gpu/client/context_provider_command_buffer.cc#newcode153 content/common/gpu/client/context_provider_command_buffer.cc:153: active_url_, gpu_preference_, task_runner); nit: std::move(task_runner) https://codereview.chromium.org/1963263002/diff/30026/content/common/gpu/client/context_provider_command_buffer.cc#newcode292 content/common/gpu/client/context_provider_command_buffer.cc:292: ...
4 years, 7 months ago (2016-05-11 17:06:15 UTC) #8
ccameron
Thanks!
4 years, 7 months ago (2016-05-11 17:59:47 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1963263002/110001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1963263002/110001
4 years, 7 months ago (2016-05-11 18:00:14 UTC) #12
commit-bot: I haz the power
Committed patchset #7 (id:110001)
4 years, 7 months ago (2016-05-11 19:53:06 UTC) #13
commit-bot: I haz the power
4 years, 7 months ago (2016-05-11 19:54:57 UTC) #15
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/817a0d6803e28e21b260f7c16025bf174e52f395
Cr-Commit-Position: refs/heads/master@{#393032}

Powered by Google App Engine
This is Rietveld 408576698