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

Issue 12095053: cc: Avoid expensive RenderingStats collection. (Closed)

Created:
7 years, 10 months ago by danakj
Modified:
7 years, 10 months ago
CC:
chromium-reviews, cc-bugs_chromium.org, darin-cc_chromium.org, hartmanng, piman, backer
Visibility:
Public.

Description

cc: Avoid expensive RenderingStats collection. When --enable-gpu-benchmarking is not present, don't do expensive steps in the benchmark collection (meaning don't call base::TimeTicks::Now()). BUG=170735 NOTRY=true Depends on: https://bugs.webkit.org/show_bug.cgi?id=108358 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=180224

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : use WebSettings #

Total comments: 6

Patch Set 4 : #

Patch Set 5 : RebaseOfDoom #

Patch Set 6 : nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+241 lines, -191 lines) Patch
M cc/bitmap_content_layer_updater.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/bitmap_content_layer_updater.cc View 1 2 3 4 2 chunks +4 lines, -3 lines 0 comments Download
M cc/bitmap_skpicture_content_layer_updater.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/bitmap_skpicture_content_layer_updater.cc View 1 2 3 4 2 chunks +14 lines, -7 lines 0 comments Download
M cc/caching_bitmap_content_layer_updater.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/caching_bitmap_content_layer_updater.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/content_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/content_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/content_layer_unittest.cc View 1 2 3 4 2 chunks +1 line, -3 lines 0 comments Download
M cc/content_layer_updater.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/content_layer_updater.cc View 1 2 3 4 2 chunks +8 lines, -5 lines 0 comments Download
M cc/contents_scaling_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/contents_scaling_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/heads_up_display_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/heads_up_display_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/image_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/image_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/image_layer_updater.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/image_layer_updater.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host.cc View 1 2 3 4 4 chunks +8 lines, -3 lines 0 comments Download
M cc/layer_tree_host_impl.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_host_unittest.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M cc/layer_tree_host_unittest_occlusion.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/layer_tree_settings.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_tree_settings.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M cc/layer_updater.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/nine_patch_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/nine_patch_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/nine_patch_layer_unittest.cc View 1 2 3 4 6 chunks +5 lines, -7 lines 0 comments Download
M cc/picture.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture.cc View 1 2 3 4 2 chunks +9 lines, -5 lines 0 comments Download
M cc/picture_image_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_image_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_layer_impl_unittest.cc View 1 2 3 4 1 chunk +1 line, -2 lines 0 comments Download
M cc/picture_pile.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_pile.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/picture_pile_impl.cc View 2 3 4 2 chunks +8 lines, -4 lines 0 comments Download
M cc/raster_worker_pool.h View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M cc/raster_worker_pool.cc View 1 2 3 4 2 chunks +5 lines, -4 lines 0 comments Download
M cc/scrollbar_layer.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/scrollbar_layer.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/skpicture_content_layer_updater.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/skpicture_content_layer_updater.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/fake_content_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_content_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_scrollbar_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/fake_scrollbar_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/test/tiled_layer_test_common.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/test/tiled_layer_test_common.cc View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M cc/texture_layer.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/texture_layer.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M cc/tile_manager.h View 1 2 3 4 2 chunks +3 lines, -1 line 0 comments Download
M cc/tile_manager.cc View 1 2 3 4 5 4 chunks +22 lines, -11 lines 0 comments Download
M cc/tiled_layer.h View 1 2 3 4 2 chunks +3 lines, -3 lines 0 comments Download
M cc/tiled_layer.cc View 1 2 3 4 3 chunks +3 lines, -3 lines 0 comments Download
M cc/tiled_layer_unittest.cc View 1 2 3 4 36 chunks +35 lines, -37 lines 0 comments Download
M cc/worker_pool.h View 1 2 3 4 5 chunks +17 lines, -11 lines 0 comments Download
M cc/worker_pool.cc View 1 2 3 4 5 5 chunks +26 lines, -26 lines 0 comments Download
M content/browser/web_contents/web_contents_impl.cc View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
M content/public/common/common_param_traits_macros.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M webkit/compositor_bindings/web_layer_tree_view_impl.cc View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webpreferences.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M webkit/glue/webpreferences.cc View 1 2 2 chunks +4 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
danakj
This is a minimal CL that disables expensive calls to Now() when not recording rendering ...
7 years, 10 months ago (2013-01-30 08:00:19 UTC) #1
nduca
LGTM
7 years, 10 months ago (2013-01-30 08:08:20 UTC) #2
danakj
Updated to plumb the setting the WebLayerTreeViewSettings as cc/ can't see content/ flags. Depends on ...
7 years, 10 months ago (2013-01-30 19:09:51 UTC) #3
danakj
+jamesr for webkit/ +piman for content/
7 years, 10 months ago (2013-01-30 19:10:35 UTC) #4
jamesr
https://codereview.chromium.org/12095053/diff/8001/webkit/compositor_bindings/web_layer_tree_view_impl.cc File webkit/compositor_bindings/web_layer_tree_view_impl.cc (right): https://codereview.chromium.org/12095053/diff/8001/webkit/compositor_bindings/web_layer_tree_view_impl.cc#newcode56 webkit/compositor_bindings/web_layer_tree_view_impl.cc:56: settings.recordRenderingStats = webSettings.recordRenderingStats; this code can see command line ...
7 years, 10 months ago (2013-01-30 19:13:27 UTC) #5
danakj
https://codereview.chromium.org/12095053/diff/8001/webkit/compositor_bindings/web_layer_tree_view_impl.cc File webkit/compositor_bindings/web_layer_tree_view_impl.cc (right): https://codereview.chromium.org/12095053/diff/8001/webkit/compositor_bindings/web_layer_tree_view_impl.cc#newcode56 webkit/compositor_bindings/web_layer_tree_view_impl.cc:56: settings.recordRenderingStats = webSettings.recordRenderingStats; On 2013/01/30 19:13:27, jamesr wrote: > ...
7 years, 10 months ago (2013-01-30 19:15:08 UTC) #6
piman
lgtm
7 years, 10 months ago (2013-01-30 22:04:48 UTC) #7
vmpstr
https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc File cc/picture_pile_impl.cc (right): https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc#newcode117 cc/picture_pile_impl.cc:117: stats->totalPixelsRasterized += Should this be conditional as well?
7 years, 10 months ago (2013-01-31 22:29:19 UTC) #8
danakj
https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc File cc/picture_pile_impl.cc (right): https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc#newcode117 cc/picture_pile_impl.cc:117: stats->totalPixelsRasterized += On 2013/01/31 22:29:19, vmpstr1 wrote: > Should ...
7 years, 10 months ago (2013-02-01 00:46:11 UTC) #9
nduca
https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc File cc/picture_pile_impl.cc (right): https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc#newcode117 cc/picture_pile_impl.cc:117: stats->totalPixelsRasterized += @danakj: stats could be null, right?
7 years, 10 months ago (2013-02-01 01:48:53 UTC) #10
danakj
https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc File cc/picture_pile_impl.cc (right): https://codereview.chromium.org/12095053/diff/8001/cc/picture_pile_impl.cc#newcode117 cc/picture_pile_impl.cc:117: stats->totalPixelsRasterized += On 2013/02/01 01:48:53, nduca wrote: > @danakj: ...
7 years, 10 months ago (2013-02-01 01:51:22 UTC) #11
nduca
kk i'll be around
7 years, 10 months ago (2013-02-01 01:53:48 UTC) #12
danakj
PTAL Please don't be frightened, almost all of this patch is s/&/*/ so that we ...
7 years, 10 months ago (2013-02-01 02:26:29 UTC) #13
nduca
lgtm
7 years, 10 months ago (2013-02-01 02:39:56 UTC) #14
jamesr
webkit/ lgtm
7 years, 10 months ago (2013-02-01 02:41:56 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12095053/22001
7 years, 10 months ago (2013-02-01 03:03:16 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12095053/22001
7 years, 10 months ago (2013-02-01 18:49:41 UTC) #17
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=106420
7 years, 10 months ago (2013-02-01 23:16:39 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12095053/22001
7 years, 10 months ago (2013-02-02 00:00:39 UTC) #19
danakj
NOTRY=true to get past win_rel browser tests. All other bots were green for a run.
7 years, 10 months ago (2013-02-02 01:02:05 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/danakj@chromium.org/12095053/22001
7 years, 10 months ago (2013-02-02 01:04:19 UTC) #21
commit-bot: I haz the power
7 years, 10 months ago (2013-02-02 01:10:32 UTC) #22
Message was sent while issue was closed.
Change committed as 180224

Powered by Google App Engine
This is Rietveld 408576698