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

Issue 1318733006: cc: Do the math for a tile's content rect in layer space once. (Closed)

Created:
5 years, 3 months ago by danakj
Modified:
5 years, 3 months ago
Reviewers:
vmpstr
CC:
chromium-reviews, cc-bugs_chromium.org, enne (OOO), piman
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Do the math for a tile's content rect in layer space once. We currently do this math in CoversRect(), GatherPixelRefs() and each time a tile is rastered to compute damage. We also do this multiple times in the process of creating a tile. We can do this once at the time we create the tile and pass it around and store it on the Tile instead. Less math! R=vmpstr BUG=342848 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/d11f79b35cf3958bec49a8271c8a9059a983828f Cr-Commit-Position: refs/heads/master@{#346491}

Patch Set 1 #

Total comments: 7
Unified diffs Side-by-side diffs Delta from patch set Stats (+164 lines, -589 lines) Patch
M cc/debug/rasterize_and_record_benchmark_impl.cc View 1 chunk +2 lines, -3 lines 0 comments Download
M cc/layers/picture_layer_impl.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M cc/playback/display_list_raster_source.h View 1 chunk +2 lines, -4 lines 0 comments Download
M cc/playback/display_list_raster_source.cc View 2 chunks +5 lines, -12 lines 0 comments Download
M cc/playback/display_list_raster_source_unittest.cc View 3 chunks +4 lines, -64 lines 0 comments Download
M cc/playback/display_list_recording_source_unittest.cc View 4 chunks +4 lines, -99 lines 0 comments Download
M cc/playback/picture_pile_impl.h View 2 chunks +3 lines, -6 lines 0 comments Download
M cc/playback/picture_pile_impl.cc View 2 chunks +10 lines, -16 lines 0 comments Download
M cc/playback/picture_pile_impl_unittest.cc View 7 chunks +15 lines, -85 lines 0 comments Download
M cc/playback/raster_source.h View 1 chunk +5 lines, -7 lines 0 comments Download
M cc/playback/recording_source_unittest.cc View 9 chunks +15 lines, -207 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/test/fake_picture_layer_tiling_client.cc View 1 chunk +3 lines, -3 lines 0 comments Download
M cc/tiles/picture_layer_tiling.h View 3 chunks +4 lines, -4 lines 0 comments Download
M cc/tiles/picture_layer_tiling.cc View 8 chunks +40 lines, -31 lines 4 comments Download
M cc/tiles/tile.h View 5 chunks +35 lines, -18 lines 0 comments Download
M cc/tiles/tile.cc View 2 chunks +8 lines, -12 lines 3 comments Download
M cc/tiles/tile_manager.h View 1 chunk +1 line, -3 lines 0 comments Download
M cc/tiles/tile_manager.cc View 2 chunks +4 lines, -7 lines 0 comments Download

Messages

Total messages: 13 (3 generated)
danakj
5 years, 3 months ago (2015-08-28 20:49:06 UTC) #1
vmpstr
lgtm with something to consider. I don't know if the code looks cleaner with i, ...
5 years, 3 months ago (2015-08-28 21:04:17 UTC) #2
vmpstr
https://codereview.chromium.org/1318733006/diff/1/cc/tiles/tile.cc File cc/tiles/tile.cc (right): https://codereview.chromium.org/1318733006/diff/1/cc/tiles/tile.cc#newcode20 cc/tiles/tile.cc:20: const CreateInfo& info, Also, why not just store the ...
5 years, 3 months ago (2015-08-28 21:05:30 UTC) #3
danakj
https://codereview.chromium.org/1318733006/diff/1/cc/tiles/picture_layer_tiling.cc File cc/tiles/picture_layer_tiling.cc (right): https://codereview.chromium.org/1318733006/diff/1/cc/tiles/picture_layer_tiling.cc#newcode106 cc/tiles/picture_layer_tiling.cc:106: const int i = info.tiling_i_index; On 2015/08/28 21:04:17, vmpstr ...
5 years, 3 months ago (2015-08-31 21:12:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318733006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318733006/1
5 years, 3 months ago (2015-08-31 21:13:30 UTC) #6
vmpstr
https://codereview.chromium.org/1318733006/diff/1/cc/tiles/tile.cc File cc/tiles/tile.cc (right): https://codereview.chromium.org/1318733006/diff/1/cc/tiles/tile.cc#newcode20 cc/tiles/tile.cc:20: const CreateInfo& info, On 2015/08/31 21:12:12, danakj wrote: > ...
5 years, 3 months ago (2015-08-31 21:15:10 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: android_chromium_gn_compile_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_chromium_gn_compile_rel/builds/126811)
5 years, 3 months ago (2015-08-31 21:49:29 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1318733006/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1318733006/1
5 years, 3 months ago (2015-08-31 21:51:34 UTC) #11
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 3 months ago (2015-08-31 22:22:14 UTC) #12
commit-bot: I haz the power
5 years, 3 months ago (2015-08-31 22:22:51 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/d11f79b35cf3958bec49a8271c8a9059a983828f
Cr-Commit-Position: refs/heads/master@{#346491}

Powered by Google App Engine
This is Rietveld 408576698