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

Issue 63443003: cc: Combine analysis and raster (Closed)

Created:
7 years, 1 month ago by enne (OOO)
Modified:
6 years, 11 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, Vangelis Kokkevis, reed1
Visibility:
Public.

Description

cc: Combine analysis and raster This changes the analysis of PicturePiles from optimistic (hoping to save raster work by checking if a rastered bitmap would be a solid color) to pessimistic (assuming most bitmaps are not solid colors and just checking afterwards). It does this by rastering to both an AnalysisCanvas and a normal SkCanvas via SkNWayCanvas and then checking the results afterwards. R=reveman@chromium.org, senorblanco@chromium.org BUG=310796 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=234641 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243268

Patch Set 1 #

Total comments: 17

Patch Set 2 : Address feedback #

Total comments: 4

Patch Set 3 : Remove vim change #

Patch Set 4 : Move gfx::Rect out of skia/ext #

Patch Set 5 : Now with an SkNWayCanvas #

Patch Set 6 : Chunk mismatch #

Total comments: 2

Patch Set 7 : drawRect early out #

Patch Set 8 : Fix early-out condition #

Patch Set 9 : Remove failing hasText tests due to drawRect early-out #

Patch Set 10 : Rebased #

Patch Set 11 : Rebase #

Patch Set 12 : Remove analysis time from rendering stats #

Unified diffs Side-by-side diffs Delta from patch set Stats (+114 lines, -184 lines) Patch
M cc/debug/rasterize_and_record_benchmark_impl.cc View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -2 lines 0 comments Download
M cc/debug/rendering_stats.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M cc/debug/rendering_stats.cc View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +1 line, -5 lines 0 comments Download
M cc/debug/rendering_stats_instrumentation.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -1 line 0 comments Download
M cc/debug/rendering_stats_instrumentation.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +0 lines, -9 lines 0 comments Download
M cc/resources/picture.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -1 line 0 comments Download
M cc/resources/picture.cc View 1 2 3 4 5 6 7 8 9 10 2 chunks +1 line, -2 lines 0 comments Download
M cc/resources/picture_pile_impl.h View 1 2 3 4 5 6 7 8 9 10 11 4 chunks +4 lines, -20 lines 0 comments Download
M cc/resources/picture_pile_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 7 chunks +19 lines, -59 lines 0 comments Download
M cc/resources/raster_worker_pool.cc View 1 2 3 4 5 6 7 8 9 6 chunks +32 lines, -48 lines 0 comments Download
M cc/test/fake_picture_pile_impl.h View 1 2 3 4 5 6 7 8 9 1 chunk +4 lines, -0 lines 0 comments Download
M cc/test/fake_picture_pile_impl.cc View 1 2 3 4 5 6 7 8 9 2 chunks +23 lines, -0 lines 0 comments Download
M cc/test/skia_common.cc View 1 2 3 4 5 6 7 8 9 1 chunk +1 line, -1 line 0 comments Download
M skia/ext/analysis_canvas.h View 1 2 3 4 5 6 7 8 9 4 chunks +8 lines, -5 lines 0 comments Download
M skia/ext/analysis_canvas.cc View 1 2 3 4 5 6 7 8 9 6 chunks +20 lines, -10 lines 0 comments Download
M skia/ext/analysis_canvas_unittest.cc View 1 2 3 4 5 6 7 8 3 chunks +1 line, -20 lines 0 comments Download

Messages

Total messages: 36 (0 generated)
enne (OOO)
In my measurements the analysis step on an N4 across a good number of pages ...
7 years, 1 month ago (2013-11-07 00:58:18 UTC) #1
vangelis
https://codereview.chromium.org/63443003/diff/1/skia/ext/analysis_canvas.cc File skia/ext/analysis_canvas.cc (right): https://codereview.chromium.org/63443003/diff/1/skia/ext/analysis_canvas.cc#newcode126 skia/ext/analysis_canvas.cc:126: INHERITED::drawPaint(draw, paint); Do we see this method getting called ...
7 years, 1 month ago (2013-11-07 01:35:03 UTC) #2
Tom Hudson
If it's not giving us any speedup, why leave the code there at all?
7 years, 1 month ago (2013-11-07 13:47:11 UTC) #3
reveman
On 2013/11/07 13:47:11, Tom Hudson wrote: > If it's not giving us any speedup, why ...
7 years, 1 month ago (2013-11-07 15:13:41 UTC) #4
Tom Hudson
On 2013/11/07 15:13:41, David Reveman wrote: > On 2013/11/07 13:47:11, Tom Hudson wrote: > > ...
7 years, 1 month ago (2013-11-07 15:28:54 UTC) #5
reveman
https://codereview.chromium.org/63443003/diff/1/cc/resources/picture_pile_impl.cc File cc/resources/picture_pile_impl.cc (left): https://codereview.chromium.org/63443003/diff/1/cc/resources/picture_pile_impl.cc#oldcode204 cc/resources/picture_pile_impl.cc:204: SkDrawPictureCallback* callback, |callback| doesn't seem to be used anymore. ...
7 years, 1 month ago (2013-11-07 15:36:30 UTC) #6
reveman
On 2013/11/07 15:28:54, Tom Hudson wrote: > On 2013/11/07 15:13:41, David Reveman wrote: > > ...
7 years, 1 month ago (2013-11-07 15:40:31 UTC) #7
vmpstr
Did you by any chance try using SkNWayCanvas to see what is the time difference? ...
7 years, 1 month ago (2013-11-07 17:36:46 UTC) #8
Stephen White
LGTM for skia/, but will leave the rest for CC experts. https://codereview.chromium.org/63443003/diff/1/cc/test/fake_picture_pile_impl.cc File cc/test/fake_picture_pile_impl.cc (right): ...
7 years, 1 month ago (2013-11-07 18:14:21 UTC) #9
reed1
somewhat orthogonal to this CL... Can all of the analysis be done just at the ...
7 years, 1 month ago (2013-11-07 18:48:05 UTC) #10
enne (OOO)
On 2013/11/07 13:47:11, Tom Hudson wrote: > If it's not giving us any speedup, why ...
7 years, 1 month ago (2013-11-07 22:13:49 UTC) #11
reveman
cc/ lgtm with nit https://codereview.chromium.org/63443003/diff/170001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/63443003/diff/170001/cc/resources/raster_worker_pool.cc#newcode78 cc/resources/raster_worker_pool.cc:78: "cc", "RasterWorkerPoolTaskImpl::RunRasterOnThread", nit: RunOnWorkerThread https://codereview.chromium.org/63443003/diff/170001/tools/vim/ninja-build.vim ...
7 years, 1 month ago (2013-11-07 22:20:16 UTC) #12
enne (OOO)
https://codereview.chromium.org/63443003/diff/170001/cc/resources/raster_worker_pool.cc File cc/resources/raster_worker_pool.cc (right): https://codereview.chromium.org/63443003/diff/170001/cc/resources/raster_worker_pool.cc#newcode78 cc/resources/raster_worker_pool.cc:78: "cc", "RasterWorkerPoolTaskImpl::RunRasterOnThread", On 2013/11/07 22:20:17, David Reveman wrote: > ...
7 years, 1 month ago (2013-11-07 22:32:08 UTC) #13
enne (OOO)
https://codereview.chromium.org/63443003/diff/1/cc/test/fake_picture_pile_impl.cc File cc/test/fake_picture_pile_impl.cc (right): https://codereview.chromium.org/63443003/diff/1/cc/test/fake_picture_pile_impl.cc#newcode104 cc/test/fake_picture_pile_impl.cc:104: empty_bitmap.setConfig(SkBitmap::kNo_Config, On 2013/11/07 18:14:22, Stephen White wrote: > Nit: ...
7 years, 1 month ago (2013-11-07 22:36:09 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/63443003/240001
7 years, 1 month ago (2013-11-07 22:42:57 UTC) #15
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-07 23:22:47 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/63443003/490001
7 years, 1 month ago (2013-11-08 00:25:05 UTC) #17
commit-bot: I haz the power
Retried try job too often on linux_rel for step(s) base_unittests, browser_tests, cacheinvalidation_unittests, cc_unittests, check_deps, chromedriver2_unittests, ...
7 years, 1 month ago (2013-11-08 01:21:10 UTC) #18
enne (OOO)
Argh. I had missed something fundamental here. AnalysisDevice wants to pretend like it's the only ...
7 years, 1 month ago (2013-11-08 23:15:55 UTC) #19
vmpstr
On 2013/11/08 23:15:55, enne wrote: > Argh. I had missed something fundamental here. AnalysisDevice wants ...
7 years, 1 month ago (2013-11-08 23:21:26 UTC) #20
vangelis
https://codereview.chromium.org/63443003/diff/870001/cc/resources/picture_pile_impl.cc File cc/resources/picture_pile_impl.cc (right): https://codereview.chromium.org/63443003/diff/870001/cc/resources/picture_pile_impl.cc#newcode129 cc/resources/picture_pile_impl.cc:129: RasterCommon(canvas, Since we can no longer make use of ...
7 years, 1 month ago (2013-11-08 23:44:07 UTC) #21
vangelis
7 years, 1 month ago (2013-11-08 23:44:09 UTC) #22
enne (OOO)
https://codereview.chromium.org/63443003/diff/870001/cc/resources/picture_pile_impl.cc File cc/resources/picture_pile_impl.cc (right): https://codereview.chromium.org/63443003/diff/870001/cc/resources/picture_pile_impl.cc#newcode129 cc/resources/picture_pile_impl.cc:129: RasterCommon(canvas, On 2013/11/08 23:44:08, vangelis wrote: > Since we ...
7 years, 1 month ago (2013-11-08 23:47:59 UTC) #23
vangelis
On 2013/11/08 23:47:59, enne wrote: > https://codereview.chromium.org/63443003/diff/870001/cc/resources/picture_pile_impl.cc > File cc/resources/picture_pile_impl.cc (right): > > https://codereview.chromium.org/63443003/diff/870001/cc/resources/picture_pile_impl.cc#newcode129 > ...
7 years, 1 month ago (2013-11-08 23:53:13 UTC) #24
enne (OOO)
On 2013/11/08 23:53:13, vangelis wrote: > Fair enough although I'm not sure how we would ...
7 years, 1 month ago (2013-11-09 00:57:02 UTC) #25
enne (OOO)
It doesn't sound like anybody has objections to this approach other than performance, so I ...
7 years, 1 month ago (2013-11-11 19:27:56 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/63443003/1050001
7 years, 1 month ago (2013-11-11 19:29:30 UTC) #27
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 1 month ago (2013-11-11 20:20:04 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/63443003/1050001
7 years, 1 month ago (2013-11-12 00:35:08 UTC) #29
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=186904
7 years, 1 month ago (2013-11-12 01:40:12 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/63443003/1430001
7 years, 1 month ago (2013-11-12 18:43:34 UTC) #31
commit-bot: I haz the power
Change committed as 234641
7 years, 1 month ago (2013-11-12 21:35:33 UTC) #32
enne (OOO)
Reopening for relanding. The original patch got reverted due to the SkNWayCanvas kerfuffle. Then I ...
7 years ago (2013-12-17 01:10:42 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/enne@chromium.org/63443003/1730001
6 years, 11 months ago (2014-01-07 00:02:45 UTC) #34
commit-bot: I haz the power
Change committed as 243268
6 years, 11 months ago (2014-01-07 11:57:24 UTC) #35
enne (OOO)
6 years, 11 months ago (2014-01-07 19:54:14 UTC) #36
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/126343003/ by enne@chromium.org.

The reason for reverting is: Caused a 30% rasterization regression.

Powered by Google App Engine
This is Rietveld 408576698