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

Issue 1379783002: Allow one-copy task tile worker pool to use compressed textures. (Closed)

Created:
5 years, 2 months ago by christiank
Modified:
5 years ago
CC:
cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Allow one-copy and zero-copy task tile worker pools to use compressed textures. BUG=434699 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/7d60ce9a132a88ead407a2a58c91edc431e68259 Cr-Commit-Position: refs/heads/master@{#364326} Committed: https://crrev.com/10fc39d36c0ba481056ec91a2984e02fd1127cf4 Cr-Commit-Position: refs/heads/master@{#364484}

Patch Set 1 #

Total comments: 23

Patch Set 2 : Address various issues #

Patch Set 3 : Rebase #

Patch Set 4 : Use memory_efficient_format* settings and revert allocation modifications #

Total comments: 10

Patch Set 5 : Fix to ensure valid tile size plus some code cleanup #

Total comments: 2

Patch Set 6 : Replace memory_efficient_format* with preferred_tile_format #

Total comments: 19

Patch Set 7 : Address nits #

Total comments: 9

Patch Set 8 : Fix command switch and resource allocation state #

Patch Set 9 : Revert to original behavior regarding allocated flag #

Patch Set 10 : Rebase #

Patch Set 11 : Fix cc_unittests #

Patch Set 12 : Fix blimp layer tree settings and cc_perftests #

Patch Set 13 : Fix mistake in last patch set #

Patch Set 14 : Remove needs_conversion, fix tile size unit test and move modulo 4 DCHECK (for tests) #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+250 lines, -116 lines) Patch
M blimp/client/compositor/blimp_layer_tree_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -1 line 0 comments Download
M cc/base/switches.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M cc/base/switches.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +8 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +6 lines, -4 lines 0 comments Download
M cc/output/renderer_settings.h View 1 2 3 4 5 6 7 8 9 2 chunks +2 lines, -1 line 0 comments Download
M cc/output/renderer_settings.cc View 1 2 3 4 5 6 7 8 9 10 11 5 chunks +11 lines, -6 lines 0 comments Download
M cc/output/renderer_settings_unittest.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M cc/proto/renderer_settings.proto View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -3 lines 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M cc/raster/one_copy_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 9 5 chunks +46 lines, -33 lines 0 comments Download
M cc/raster/tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 4 chunks +52 lines, -27 lines 1 comment Download
M cc/raster/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -2 lines 0 comments Download
M cc/raster/tile_task_worker_pool_unittest.cc View 1 2 3 4 5 6 7 8 9 1 chunk +3 lines, -2 lines 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.h View 1 2 3 4 5 6 7 8 9 3 chunks +3 lines, -3 lines 0 comments Download
M cc/raster/zero_copy_tile_task_worker_pool.cc View 1 2 3 4 5 6 7 8 9 2 chunks +13 lines, -9 lines 0 comments Download
M cc/resources/platform_color.h View 1 2 3 4 5 6 1 chunk +13 lines, -1 line 0 comments Download
M cc/resources/resource_format.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +3 lines, -0 lines 0 comments Download
M cc/resources/resource_format.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +23 lines, -1 line 0 comments Download
M cc/resources/resource_provider.h View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 2 3 4 5 6 7 8 2 chunks +26 lines, -3 lines 0 comments Download
M cc/test/layer_tree_pixel_resource_test.cc View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M cc/tiles/tile_manager.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +2 lines, -2 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +13 lines, -7 lines 0 comments Download
M ui/compositor/compositor.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 68 (24 generated)
christiank
Hi, This is the final glue necessary for rudimentary tile compression support. David, this review ...
5 years, 2 months ago (2015-09-30 07:49:42 UTC) #2
reveman
https://codereview.chromium.org/1379783002/diff/1/cc/output/renderer_settings.h File cc/output/renderer_settings.h (right): https://codereview.chromium.org/1379783002/diff/1/cc/output/renderer_settings.h#newcode30 cc/output/renderer_settings.h:30: bool use_tile_compression; Can we merge this with use_rgba_4444_textures somehow? ...
5 years, 2 months ago (2015-09-30 09:55:15 UTC) #3
christiank
Once again sorry for the lack of progress here. I have addressed some of your ...
5 years ago (2015-11-26 15:35:36 UTC) #5
reveman
https://codereview.chromium.org/1379783002/diff/1/cc/output/renderer_settings.h File cc/output/renderer_settings.h (right): https://codereview.chromium.org/1379783002/diff/1/cc/output/renderer_settings.h#newcode30 cc/output/renderer_settings.h:30: bool use_tile_compression; On 2015/11/26 at 15:35:35, christiank wrote: > ...
5 years ago (2015-11-27 16:46:49 UTC) #6
christiank
https://codereview.chromium.org/1379783002/diff/1/cc/output/renderer_settings.h File cc/output/renderer_settings.h (right): https://codereview.chromium.org/1379783002/diff/1/cc/output/renderer_settings.h#newcode30 cc/output/renderer_settings.h:30: bool use_tile_compression; On 2015/11/27 16:46:49, reveman wrote: > On ...
5 years ago (2015-11-30 15:41:08 UTC) #7
reveman
> https://codereview.chromium.org/1379783002/diff/1/cc/resources/resource_pool.cc#newcode92 > cc/resources/resource_pool.cc:92: Resource* ResourcePool::AcquireResource(const gfx::Size& desired_size, > On 2015/11/27 16:46:49, reveman wrote: > ...
5 years ago (2015-11-30 16:41:45 UTC) #8
christiank
https://codereview.chromium.org/1379783002/diff/1/cc/resources/resource_pool.cc File cc/resources/resource_pool.cc (right): https://codereview.chromium.org/1379783002/diff/1/cc/resources/resource_pool.cc#newcode92 cc/resources/resource_pool.cc:92: Resource* ResourcePool::AcquireResource(const gfx::Size& desired_size, On 2015/11/30 15:41:08, christiank wrote: ...
5 years ago (2015-12-01 15:01:07 UTC) #9
reveman
https://codereview.chromium.org/1379783002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc File cc/raster/one_copy_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1379783002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc#newcode349 cc/raster/one_copy_tile_task_worker_pool.cc:349: if (memory_efficient_format_with_alpha_ != RGBA_8888 && must_support_alpha) On 2015/12/01 at ...
5 years ago (2015-12-01 17:27:24 UTC) #10
christiank
https://codereview.chromium.org/1379783002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc File cc/raster/one_copy_tile_task_worker_pool.cc (right): https://codereview.chromium.org/1379783002/diff/60001/cc/raster/one_copy_tile_task_worker_pool.cc#newcode349 cc/raster/one_copy_tile_task_worker_pool.cc:349: if (memory_efficient_format_with_alpha_ != RGBA_8888 && must_support_alpha) On 2015/12/01 17:27:24, ...
5 years ago (2015-12-02 16:18:14 UTC) #11
reveman
lgtm with nits https://codereview.chromium.org/1379783002/diff/100001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1379783002/diff/100001/cc/layers/picture_layer_impl.cc#newcode776 cc/layers/picture_layer_impl.cc:776: tile_height % kTileMinimalAlignment != 0) { ...
5 years ago (2015-12-02 18:27:19 UTC) #12
reveman
https://codereview.chromium.org/1379783002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/1379783002/diff/100001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode1785 gpu/command_buffer/service/gles2_cmd_decoder.cc:1785: bool ValidateCompressedCopySubTextureDimensions( btw, do we still need this? we're ...
5 years ago (2015-12-02 18:28:50 UTC) #13
christiank
piman, sievers would you please have a look? https://codereview.chromium.org/1379783002/diff/100001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/1379783002/diff/100001/cc/layers/picture_layer_impl.cc#newcode776 cc/layers/picture_layer_impl.cc:776: tile_height ...
5 years ago (2015-12-03 12:58:00 UTC) #15
no sievers
https://codereview.chromium.org/1379783002/diff/120001/content/renderer/gpu/render_widget_compositor.cc File content/renderer/gpu/render_widget_compositor.cc (right): https://codereview.chromium.org/1379783002/diff/120001/content/renderer/gpu/render_widget_compositor.cc#newcode457 content/renderer/gpu/render_widget_compositor.cc:457: settings.renderer_settings.preferred_tile_format = cc::RGBA_4444; Can we keep the behavior of ...
5 years ago (2015-12-03 19:00:03 UTC) #16
piman
https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc#newcode854 cc/resources/resource_provider.cc:854: resource_provider_->LazyAllocate(resource_); What happens now if this is ETC1? Or ...
5 years ago (2015-12-03 23:01:50 UTC) #17
christiank
https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc#newcode854 cc/resources/resource_provider.cc:854: resource_provider_->LazyAllocate(resource_); On 2015/12/03 23:01:50, piman (slow to review) wrote: ...
5 years ago (2015-12-04 10:20:40 UTC) #18
no sievers
On 2015/12/04 10:20:40, christiank wrote: > https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc > File cc/resources/resource_provider.cc (right): > > https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc#newcode854 > ...
5 years ago (2015-12-04 18:23:18 UTC) #19
piman
https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc#newcode854 cc/resources/resource_provider.cc:854: resource_provider_->LazyAllocate(resource_); On 2015/12/04 10:20:40, christiank wrote: > On 2015/12/03 ...
5 years ago (2015-12-04 21:30:48 UTC) #20
christiank
https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/1379783002/diff/120001/cc/resources/resource_provider.cc#newcode854 cc/resources/resource_provider.cc:854: resource_provider_->LazyAllocate(resource_); On 2015/12/04 21:30:48, piman (slow to review) wrote: ...
5 years ago (2015-12-07 08:38:11 UTC) #21
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/160001
5 years ago (2015-12-07 08:53:18 UTC) #23
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: mac_chromium_compile_dbg_ng on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/mac_chromium_compile_dbg_ng/builds/132424) mac_chromium_gn_rel on ...
5 years ago (2015-12-07 08:55:00 UTC) #25
piman
lgtm
5 years ago (2015-12-07 19:44:23 UTC) #26
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/180001
5 years ago (2015-12-08 08:22:29 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/167725) linux_chromium_compile_dbg_32_ng on ...
5 years ago (2015-12-08 08:34:32 UTC) #30
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/200001
5 years ago (2015-12-08 09:14:33 UTC) #32
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: cast_shell_android on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_android/builds/89069) chromeos_daisy_chromium_compile_only_ng on ...
5 years ago (2015-12-08 09:48:02 UTC) #34
christiank
nyquist, would you please have a look at the small blimp change in patchset 12?
5 years ago (2015-12-08 11:55:03 UTC) #36
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/220001
5 years ago (2015-12-08 11:56:11 UTC) #38
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/167800)
5 years ago (2015-12-08 12:21:21 UTC) #40
nyquist
blimp lgtm
5 years ago (2015-12-08 21:13:50 UTC) #41
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/240001
5 years ago (2015-12-09 08:45:26 UTC) #43
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/153063)
5 years ago (2015-12-09 09:26:07 UTC) #45
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/260001
5 years ago (2015-12-09 16:07:27 UTC) #47
christiank
reveman, Would you please have a quick look at the changes in patch set 14. ...
5 years ago (2015-12-09 16:54:37 UTC) #48
reveman
still lgtm https://codereview.chromium.org/1379783002/diff/260001/cc/raster/tile_task_worker_pool.cc File cc/raster/tile_task_worker_pool.cc (right): https://codereview.chromium.org/1379783002/diff/260001/cc/raster/tile_task_worker_pool.cc#newcode124 cc/raster/tile_task_worker_pool.cc:124: canvas_bitmap_rect, scale); nit: maybe move l.117-124 to ...
5 years ago (2015-12-09 17:29:37 UTC) #49
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
5 years ago (2015-12-09 17:36:11 UTC) #51
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/260001
5 years ago (2015-12-10 09:26:44 UTC) #54
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years ago (2015-12-10 09:34:25 UTC) #56
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/7d60ce9a132a88ead407a2a58c91edc431e68259 Cr-Commit-Position: refs/heads/master@{#364326}
5 years ago (2015-12-10 09:35:25 UTC) #58
engedy
A revert of this CL (patchset #14 id:260001) has been created in https://codereview.chromium.org/1513733003/ by engedy@chromium.org. ...
5 years ago (2015-12-10 12:39:47 UTC) #59
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1379783002/260001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1379783002/260001
5 years ago (2015-12-10 18:13:56 UTC) #62
commit-bot: I haz the power
Committed patchset #14 (id:260001)
5 years ago (2015-12-10 21:31:41 UTC) #64
commit-bot: I haz the power
Patchset 14 (id:??) landed as https://crrev.com/10fc39d36c0ba481056ec91a2984e02fd1127cf4 Cr-Commit-Position: refs/heads/master@{#364484}
5 years ago (2015-12-10 21:33:29 UTC) #66
Rick Byers
On 2015/12/10 21:33:29, commit-bot: I haz the power wrote: > Patchset 14 (id:??) landed as ...
5 years ago (2015-12-17 17:04:34 UTC) #67
Rick Byers
5 years ago (2015-12-18 15:54:56 UTC) #68
Message was sent while issue was closed.
A revert of this CL (patchset #14 id:260001) has been created in
https://codereview.chromium.org/1535953003/ by rbyers@chromium.org.

The reason for reverting is: Causing perf bot failures - apparently triggers a
render crash.  http://crbug.com/570477 and possibly http://crbug.com/570809. 
Please run a perf tryjob including these tests before relanding..

Powered by Google App Engine
This is Rietveld 408576698