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

Issue 165603002: cc: Move GPU raster to DirectRasterWorkerPool. (Closed)

Created:
6 years, 10 months ago by reveman
Modified:
6 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

cc: Move GPU raster to DirectRasterWorkerPool. GPU raster belong in its own RasterWorkerPool implementation as it requires different throttling logic. This moves all GPU raster to DirectRasterWorkerPool. BUG=324892 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=251569

Patch Set 1 #

Total comments: 20

Patch Set 2 : address review feedback #

Patch Set 3 : remove rastertaskqueue changes and refactor worker pool delegate #

Total comments: 5

Patch Set 4 : address review feedback #

Patch Set 5 : fix typo #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+663 lines, -415 lines) Patch
M cc/cc.gyp View 1 2 3 4 2 chunks +4 lines, -0 lines 0 comments Download
A + cc/resources/direct_raster_worker_pool.h View 1 2 2 chunks +20 lines, -20 lines 0 comments Download
A cc/resources/direct_raster_worker_pool.cc View 1 2 1 chunk +174 lines, -0 lines 0 comments Download
M cc/resources/image_raster_worker_pool.h View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 1 2 5 chunks +3 lines, -32 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.h View 1 2 2 chunks +0 lines, -2 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 1 2 5 chunks +1 line, -23 lines 0 comments Download
M cc/resources/raster_worker_pool.h View 1 2 10 chunks +35 lines, -24 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 4 19 chunks +145 lines, -147 lines 1 comment Download
A cc/resources/raster_worker_pool_delegate.h View 1 2 3 1 chunk +47 lines, -0 lines 0 comments Download
A cc/resources/raster_worker_pool_delegate.cc View 1 2 3 1 chunk +81 lines, -0 lines 0 comments Download
M cc/resources/raster_worker_pool_perftest.cc View 1 2 18 chunks +50 lines, -34 lines 0 comments Download
M cc/resources/raster_worker_pool_unittest.cc View 1 2 15 chunks +41 lines, -83 lines 0 comments Download
M cc/resources/tile_manager.h View 1 2 3 4 6 chunks +15 lines, -5 lines 0 comments Download
M cc/resources/tile_manager.cc View 1 2 3 4 13 chunks +35 lines, -23 lines 0 comments Download
M cc/resources/tile_manager_perftest.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_tile_manager.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/test/fake_tile_manager.cc View 1 2 7 chunks +9 lines, -16 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
reveman
6 years, 10 months ago (2014-02-14 00:57:00 UTC) #1
reveman
+vangelis The more I'm thinking about it the more having a DirectRasterWorkerPool implementation makes sense ...
6 years, 10 months ago (2014-02-14 16:11:53 UTC) #2
vmpstr
I think this is great. https://codereview.chromium.org/165603002/diff/1/cc/resources/raster_worker_pool.h File cc/resources/raster_worker_pool.h (right): https://codereview.chromium.org/165603002/diff/1/cc/resources/raster_worker_pool.h#newcode137 cc/resources/raster_worker_pool.h:137: static scoped_refptr<internal::RasterWorkerPoolTask> CreateRasterTask( On ...
6 years, 10 months ago (2014-02-14 17:16:51 UTC) #3
alokp
Dave: Thanks for working on it. I have some minor comments. https://codereview.chromium.org/165603002/diff/1/cc/resources/direct_raster_worker_pool.cc File cc/resources/direct_raster_worker_pool.cc (right): ...
6 years, 10 months ago (2014-02-14 18:50:58 UTC) #4
reveman
PTAL https://codereview.chromium.org/165603002/diff/1/cc/resources/direct_raster_worker_pool.cc File cc/resources/direct_raster_worker_pool.cc (right): https://codereview.chromium.org/165603002/diff/1/cc/resources/direct_raster_worker_pool.cc#newcode37 cc/resources/direct_raster_worker_pool.cc:37: void DirectRasterWorkerPool::ScheduleTasks(RasterTaskQueue* queue) { On 2014/02/14 16:11:53, David ...
6 years, 10 months ago (2014-02-14 23:30:52 UTC) #5
vmpstr
Cool, this is exactly what I meant by more generic comment. lgtm % alokp's review. ...
6 years, 10 months ago (2014-02-14 23:47:24 UTC) #6
reveman
https://codereview.chromium.org/165603002/diff/170001/cc/resources/tile_manager.cc File cc/resources/tile_manager.cc (right): https://codereview.chromium.org/165603002/diff/170001/cc/resources/tile_manager.cc#newcode201 cc/resources/tile_manager.cc:201: raster_worker_pool_.get(), direct_raster_worker_pool_.get(), }; On 2014/02/14 23:47:24, vmpstr wrote: > ...
6 years, 10 months ago (2014-02-15 00:02:44 UTC) #7
alokp
lgtm
6 years, 10 months ago (2014-02-15 00:14:13 UTC) #8
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 10 months ago (2014-02-15 00:24:24 UTC) #9
reveman
The CQ bit was unchecked by reveman@chromium.org
6 years, 10 months ago (2014-02-15 00:27:05 UTC) #10
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 10 months ago (2014-02-15 00:54:23 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/165603002/60002
6 years, 10 months ago (2014-02-15 00:58:47 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-15 02:59:01 UTC) #13
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=48390
6 years, 10 months ago (2014-02-15 02:59:01 UTC) #14
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 10 months ago (2014-02-15 03:43:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/165603002/60002
6 years, 10 months ago (2014-02-15 03:43:37 UTC) #16
reveman
The CQ bit was unchecked by reveman@chromium.org
6 years, 10 months ago (2014-02-15 05:00:29 UTC) #17
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 10 months ago (2014-02-15 08:27:10 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/165603002/600001
6 years, 10 months ago (2014-02-15 08:27:20 UTC) #19
commit-bot: I haz the power
Change committed as 251569
6 years, 10 months ago (2014-02-15 14:22:01 UTC) #20
vangelis
https://codereview.chromium.org/165603002/diff/600001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/165603002/diff/600001/cc/resources/raster_worker_pool.cc#newcode119 cc/resources/raster_worker_pool.cc:119: Analyze(picture_pile_); I think the Analysis is an overkill for ...
6 years, 10 months ago (2014-02-18 22:25:28 UTC) #21
reveman
On 2014/02/18 22:25:28, vangelis wrote: > https://codereview.chromium.org/165603002/diff/600001/cc/resources/raster_worker_pool.cc > File cc/resources/raster_worker_pool.cc (right): > > https://codereview.chromium.org/165603002/diff/600001/cc/resources/raster_worker_pool.cc#newcode119 > ...
6 years, 10 months ago (2014-02-18 23:29:34 UTC) #22
vangelis
Oh, I see. Should I go ahead and add the use_gpu_rasterization flag back to RasterWorkerPool::RasterTask ...
6 years, 10 months ago (2014-02-19 03:01:36 UTC) #23
reveman
6 years, 10 months ago (2014-02-19 03:14:26 UTC) #24
Message was sent while issue was closed.
On 2014/02/19 03:01:36, vangelis wrote:
> Oh, I see.
> 
> Should I go ahead and add the use_gpu_rasterization flag back
> to RasterWorkerPool::RasterTask ? The analysis step is really hurting us.
> 

Yes, or maybe even better: a use_analysis flag. Tile manager can just use
Tile::use_gpu_rasterization() for now.

Powered by Google App Engine
This is Rietveld 408576698