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

Issue 11414238: implement the logic to set tile priorities based on current matrix (Closed)

Created:
8 years ago by qinmin
Modified:
8 years ago
CC:
chromium-reviews, cc-bugs_chromium.org
Visibility:
Public.

Description

implement the logic to set tile priorities based on current matrix BUG=163060 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=170908

Patch Set 1 #

Total comments: 9

Patch Set 2 : using manhattan distance instead of euclidean #

Patch Set 3 : passing content scale from layer to tiling so that screenspacetransform can be applied #

Total comments: 8

Patch Set 4 : addressing comments #

Patch Set 5 : move all the math from picture_layer_tiling to tile_prority #

Total comments: 4

Patch Set 6 : addressing comments #

Total comments: 4

Patch Set 7 : switching to rectF #

Total comments: 16

Patch Set 8 : addressing comments #

Total comments: 6

Patch Set 9 : addressing comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -2 lines) Patch
M cc/cc.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M cc/picture_layer_impl.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M cc/picture_layer_impl.cc View 1 2 3 4 5 6 7 8 3 chunks +27 lines, -1 line 0 comments Download
M cc/picture_layer_tiling.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M cc/picture_layer_tiling.cc View 1 2 3 4 5 6 7 8 2 chunks +50 lines, -0 lines 0 comments Download
M cc/picture_layer_tiling_set.h View 1 2 3 4 5 6 7 8 1 chunk +7 lines, -0 lines 0 comments Download
M cc/picture_layer_tiling_set.cc View 1 2 3 4 5 6 7 8 1 chunk +14 lines, -0 lines 0 comments Download
M cc/tile_priority.h View 1 2 3 4 5 6 7 3 chunks +15 lines, -1 line 0 comments Download
A cc/tile_priority.cc View 1 2 3 4 5 6 7 1 chunk +104 lines, -0 lines 0 comments Download
A cc/tile_priority_unittest.cc View 1 2 3 4 5 6 7 1 chunk +63 lines, -0 lines 0 comments Download

Messages

Total messages: 33 (0 generated)
qinmin
PTAL
8 years ago (2012-11-29 20:52:15 UTC) #1
epennerAtGoogle
https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc#newcode294 cc/picture_layer_tiling.cc:294: gfx::Rect screen_rect = MathUtil::mapClippedRect( I think this might bite ...
8 years ago (2012-11-29 22:07:50 UTC) #2
qinmin
https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc#newcode303 cc/picture_layer_tiling.cc:303: I like the idea of manhattan distance, it saves ...
8 years ago (2012-11-29 22:44:17 UTC) #3
epennerAtGoogle
I think this is a pretty good start. Enne wdyt? My concerns are only performance ...
8 years ago (2012-11-29 22:52:54 UTC) #4
danakj
https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc#newcode295 cc/picture_layer_tiling.cc:295: current_transform, layer_rect); What is current_transform? If it's the screen ...
8 years ago (2012-11-29 22:57:30 UTC) #5
epennerAtGoogle
https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc#newcode295 cc/picture_layer_tiling.cc:295: current_transform, layer_rect); On 2012/11/29 22:57:30, danakj wrote: > What ...
8 years ago (2012-11-29 23:02:58 UTC) #6
qinmin
https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/1/cc/picture_layer_tiling.cc#newcode295 cc/picture_layer_tiling.cc:295: current_transform, layer_rect); Ok, passing the content_scale from the layer ...
8 years ago (2012-11-30 00:35:00 UTC) #7
nduca
Who are our deciders here? I think its Enne... this makes things MUCH better, so ...
8 years ago (2012-11-30 08:47:24 UTC) #8
epennerAtGoogle
lgtm I think we can land and follow up? Especially if Dana LGTMs as well. ...
8 years ago (2012-11-30 16:48:34 UTC) #9
danakj
https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_impl.cc#newcode99 cc/picture_layer_impl.cc:99: contentsScaleX(), can you DCHECK that contentsScaleX() == contentsScaleY()?
8 years ago (2012-11-30 18:39:00 UTC) #10
nduca
Definitely keep it out of priority calculator for the reasons you mention. Tiles cant have ...
8 years ago (2012-11-30 18:50:21 UTC) #11
qinmin
https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_impl.cc File cc/picture_layer_impl.cc (right): https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_impl.cc#newcode97 cc/picture_layer_impl.cc:97: if (last_update_time_ != 0) { using timedelta 0 when ...
8 years ago (2012-11-30 19:24:13 UTC) #12
epenner
https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_tiling.cc#newcode310 cc/picture_layer_tiling.cc:310: TilePriority priority; Sorry if this is annoying, but after ...
8 years ago (2012-11-30 19:29:31 UTC) #13
qinmin
https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/7002/cc/picture_layer_tiling.cc#newcode310 cc/picture_layer_tiling.cc:310: TilePriority priority; Done, the math thingy are moved to ...
8 years ago (2012-11-30 20:32:35 UTC) #14
epennerAtGoogle
lgtm Looking good to me. Certainly the structure seems right, and we can iterate on ...
8 years ago (2012-11-30 20:56:34 UTC) #15
danakj
https://codereview.chromium.org/11414238/diff/10002/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/10002/cc/picture_layer_tiling.cc#newcode288 cc/picture_layer_tiling.cc:288: gfx::ScaleRect(content_rect, layer_content_scale / contents_scale_)); Maybe you should just pass ...
8 years ago (2012-12-01 00:07:31 UTC) #16
qinmin
https://codereview.chromium.org/11414238/diff/10002/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/10002/cc/picture_layer_tiling.cc#newcode288 cc/picture_layer_tiling.cc:288: gfx::ScaleRect(content_rect, layer_content_scale / contents_scale_)); On 2012/12/01 00:07:31, danakj wrote: ...
8 years ago (2012-12-01 01:07:02 UTC) #17
danakj
https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc#newcode288 cc/picture_layer_tiling.cc:288: gfx::Rect layer_content_rect = gfx::ToEnclosingRect( Why go to a Rect ...
8 years ago (2012-12-01 01:20:19 UTC) #18
qinmin
https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc#newcode288 cc/picture_layer_tiling.cc:288: gfx::Rect layer_content_rect = gfx::ToEnclosingRect( if we keep it rectF, ...
8 years ago (2012-12-01 01:36:44 UTC) #19
danakj
https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc#newcode288 cc/picture_layer_tiling.cc:288: gfx::Rect layer_content_rect = gfx::ToEnclosingRect( On 2012/12/01 01:36:44, qinmin wrote: ...
8 years ago (2012-12-01 01:58:25 UTC) #20
qinmin
https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/11014/cc/picture_layer_tiling.cc#newcode288 cc/picture_layer_tiling.cc:288: gfx::Rect layer_content_rect = gfx::ToEnclosingRect( ok, switched to rectF for ...
8 years ago (2012-12-01 02:31:20 UTC) #21
danakj
The scale stuff seems alright to me, I can't really speak to the picture layer ...
8 years ago (2012-12-01 02:37:37 UTC) #22
qinmin
https://codereview.chromium.org/11414238/diff/8004/cc/tile_priority.h File cc/tile_priority.h (right): https://codereview.chromium.org/11414238/diff/8004/cc/tile_priority.h#newcode8 cc/tile_priority.h:8: #include <limits> this is for the std::numeric_limits in TilePriority ...
8 years ago (2012-12-01 02:45:24 UTC) #23
enne (OOO)
https://codereview.chromium.org/11414238/diff/8004/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/8004/cc/picture_layer_tiling.cc#newcode278 cc/picture_layer_tiling.cc:278: gfx::Rect countent_rect = ContentRect(); countent => content https://codereview.chromium.org/11414238/diff/8004/cc/picture_layer_tiling.cc#newcode285 cc/picture_layer_tiling.cc:285: ...
8 years ago (2012-12-03 19:57:27 UTC) #24
enne (OOO)
https://codereview.chromium.org/11414238/diff/8004/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/8004/cc/picture_layer_tiling.cc#newcode287 cc/picture_layer_tiling.cc:287: gfx::Rect content_rect = tiling_data_.TileBounds(i, j); On 2012/12/03 19:57:28, enne ...
8 years ago (2012-12-03 22:08:53 UTC) #25
qinmin
Thanks, Enne https://codereview.chromium.org/11414238/diff/8004/cc/picture_layer_tiling.cc File cc/picture_layer_tiling.cc (right): https://codereview.chromium.org/11414238/diff/8004/cc/picture_layer_tiling.cc#newcode278 cc/picture_layer_tiling.cc:278: gfx::Rect countent_rect = ContentRect(); On 2012/12/03 19:57:28, ...
8 years ago (2012-12-04 00:37:29 UTC) #26
enne (OOO)
https://codereview.chromium.org/11414238/diff/6015/cc/picture_layer_impl.h File cc/picture_layer_impl.h (right): https://codereview.chromium.org/11414238/diff/6015/cc/picture_layer_impl.h#newcode41 cc/picture_layer_impl.h:41: void setBounds(const gfx::Size&); These three functions shadow the LayerImpl ...
8 years ago (2012-12-04 01:13:27 UTC) #27
qinmin
https://codereview.chromium.org/11414238/diff/6015/cc/picture_layer_impl.h File cc/picture_layer_impl.h (right): https://codereview.chromium.org/11414238/diff/6015/cc/picture_layer_impl.h#newcode41 cc/picture_layer_impl.h:41: void setBounds(const gfx::Size&); These functions are to check whether ...
8 years ago (2012-12-04 01:39:53 UTC) #28
enne (OOO)
lgtm
8 years ago (2012-12-04 02:26:33 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/11414238/14003
8 years ago (2012-12-04 03:22:45 UTC) #30
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests
8 years ago (2012-12-04 05:59:45 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/qinmin@chromium.org/11414238/14003
8 years ago (2012-12-04 06:04:54 UTC) #32
commit-bot: I haz the power
8 years ago (2012-12-04 08:53:02 UTC) #33
Message was sent while issue was closed.
Change committed as 170908

Powered by Google App Engine
This is Rietveld 408576698