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

Issue 228083002: Make ReflectorImpl use mailboxes (Closed)

Created:
6 years, 8 months ago by piman
Modified:
6 years, 8 months ago
Reviewers:
danakj, oshima, sky
CC:
chromium-reviews, ben+aura_chromium.org, yusukes+watch_chromium.org, yukishiino+watch_chromium.org, Ian Vollick, tfarina, ben+views_chromium.org, jam, penghuang+watch_chromium.org, sadrul, 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, cc-bugs_chromium.org, miu+watch_chromium.org
Visibility:
Public.

Description

Make ReflectorImpl use mailboxes - fixes ui::Layer::SetTextureMailbox to not be hard-coded for software frames. - adds a ui::Layer::SetTextureSize to update the size without sending a new mailbox (since it doesn't change). - entirely removes ui::Layer::SetExternalTexture and ui::Texture, and derived classes. - significantly changes the ReflectorImpl implementation: * an OwnedMailbox is created on the main thread, using the shared main thread context. * the mailbox is passed to the impl thread, that creates a texture out of it with the OutputSurface context, and does operations on that. * the mailbox is passed to the layer. * if the OutputSurface is recreated (assuming, after a lost context), the OwnedMailbox is recreated, and passed to the impl side again, together with the new surface. * the OwnedMailbox takes care of deleting the texture, whether because of a lost context, or when the ReflectorImpl is shut down. BUG=333408 R=danakj@chromium.org, oshima@chromium.org, sky@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=262836

Patch Set 1 #

Total comments: 24

Patch Set 2 : Address review comments #

Patch Set 3 : rebase #

Total comments: 2

Patch Set 4 : review comments #

Patch Set 5 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -428 lines) Patch
M content/browser/compositor/browser_compositor_output_surface.h View 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/compositor/browser_compositor_output_surface.cc View 2 chunks +4 lines, -8 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/compositor/gpu_process_transport_factory.cc View 4 chunks +0 lines, -67 lines 0 comments Download
M content/browser/compositor/image_transport_factory.h View 1 chunk +0 lines, -6 lines 0 comments Download
M content/browser/compositor/image_transport_factory_browsertest.cc View 1 4 chunks +8 lines, -9 lines 0 comments Download
M content/browser/compositor/no_transport_image_transport_factory.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/compositor/no_transport_image_transport_factory.cc View 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/compositor/owned_mailbox.h View 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/compositor/reflector_impl.h View 1 2 3 6 chunks +40 lines, -31 lines 0 comments Download
M content/browser/compositor/reflector_impl.cc View 1 2 3 2 chunks +136 lines, -107 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 chunk +0 lines, -4 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 1 chunk +0 lines, -4 lines 0 comments Download
M ui/aura/bench/bench_main.cc View 1 5 chunks +40 lines, -40 lines 0 comments Download
M ui/compositor/compositor.h View 1 chunk +0 lines, -33 lines 0 comments Download
M ui/compositor/compositor.cc View 1 chunk +0 lines, -13 lines 0 comments Download
M ui/compositor/layer.h View 4 chunks +9 lines, -18 lines 0 comments Download
M ui/compositor/layer.cc View 1 6 chunks +35 lines, -56 lines 0 comments Download
M ui/compositor/layer_owner_delegate.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/compositor/layer_unittest.cc View 1 4 chunks +29 lines, -14 lines 0 comments Download
M ui/views/view.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 10 (0 generated)
piman
This is on top of https://codereview.chromium.org/227683006/ danakj: please review the overall CL oshima: please review ...
6 years, 8 months ago (2014-04-08 05:02:25 UTC) #1
sky
ui/aura/bench/bench_main.cc and ui/views/view.cc LGTM
6 years, 8 months ago (2014-04-08 15:33:46 UTC) #2
oshima
reflector_impl lgtm
6 years, 8 months ago (2014-04-08 15:57:24 UTC) #3
danakj
https://codereview.chromium.org/228083002/diff/1/content/browser/compositor/reflector_impl.cc File content/browser/compositor/reflector_impl.cc (right): https://codereview.chromium.org/228083002/diff/1/content/browser/compositor/reflector_impl.cc#newcode174 content/browser/compositor/reflector_impl.cc:174: main_thread_mailbox_->mailbox().IsZero()) I'm not sure where this method is all ...
6 years, 8 months ago (2014-04-08 16:08:00 UTC) #4
piman
(PS2 has fixes, PS3 is rebase) https://codereview.chromium.org/228083002/diff/1/content/browser/compositor/reflector_impl.cc File content/browser/compositor/reflector_impl.cc (right): https://codereview.chromium.org/228083002/diff/1/content/browser/compositor/reflector_impl.cc#newcode174 content/browser/compositor/reflector_impl.cc:174: main_thread_mailbox_->mailbox().IsZero()) On 2014/04/08 ...
6 years, 8 months ago (2014-04-08 23:17:46 UTC) #5
danakj
LGTM, thanks! https://codereview.chromium.org/228083002/diff/40001/content/browser/compositor/reflector_impl.h File content/browser/compositor/reflector_impl.h (right): https://codereview.chromium.org/228083002/diff/40001/content/browser/compositor/reflector_impl.h#newcode126 content/browser/compositor/reflector_impl.h:126: ImplThreadData impl_; name this impl_unsafe_ or something, ...
6 years, 8 months ago (2014-04-09 17:30:00 UTC) #6
piman
The CQ bit was checked by piman@chromium.org
6 years, 8 months ago (2014-04-09 20:09:06 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/piman@chromium.org/228083002/70001
6 years, 8 months ago (2014-04-09 20:09:25 UTC) #8
piman
https://codereview.chromium.org/228083002/diff/40001/content/browser/compositor/reflector_impl.h File content/browser/compositor/reflector_impl.h (right): https://codereview.chromium.org/228083002/diff/40001/content/browser/compositor/reflector_impl.h#newcode126 content/browser/compositor/reflector_impl.h:126: ImplThreadData impl_; On 2014/04/09 17:30:00, danakj wrote: > name ...
6 years, 8 months ago (2014-04-09 22:14:38 UTC) #9
piman
6 years, 8 months ago (2014-04-09 22:15:02 UTC) #10
Message was sent while issue was closed.
Committed patchset #5 manually as r262836 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698