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

Issue 15001027: [Aura] Added Support for rendering software compositor frames as cc::TextureLayers. (Closed)

Created:
7 years, 7 months ago by slavi
Modified:
7 years, 6 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, apatrick_chromium
Visibility:
Public.

Description

[Aura] Added Support for rendering software compositor frames as cc::TextureLayers through cc::TextureMailbox. BUG=161008 R=piman TBR=jschuh,ben Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=205010

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Patch Set 9 : #

Patch Set 10 : #

Patch Set 11 : Rebased. #

Patch Set 12 : Correct damage tracking for out-of-order ACKed buffers. #

Patch Set 13 : Rebased. #

Patch Set 14 : #

Patch Set 15 : #

Patch Set 16 : Fixed DuplicateHandle on Windows. #

Total comments: 32

Patch Set 17 : Addressing notes. #

Patch Set 18 : #

Patch Set 19 : #

Total comments: 30

Patch Set 20 : More changes from the notes. #

Total comments: 6

Patch Set 21 : Some more notes. #

Patch Set 22 : Fixed potential file descriptor leakeage when the tree doesn't commit before receiving new frame. #

Patch Set 23 : #

Patch Set 24 : Proper handling of shared mem mailboxes in aura::Window::RecreateLayer. #

Patch Set 25 : Fixed cc_unittests #

Patch Set 26 : #

Patch Set 27 : Component builds. #

Patch Set 28 : Win build. #

Patch Set 29 : Clang component build fix. #

Patch Set 30 : Rebased. #

Total comments: 30

Patch Set 31 : More notes. #

Patch Set 32 : Even more notes. #

Patch Set 33 : TextureLayer with shared_mem mailbox test. #

Patch Set 34 : Removed SharedMemory::DuplicateHandle. #

Total comments: 24

Patch Set 35 : Bells and whistles. #

Patch Set 36 : Added CreateResourceFromTextureMailbox test. #

Patch Set 37 : Another test. #

Patch Set 38 : Passed(&foo) instead for Passed(foo.Pass()). #

Unified diffs Side-by-side diffs Delta from patch set Stats (+612 lines, -283 lines) Patch
M cc/DEPS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -1 line 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/texture_layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/texture_layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 5 chunks +24 lines, -18 lines 0 comments Download
M cc/layers/texture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +3 lines, -2 lines 0 comments Download
M cc/layers/texture_layer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 5 chunks +29 lines, -1 line 0 comments Download
M cc/output/compositor_frame_ack.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +1 line, -2 lines 0 comments Download
M cc/output/compositor_frame_ack.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +2 lines, -1 line 0 comments Download
M cc/output/software_frame_data.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +3 lines, -3 lines 0 comments Download
M cc/output/software_frame_data.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M cc/output/software_output_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 3 chunks +2 lines, -2 lines 0 comments Download
M cc/output/software_output_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 2 chunks +3 lines, -2 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 10 chunks +58 lines, -33 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 2 chunks +66 lines, -0 lines 0 comments Download
M cc/resources/texture_mailbox.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3 chunks +23 lines, -4 lines 0 comments Download
M cc/resources/texture_mailbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 3 chunks +57 lines, -23 lines 0 comments Download
M content/browser/android/in_process/synchronous_compositor_output_surface.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 3 chunks +4 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_aura.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 7 chunks +60 lines, -68 lines 0 comments Download
M content/common/cc_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 1 chunk +2 lines, -1 line 0 comments Download
M content/common/cc_messages.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 3 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/gpu_command_buffer_stub.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/gpu_messages.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 1 chunk +0 lines, -1 line 0 comments Download
M content/common/gpu/image_transport_surface.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 1 chunk +0 lines, -1 line 0 comments Download
M content/renderer/gpu/compositor_software_output_device.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 2 chunks +43 lines, -18 lines 0 comments Download
M content/renderer/gpu/compositor_software_output_device.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 4 chunks +131 lines, -66 lines 0 comments Download
M gpu/command_buffer/common/mailbox.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/common/mailbox.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +4 lines, -0 lines 0 comments Download
M ui/aura/aura.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 1 chunk +2 lines, -0 lines 0 comments Download
M ui/aura/window.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 1 chunk +0 lines, -3 lines 0 comments Download
M ui/aura/window.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 4 chunks +31 lines, -5 lines 0 comments Download
M ui/compositor/layer.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 3 chunks +12 lines, -0 lines 0 comments Download
M ui/compositor/layer.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 4 chunks +42 lines, -6 lines 0 comments Download

Messages

Total messages: 20 (0 generated)
slavi
This is still WIP patch and I would like to get some early reviewer's feedback. ...
7 years, 7 months ago (2013-05-21 21:38:29 UTC) #1
danakj
Very cool! :) Some thoughts on cleaning up the CL and making things more consistent ...
7 years, 7 months ago (2013-05-23 15:34:32 UTC) #2
slavi
https://codereview.chromium.org/15001027/diff/177001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/15001027/diff/177001/cc/layers/texture_layer.cc#newcode194 cc/layers/texture_layer.cc:194: context_lost_ = client_->Context3d() && On 2013/05/23 15:34:32, danakj wrote: ...
7 years, 6 months ago (2013-05-28 18:55:13 UTC) #3
piman
https://codereview.chromium.org/15001027/diff/221001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/15001027/diff/221001/cc/layers/texture_layer.cc#newcode29 cc/layers/texture_layer.cc:29: if (!callback.is_null()) nit: braces needed. I'm not sure that ...
7 years, 6 months ago (2013-05-28 20:58:57 UTC) #4
slavi
https://codereview.chromium.org/15001027/diff/221001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/15001027/diff/221001/cc/layers/texture_layer.cc#newcode29 cc/layers/texture_layer.cc:29: if (!callback.is_null()) On 2013/05/28 20:58:57, piman wrote: > nit: ...
7 years, 6 months ago (2013-05-29 18:31:47 UTC) #5
piman
https://codereview.chromium.org/15001027/diff/156002/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/15001027/diff/156002/cc/resources/resource_provider.cc#newcode290 cc/resources/resource_provider.cc:290: } else if (mailbox.IsSharedMemory()) { the second if is ...
7 years, 6 months ago (2013-05-29 20:00:10 UTC) #6
slavi
I think it's ready for landing. PTAL. https://codereview.chromium.org/15001027/diff/156002/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/15001027/diff/156002/cc/resources/resource_provider.cc#newcode290 cc/resources/resource_provider.cc:290: } else ...
7 years, 6 months ago (2013-06-03 22:14:16 UTC) #7
piman
Could we also have tests for the new features in cc? In particular: - callback ...
7 years, 6 months ago (2013-06-05 00:30:55 UTC) #8
slavi
https://codereview.chromium.org/15001027/diff/234003/base/memory/shared_memory_posix.cc File base/memory/shared_memory_posix.cc (right): https://codereview.chromium.org/15001027/diff/234003/base/memory/shared_memory_posix.cc#newcode106 base/memory/shared_memory_posix.cc:106: result.fd = dup(handle.fd); On 2013/06/05 00:30:55, piman wrote: > ...
7 years, 6 months ago (2013-06-06 23:02:46 UTC) #9
piman
I would also like to see tests for the ResourceProvider features: - create a resource ...
7 years, 6 months ago (2013-06-07 01:26:27 UTC) #10
danakj
https://codereview.chromium.org/15001027/diff/398001/cc/layers/texture_layer_impl.h File cc/layers/texture_layer_impl.h (right): https://codereview.chromium.org/15001027/diff/398001/cc/layers/texture_layer_impl.h#newcode71 cc/layers/texture_layer_impl.h:71: bool uses_mailbox_; nit: no need to move this https://codereview.chromium.org/15001027/diff/398001/cc/resources/resource_provider.cc ...
7 years, 6 months ago (2013-06-07 14:56:42 UTC) #11
slavi
https://codereview.chromium.org/15001027/diff/398001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/15001027/diff/398001/cc/layers/texture_layer.cc#newcode151 cc/layers/texture_layer.cc:151: mailbox.IsSharedMemory() || On 2013/06/07 01:26:28, piman wrote: > In ...
7 years, 6 months ago (2013-06-07 21:49:21 UTC) #12
piman
LGTM, thanks for the new tests. https://codereview.chromium.org/15001027/diff/398001/cc/layers/texture_layer.cc File cc/layers/texture_layer.cc (right): https://codereview.chromium.org/15001027/diff/398001/cc/layers/texture_layer.cc#newcode151 cc/layers/texture_layer.cc:151: mailbox.IsSharedMemory() || On ...
7 years, 6 months ago (2013-06-07 23:29:59 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skaslev@chromium.org/15001027/306002
7 years, 6 months ago (2013-06-07 23:56:02 UTC) #14
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=7773
7 years, 6 months ago (2013-06-08 00:17:39 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skaslev@chromium.org/15001027/306002
7 years, 6 months ago (2013-06-08 00:18:30 UTC) #16
commit-bot: I haz the power
Change committed as 205010
7 years, 6 months ago (2013-06-08 04:38:53 UTC) #17
piman
jschuh/ben, can you do a post-facto review? I don't think this should have TBR'd
7 years, 6 months ago (2013-06-11 19:40:17 UTC) #18
jschuh
On 2013/06/11 19:40:17, piman wrote: > jschuh/ben, can you do a post-facto review? I don't ...
7 years, 6 months ago (2013-06-11 23:35:20 UTC) #19
Ben Goodger (Google)
7 years, 6 months ago (2013-06-12 17:34:18 UTC) #20
Message was sent while issue was closed.
aura lgtm

Powered by Google App Engine
This is Rietveld 408576698