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

Issue 160023002: cc: Only make num_threads - 1 SkPicture clones. (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: Only make num_threads - 1 SkPicture clones. Run on-demand raster on worker threads. This allows us to create one fewer SkPicture clone as raster will never be done on the compositor thread. BUG=333855 TEST=cc_unittests --gtest_filter=LayerTreeHostOnDemandRasterPixelTest.RasterPictureLayer Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=250664

Patch Set 1 #

Total comments: 4

Patch Set 2 : fix comment #

Total comments: 4

Patch Set 3 : sw renderer too #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -59 lines) Patch
M cc/output/direct_renderer.h View 1 2 3 chunks +5 lines, -0 lines 0 comments Download
M cc/output/direct_renderer.cc View 1 2 2 chunks +30 lines, -0 lines 0 comments Download
M cc/output/gl_renderer.cc View 1 2 2 chunks +42 lines, -5 lines 0 comments Download
M cc/output/software_renderer.cc View 1 2 2 chunks +40 lines, -2 lines 0 comments Download
M cc/resources/image_raster_worker_pool.cc View 2 chunks +1 line, -13 lines 0 comments Download
M cc/resources/picture.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/resources/picture.cc View 1 3 chunks +20 lines, -20 lines 0 comments Download
M cc/resources/pixel_buffer_raster_worker_pool.cc View 2 chunks +1 line, -10 lines 0 comments Download
M cc/resources/raster_worker_pool.h View 2 chunks +7 lines, -4 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 3 chunks +20 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
reveman
6 years, 10 months ago (2014-02-11 19:32:18 UTC) #1
vmpstr
lgtm. I was worried about getclone returning a * instead of a scoped_refptr, but I ...
6 years, 10 months ago (2014-02-11 19:54:41 UTC) #2
Dominik Grewe
Thanks! Glad we could do this optimization after all. cc::Picture lgtm. https://codereview.chromium.org/160023002/diff/1/cc/resources/picture.cc File cc/resources/picture.cc (left): ...
6 years, 10 months ago (2014-02-11 20:33:35 UTC) #3
vmpstr
On 2014/02/11 20:33:35, Dominik Grewe wrote: > Thanks! Glad we could do this optimization after ...
6 years, 10 months ago (2014-02-11 21:20:31 UTC) #4
reveman
enne, please take a look. https://codereview.chromium.org/160023002/diff/1/cc/resources/picture.cc File cc/resources/picture.cc (right): https://codereview.chromium.org/160023002/diff/1/cc/resources/picture.cc#newcode204 cc/resources/picture.cc:204: // We can re-use ...
6 years, 10 months ago (2014-02-11 21:22:28 UTC) #5
enne (OOO)
lgtm Is there any way that we can enforce that pictures are never played back ...
6 years, 10 months ago (2014-02-11 22:30:45 UTC) #6
reveman
Added SoftwareRenderer support. The raster_thread_checker_.CalledOnValidThread() DCHECKs in Picture class will fail if called on the ...
6 years, 10 months ago (2014-02-11 23:40:42 UTC) #7
enne (OOO)
lgtmstill
6 years, 10 months ago (2014-02-11 23:43:49 UTC) #8
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 10 months ago (2014-02-11 23:46:24 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/160023002/230001
6 years, 10 months ago (2014-02-11 23:48:47 UTC) #10
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-12 00:29:07 UTC) #11
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) app_list_unittests, ash_unittests, aura_unittests, cacheinvalidation_unittests, cc_unittests, check_deps, ...
6 years, 10 months ago (2014-02-12 00:29:07 UTC) #12
reveman
The CQ bit was checked by reveman@chromium.org
6 years, 10 months ago (2014-02-12 01:08:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/reveman@chromium.org/160023002/230001
6 years, 10 months ago (2014-02-12 01:09:31 UTC) #14
commit-bot: I haz the power
6 years, 10 months ago (2014-02-12 09:35:19 UTC) #15
Message was sent while issue was closed.
Change committed as 250664

Powered by Google App Engine
This is Rietveld 408576698