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

Issue 860813002: Remove the default format from ResourcePool. (Closed)

Created:
5 years, 11 months ago by peterp
Modified:
5 years, 11 months ago
Reviewers:
hendrikw, reveman, vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, auygun, christiank
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove the default format from ResourcePool. Let each client store the format locally instead. BUG=434699 Committed: https://crrev.com/66304d3c5632199f46abb85b1acca5d87f03ce49 Cr-Commit-Position: refs/heads/master@{#313247}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Add GetResourceFormat() to TileTaskWorkerPool instead. #

Patch Set 3 : Fix compile error in perftest. #

Total comments: 6

Patch Set 4 : Avoid storing ResourceFormat in OneCopyTileTaskWorkerPool #

Patch Set 5 : Store ResourceProvider instead of ResourceFormat in GpuTileTaskWorkerPool. #

Patch Set 6 : Move GetResourceFormat() from TileTaskWorkerPool to TileTaskRunner. #

Patch Set 7 : Fix compile error in perftest (again). #

Patch Set 8 : Fix compile error in another perftest. #

Total comments: 4

Patch Set 9 : Remove ResourceFormat from TileManager and call TileTaskRunner::GetResourceFormat() directly instea… #

Unified diffs Side-by-side diffs Delta from patch set Stats (+92 lines, -73 lines) Patch
M cc/resources/bitmap_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/bitmap_tile_task_worker_pool.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/gpu_rasterizer.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/gpu_rasterizer.cc View 2 chunks +2 lines, -1 line 0 comments Download
M cc/resources/gpu_tile_task_worker_pool.h View 1 2 3 4 5 5 chunks +7 lines, -2 lines 0 comments Download
M cc/resources/gpu_tile_task_worker_pool.cc View 1 2 3 4 5 2 chunks +11 lines, -3 lines 0 comments Download
M cc/resources/one_copy_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/one_copy_tile_task_worker_pool.cc View 1 2 3 4 5 2 chunks +10 lines, -4 lines 0 comments Download
M cc/resources/pixel_buffer_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/pixel_buffer_tile_task_worker_pool.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/resources/rasterizer.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/resource_pool.h View 3 chunks +3 lines, -13 lines 0 comments Download
M cc/resources/resource_pool.cc View 1 chunk +1 line, -4 lines 0 comments Download
M cc/resources/software_rasterizer.h View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/software_rasterizer.cc View 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/tile_manager.h View 1 2 3 4 5 6 7 8 2 chunks +3 lines, -5 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 5 6 7 8 3 chunks +3 lines, -2 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M cc/resources/tile_task_runner.h View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
M cc/resources/tile_task_worker_pool_perftest.cc View 1 2 3 4 5 6 2 chunks +3 lines, -2 lines 0 comments Download
M cc/resources/tile_task_worker_pool_unittest.cc View 1 2 3 4 2 chunks +3 lines, -2 lines 0 comments Download
M cc/resources/zero_copy_tile_task_worker_pool.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/resources/zero_copy_tile_task_worker_pool.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 2 3 4 5 1 chunk +3 lines, -3 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/test/layer_tree_pixel_resource_test.cc View 1 2 3 4 4 chunks +8 lines, -17 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 5 chunks +8 lines, -15 lines 0 comments Download

Messages

Total messages: 17 (4 generated)
peterp
This is the follow up from https://codereview.chromium.org/817133006 to remove the default format in ResourcePool now ...
5 years, 11 months ago (2015-01-20 13:53:05 UTC) #2
reveman
https://codereview.chromium.org/860813002/diff/1/cc/test/layer_tree_test.h File cc/test/layer_tree_test.h (right): https://codereview.chromium.org/860813002/diff/1/cc/test/layer_tree_test.h#newcode39 cc/test/layer_tree_test.h:39: virtual ResourceFormat CreateResourceAndTileTaskWorkerPool( Would it make sense to add ...
5 years, 11 months ago (2015-01-20 18:45:48 UTC) #3
peterp
https://codereview.chromium.org/860813002/diff/1/cc/test/layer_tree_test.h File cc/test/layer_tree_test.h (right): https://codereview.chromium.org/860813002/diff/1/cc/test/layer_tree_test.h#newcode39 cc/test/layer_tree_test.h:39: virtual ResourceFormat CreateResourceAndTileTaskWorkerPool( On 2015/01/20 18:45:48, reveman wrote: > ...
5 years, 11 months ago (2015-01-22 14:29:59 UTC) #4
reveman
https://codereview.chromium.org/860813002/diff/40001/cc/resources/gpu_tile_task_worker_pool.h File cc/resources/gpu_tile_task_worker_pool.h (right): https://codereview.chromium.org/860813002/diff/40001/cc/resources/gpu_tile_task_worker_pool.h#newcode23 cc/resources/gpu_tile_task_worker_pool.h:23: ResourceFormat resource_format); Can this just use resource_provider->best_texture_format() internally instead ...
5 years, 11 months ago (2015-01-22 23:01:46 UTC) #5
peterp
https://codereview.chromium.org/860813002/diff/40001/cc/resources/gpu_tile_task_worker_pool.h File cc/resources/gpu_tile_task_worker_pool.h (right): https://codereview.chromium.org/860813002/diff/40001/cc/resources/gpu_tile_task_worker_pool.h#newcode23 cc/resources/gpu_tile_task_worker_pool.h:23: ResourceFormat resource_format); On 2015/01/22 23:01:46, reveman wrote: > Can ...
5 years, 11 months ago (2015-01-23 13:19:06 UTC) #6
reveman
lgtm with nits but please have vmpstr take a look at this before you land ...
5 years, 11 months ago (2015-01-23 16:41:42 UTC) #8
vmpstr
On 2015/01/23 16:41:42, reveman wrote: > lgtm with nits but please have vmpstr take a ...
5 years, 11 months ago (2015-01-24 00:22:05 UTC) #9
peterp
> What I'm a bit confused about is how this is going to be used. ...
5 years, 11 months ago (2015-01-26 17:05:11 UTC) #10
peterp
https://codereview.chromium.org/860813002/diff/140001/cc/resources/tile_manager.h File cc/resources/tile_manager.h (right): https://codereview.chromium.org/860813002/diff/140001/cc/resources/tile_manager.h#newcode294 cc/resources/tile_manager.h:294: ResourceFormat resource_format_; On 2015/01/23 16:41:42, reveman wrote: > nit: ...
5 years, 11 months ago (2015-01-26 17:05:28 UTC) #11
vmpstr
On 2015/01/26 17:05:11, peterp wrote: > > What I'm a bit confused about is how ...
5 years, 11 months ago (2015-01-26 18:02:17 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/860813002/160001
5 years, 11 months ago (2015-01-27 08:11:43 UTC) #15
commit-bot: I haz the power
Committed patchset #9 (id:160001)
5 years, 11 months ago (2015-01-27 09:34:36 UTC) #16
commit-bot: I haz the power
5 years, 11 months ago (2015-01-27 09:35:38 UTC) #17
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/66304d3c5632199f46abb85b1acca5d87f03ce49
Cr-Commit-Position: refs/heads/master@{#313247}

Powered by Google App Engine
This is Rietveld 408576698