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

Issue 132233041: Add gpu::MailboxHolder to hold state for a gpu::Mailbox (Closed)

Created:
6 years, 11 months ago by sheu
Modified:
6 years, 10 months ago
Reviewers:
danakj
CC:
chromium-reviews, joi+watch-content_chromium.org, penghuang+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, fischman+watch_chromium.org, jam, mcasas+watch_chromium.org, yukishiino+watch_chromium.org, sievers+watch_chromium.org, jbauman+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, kalyank, piman+watch_chromium.org, cc-bugs_chromium.org, James Su, wjia+watch_chromium.org, danakj+watch_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Add gpu::MailboxHolder to hold state for a gpu::Mailbox gpu::Mailbox by itself can hold only a texture id, but in common usage it comes with texture target and syncpoint information for cross-context sharing. To reduce repetition of this pattern, gpu::MailboxHolder holds: * a gpu::Mailbox * a GL texture target * a syncpoint index Refactor other classes to use a gpu::MailboxHolder instead of separate gpu::Mailbox and associated state. Syncpoints are created with uint32 indices; make sure all uses of syncpoints use the appropriate type. BUG=None TEST=local build, unittests on CrOS snow, desktop Linux TBR=piman@chromium.org, enn@chromium.orge, cevans@chromium.org, scherkus@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=248612

Patch Set 1 : 3e3051b7 Rebased version of previously reverted CL #

Patch Set 2 : 8504714a Ownership for callback. #

Patch Set 3 : dfffd4f8 Rebase. #

Patch Set 4 : ff7262fa Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+593 lines, -564 lines) Patch
M cc/DEPS View 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/delegated_frame_provider_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/layers/texture_layer.h View 4 chunks +15 lines, -14 lines 0 comments Download
M cc/layers/texture_layer.cc View 5 chunks +27 lines, -23 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 14 chunks +54 lines, -36 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/release_callback.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 8 chunks +32 lines, -27 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 40 chunks +111 lines, -91 lines 0 comments Download
M cc/resources/single_release_callback.h View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/single_release_callback.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/texture_mailbox.h View 1 2 3 2 chunks +13 lines, -25 lines 0 comments Download
M cc/resources/texture_mailbox.cc View 1 2 3 1 chunk +16 lines, -58 lines 0 comments Download
M cc/resources/texture_mailbox_deleter.h View 1 chunk +3 lines, -4 lines 0 comments Download
M cc/resources/texture_mailbox_deleter.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/transferable_resource.h View 2 chunks +2 lines, -4 lines 0 comments Download
M cc/resources/transferable_resource.cc View 2 chunks +1 line, -3 lines 0 comments Download
M cc/resources/video_resource_updater.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/video_resource_updater.cc View 1 2 3 5 chunks +9 lines, -11 lines 0 comments Download
M cc/test/fake_delegated_renderer_layer_impl.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/test/layer_tree_pixel_test.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_perftest.cc View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 2 chunks +19 lines, -25 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_unittest_delegated.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M content/browser/compositor/owned_mailbox.h View 3 chunks +5 lines, -6 lines 0 comments Download
M content/browser/compositor/owned_mailbox.cc View 2 chunks +5 lines, -6 lines 0 comments Download
M content/browser/renderer_host/media/desktop_capture_device_aura.cc View 1 2 3 1 chunk +9 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 chunks +11 lines, -9 lines 0 comments Download
M content/browser/renderer_host/software_frame_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/common/cc_messages.h View 1 2 3 1 chunk +1 line, -3 lines 0 comments Download
M content/common/cc_messages_unittest.cc View 2 chunks +12 lines, -10 lines 0 comments Download
M content/common/gpu/client/gl_helper.h View 1 2 3 2 chunks +5 lines, -4 lines 0 comments Download
M content/common/gpu/client/gl_helper.cc View 1 2 3 2 chunks +6 lines, -8 lines 0 comments Download
M content/renderer/child_frame_compositing_helper.cc View 1 2 3 3 chunks +7 lines, -5 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.h View 1 2 3 2 chunks +9 lines, -5 lines 0 comments Download
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 3 4 chunks +14 lines, -18 lines 0 comments Download
M content/renderer/media/rtc_video_decoder.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M content/renderer/media/rtc_video_decoder.cc View 1 5 chunks +11 lines, -13 lines 0 comments Download
M content/renderer/media/webmediaplayer_impl.cc View 1 2 3 3 chunks +6 lines, -6 lines 0 comments Download
M content/renderer/pepper/pepper_graphics_2d_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/pepper/pepper_plugin_instance_impl.cc View 1 2 3 3 chunks +3 lines, -2 lines 0 comments Download
A gpu/command_buffer/common/mailbox_holder.h View 1 chunk +28 lines, -0 lines 0 comments Download
A gpu/command_buffer/common/mailbox_holder.cc View 1 chunk +18 lines, -0 lines 0 comments Download
M gpu/command_buffer_common.gypi View 1 chunk +6 lines, -4 lines 0 comments Download
M gpu/ipc/gpu_command_buffer_traits.h View 2 chunks +9 lines, -0 lines 0 comments Download
M gpu/ipc/gpu_command_buffer_traits.cc View 2 chunks +21 lines, -1 line 0 comments Download
M media/base/video_frame.h View 1 6 chunks +20 lines, -43 lines 0 comments Download
M media/base/video_frame.cc View 1 6 chunks +12 lines, -28 lines 0 comments Download
M media/base/video_frame_unittest.cc View 1 4 chunks +27 lines, -33 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 5 chunks +11 lines, -12 lines 0 comments Download
M webkit/renderer/compositor_bindings/web_external_texture_layer_impl.cc View 2 chunks +6 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
sheu
danakj@: PTAL at this again. The relevant diff is the first patch against the second, ...
6 years, 11 months ago (2014-01-28 00:31:05 UTC) #1
danakj
Can you explain how the scoped_ptr solves the crash? Were things holding onto the MailboxHolder* ...
6 years, 10 months ago (2014-01-29 20:30:47 UTC) #2
sheu
On 2014/01/29 20:30:47, danakj wrote: > Can you explain how the scoped_ptr solves the crash? ...
6 years, 10 months ago (2014-01-29 20:34:09 UTC) #3
danakj
On 2014/01/29 20:34:09, sheu wrote: > On 2014/01/29 20:30:47, danakj wrote: > > Can you ...
6 years, 10 months ago (2014-01-29 20:40:08 UTC) #4
sheu
This is a revert of a revert essentially. Sending to CQ with TBRs.
6 years, 10 months ago (2014-01-29 22:30:18 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/132233041/260001
6 years, 10 months ago (2014-01-29 22:36:39 UTC) #6
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=218285
6 years, 10 months ago (2014-01-29 23:04:01 UTC) #7
sheu
The CQ bit was checked by sheu@chromium.org
6 years, 10 months ago (2014-02-03 21:02:29 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/sheu@chromium.org/132233041/550001
6 years, 10 months ago (2014-02-03 21:03:31 UTC) #9
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 23:39:53 UTC) #10
commit-bot: I haz the power
Change committed as 248612
6 years, 10 months ago (2014-02-03 23:39:55 UTC) #11
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 23:39:55 UTC) #12
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 23:39:55 UTC) #13
commit-bot: I haz the power
CQ bit was unchecked on CL. Ignoring.
6 years, 10 months ago (2014-02-03 23:39:56 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-03 23:40:00 UTC) #15
Message was sent while issue was closed.
CQ bit was unchecked on CL. Ignoring.

Powered by Google App Engine
This is Rietveld 408576698