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

Issue 49163004: cc: Reduce command buffer flushes related to creating texture ids. (Closed)

Created:
7 years, 1 month ago by reveman
Modified:
7 years, 1 month ago
Reviewers:
piman, enne (OOO)
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Reduce command buffer flushes related to creating texture ids. This significantly reduces command buffer flushes by allocating texture ids in chunks of 64. BUG=309455 TEST=cc_unittests --gtest_filter=ResourceProviderTest.TextureAllocationChunk Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=232332

Patch Set 1 #

Patch Set 2 : Add LayerTreeSettings::texture_id_allocation_chunk_size #

Total comments: 4

Patch Set 3 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+283 lines, -107 lines) Patch
M cc/layers/tiled_layer_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/output/gl_renderer_unittest.cc View 1 2 14 chunks +16 lines, -16 lines 0 comments Download
M cc/output/software_renderer_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/picture_layer_tiling_set_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/prioritized_resource_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/prioritized_tile_set_unittest.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.h View 1 4 chunks +9 lines, -2 lines 0 comments Download
M cc/resources/resource_provider.cc View 1 8 chunks +37 lines, -7 lines 0 comments Download
M cc/resources/resource_provider_unittest.cc View 1 2 33 chunks +137 lines, -43 lines 0 comments Download
M cc/resources/resource_update_controller_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/scoped_resource_unittest.cc View 1 4 chunks +4 lines, -4 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/tile_manager_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M cc/resources/video_resource_updater_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M cc/test/pixel_test.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M cc/test/test_web_graphics_context_3d.cc View 1 2 5 chunks +40 lines, -19 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 chunks +6 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 2 chunks +8 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
reveman
This needs some more work for all unit tests to pass but I'd like some ...
7 years, 1 month ago (2013-10-28 22:47:38 UTC) #1
piman
On 2013/10/28 22:47:38, David Reveman wrote: > This needs some more work for all unit ...
7 years, 1 month ago (2013-10-28 23:08:58 UTC) #2
reveman
On 2013/10/28 23:08:58, piman wrote: > On 2013/10/28 22:47:38, David Reveman wrote: > > This ...
7 years, 1 month ago (2013-10-28 23:23:32 UTC) #3
piman
On 2013/10/28 23:23:32, David Reveman wrote: > On 2013/10/28 23:08:58, piman wrote: > > On ...
7 years, 1 month ago (2013-10-29 01:15:24 UTC) #4
reveman
This is ready for another review. I kept the default chunk size at 64, which ...
7 years, 1 month ago (2013-10-30 00:01:19 UTC) #5
piman
LGTM overall but a couple of questions/nits. https://codereview.chromium.org/49163004/diff/70001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/49163004/diff/70001/cc/resources/resource_provider.cc#newcode1757 cc/resources/resource_provider.cc:1757: unused_texture_ids_.pop_front(); nit: ...
7 years, 1 month ago (2013-10-31 01:32:57 UTC) #6
reveman
https://codereview.chromium.org/49163004/diff/70001/cc/resources/resource_provider.cc File cc/resources/resource_provider.cc (right): https://codereview.chromium.org/49163004/diff/70001/cc/resources/resource_provider.cc#newcode1757 cc/resources/resource_provider.cc:1757: unused_texture_ids_.pop_front(); On 2013/10/31 01:32:58, piman wrote: > nit: why ...
7 years, 1 month ago (2013-10-31 13:38:31 UTC) #7
piman
Ok, LGTM as is if you prefer this way. On Thu, Oct 31, 2013 at ...
7 years, 1 month ago (2013-10-31 17:54:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/49163004/70001
7 years, 1 month ago (2013-10-31 18:24:37 UTC) #9
commit-bot: I haz the power
Failed to apply patch for cc/debug/test_web_graphics_context_3d.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; can't find ...
7 years, 1 month ago (2013-10-31 18:24:45 UTC) #10
jamesr
On 2013/10/31 18:24:45, I haz the power (commit-bot) wrote: > Failed to apply patch for ...
7 years, 1 month ago (2013-10-31 18:26:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/49163004/180001
7 years, 1 month ago (2013-10-31 19:52:31 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/49163004/180001
7 years, 1 month ago (2013-10-31 23:31:37 UTC) #13
commit-bot: I haz the power
7 years, 1 month ago (2013-11-01 11:52:36 UTC) #14
Message was sent while issue was closed.
Change committed as 232332

Powered by Google App Engine
This is Rietveld 408576698