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

Issue 2061993003: Pass responsibility for IOSurface-texture reuse to the gpu process. (Closed)

Created:
4 years, 6 months ago by erikchen
Modified:
4 years, 6 months ago
Reviewers:
ccameron, dcheng, piman
CC:
chromium-reviews, Ian Vollick, jam, sievers+watch_chromium.org, jbauman+watch_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, danakj+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@temp85_query_in_use
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Pass responsibility for IOSurface-texture reuse to the gpu process. The GLRenderer uses the new command buffer function glScheduleCALayerInUseQueryCHROMIUM to determine whether textures are still in use by the system compositor. This means that GpuMemoryBufferIds no longer need to be plumbed through to the browser process. BUG=608026 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/1ed6908a7a46dde512db953c77e343a63f41630f Cr-Commit-Position: refs/heads/master@{#400732}

Patch Set 1 #

Patch Set 2 : Compile errors. #

Total comments: 4

Patch Set 3 : Rebase and comments from dcheng. #

Patch Set 4 : Comments from dcheng, correctly this time. #

Patch Set 5 : ... #

Patch Set 6 : Compile error. #

Patch Set 7 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+189 lines, -49 lines) Patch
M cc/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M cc/output/direct_renderer.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.h View 1 2 3 4 5 6 2 chunks +6 lines, -3 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 4 5 6 2 chunks +25 lines, -20 lines 0 comments Download
M cc/output/output_surface.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M cc/output/output_surface.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M cc/output/output_surface_client.h View 2 chunks +3 lines, -0 lines 0 comments Download
M cc/output/overlay_unittest.cc View 3 chunks +22 lines, -5 lines 0 comments Download
M cc/output/renderer_settings.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/output/renderer_settings.cc View 4 chunks +7 lines, -7 lines 0 comments Download
M cc/output/renderer_settings_unittest.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M cc/proto/renderer_settings.proto View 1 chunk +1 line, -1 line 0 comments Download
M cc/surfaces/display.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M cc/surfaces/display.cc View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
M cc/test/fake_output_surface_client.h View 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M content/browser/compositor/gpu_output_surface_mac.mm View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/BUILD.gn View 1 chunk +1 line, -0 lines 0 comments Download
A gpu/command_buffer/common/texture_in_use_response.h View 1 chunk +27 lines, -0 lines 0 comments Download
M gpu/command_buffer_common.gypi View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/client/command_buffer_proxy_impl.cc View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/ipc/client/gpu_process_hosted_ca_layer_tree_params.h View 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_command_buffer_traits.h View 2 chunks +12 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_command_buffer_traits.cc View 2 chunks +33 lines, -0 lines 0 comments Download
M gpu/ipc/common/gpu_messages.h View 2 chunks +2 lines, -0 lines 0 comments Download
M gpu/ipc/service/image_transport_surface_overlay_mac.mm View 1 2 1 chunk +7 lines, -9 lines 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 39 (20 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061993003/1
4 years, 6 months ago (2016-06-14 21:18:23 UTC) #4
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/152872) chromeos_x86-generic_chromium_compile_only_ng on ...
4 years, 6 months ago (2016-06-14 21:33:15 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061993003/20001
4 years, 6 months ago (2016-06-14 22:43:28 UTC) #8
erikchen
ccameron: Please review.
4 years, 6 months ago (2016-06-14 23:26:05 UTC) #13
ccameron
lgtm
4 years, 6 months ago (2016-06-14 23:35:49 UTC) #14
erikchen
piman: Please review. dcheng: Please review gpu/ipc/common/gpu_messages.h.
4 years, 6 months ago (2016-06-14 23:38:03 UTC) #16
piman
lgtm https://codereview.chromium.org/2061993003/diff/20001/gpu/ipc/common/gpu_command_buffer_traits.h File gpu/ipc/common/gpu_command_buffer_traits.h (right): https://codereview.chromium.org/2061993003/diff/20001/gpu/ipc/common/gpu_command_buffer_traits.h#newcode47 gpu/ipc/common/gpu_command_buffer_traits.h:47: struct GPU_EXPORT ParamTraits<gpu::TextureInUseResponse> { nit: could this be ...
4 years, 6 months ago (2016-06-15 00:37:47 UTC) #17
erikchen
https://codereview.chromium.org/2061993003/diff/20001/gpu/ipc/common/gpu_command_buffer_traits.h File gpu/ipc/common/gpu_command_buffer_traits.h (right): https://codereview.chromium.org/2061993003/diff/20001/gpu/ipc/common/gpu_command_buffer_traits.h#newcode47 gpu/ipc/common/gpu_command_buffer_traits.h:47: struct GPU_EXPORT ParamTraits<gpu::TextureInUseResponse> { On 2016/06/15 00:37:47, piman wrote: ...
4 years, 6 months ago (2016-06-15 00:44:01 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios-device on tryserver.chromium.mac (JOB_TIMED_OUT, no build URL) ...
4 years, 6 months ago (2016-06-15 00:45:24 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061993003/20001
4 years, 6 months ago (2016-06-15 01:34:54 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-15 02:50:36 UTC) #24
dcheng
Change LGTM. Out of curiosity, what happens if a rogue GPU process starts claiming that ...
4 years, 6 months ago (2016-06-15 08:47:21 UTC) #25
erikchen
On 2016/06/15 08:47:21, dcheng wrote: > Change LGTM. Out of curiosity, what happens if a ...
4 years, 6 months ago (2016-06-20 16:16:18 UTC) #26
erikchen
https://codereview.chromium.org/2061993003/diff/20001/cc/output/gl_renderer.cc File cc/output/gl_renderer.cc (right): https://codereview.chromium.org/2061993003/diff/20001/cc/output/gl_renderer.cc#newcode2746 cc/output/gl_renderer.cc:2746: auto it = swapped_and_acked_overlay_resources_.find(response.texture); On 2016/06/15 08:47:21, dcheng wrote: ...
4 years, 6 months ago (2016-06-20 16:16:32 UTC) #27
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061993003/100001
4 years, 6 months ago (2016-06-20 16:16:52 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: mac_chromium_gn_rel on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_gn_rel/builds/129777)
4 years, 6 months ago (2016-06-20 16:56:17 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2061993003/120001
4 years, 6 months ago (2016-06-20 17:11:05 UTC) #35
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 6 months ago (2016-06-20 18:27:41 UTC) #37
commit-bot: I haz the power
4 years, 6 months ago (2016-06-20 18:29:32 UTC) #39
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/1ed6908a7a46dde512db953c77e343a63f41630f
Cr-Commit-Position: refs/heads/master@{#400732}

Powered by Google App Engine
This is Rietveld 408576698