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

Issue 2099903002: Make tile size a function of the device scale factor.

Created:
4 years, 5 months ago by danakj
Modified:
3 years, 11 months ago
CC:
asvitkine+watch_chromium.org, cc-bugs_chromium.org, chromium-reviews, creis+watch_chromium.org, darin-cc_chromium.org, jam, mlamouri+watch-content_chromium.org, nasko+codewatch_chromium.org, piman+watch_chromium.org, piman, vmpstr, boliu
Base URL:
https://chromium.googlesource.com/chromium/src.git@layouttests-display
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make tile size a function of the device scale factor. This preserves a similar step function for android, and either 256 or 512 for desktop, but will change when the device scale factor changes. Once we know a stable "screen size" instead of a viewport size, we can use this same function for desktop and ganesh also. R=aelias, enne BUG=622885 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Patch Set 1 #

Total comments: 1

Patch Set 2 : tilesize: . #

Total comments: 13
Unified diffs Side-by-side diffs Delta from patch set Stats (+328 lines, -234 lines) Patch
M cc/layers/picture_layer_impl.h View 1 chunk +3 lines, -0 lines 0 comments Download
M cc/layers/picture_layer_impl.cc View 1 3 chunks +78 lines, -38 lines 7 comments Download
M cc/layers/picture_layer_impl_unittest.cc View 1 15 chunks +193 lines, -56 lines 1 comment Download
M cc/proto/layer_tree_settings.proto View 2 chunks +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 3 chunks +30 lines, -1 line 2 comments Download
M cc/trees/layer_tree_impl.h View 1 1 chunk +2 lines, -1 line 2 comments Download
M cc/trees/layer_tree_impl.cc View 1 1 chunk +5 lines, -1 line 0 comments Download
M cc/trees/layer_tree_settings.h View 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/layer_tree_settings.cc View 4 chunks +4 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_settings_unittest.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M chrome/browser/about_flags.cc View 1 2 chunks +0 lines, -18 lines 0 comments Download
M content/browser/renderer_host/render_process_host_impl.cc View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/public/common/content_switches.h View 1 2 chunks +0 lines, -4 lines 0 comments Download
M content/public/common/content_switches.cc View 1 2 chunks +0 lines, -8 lines 0 comments Download
M content/renderer/gpu/render_widget_compositor.cc View 1 5 chunks +4 lines, -85 lines 1 comment Download

Depends on Patchset:

Messages

Total messages: 11 (4 generated)
danakj
4 years, 5 months ago (2016-06-28 01:18:07 UTC) #2
enne (OOO)
https://codereview.chromium.org/2099903002/diff/1/chrome/browser/about_flags.cc File chrome/browser/about_flags.cc (left): https://codereview.chromium.org/2099903002/diff/1/chrome/browser/about_flags.cc#oldcode244 chrome/browser/about_flags.cc:244: { IDS_FLAGS_DEFAULT_TILE_WIDTH_GRANDE, *snrk* https://codereview.chromium.org/2099903002/diff/20001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/2099903002/diff/20001/cc/layers/picture_layer_impl.cc#newcode56 cc/layers/picture_layer_impl.cc:56: ...
4 years, 5 months ago (2016-06-28 18:39:02 UTC) #3
vmpstr
https://codereview.chromium.org/2099903002/diff/20001/cc/layers/picture_layer_impl.cc File cc/layers/picture_layer_impl.cc (right): https://codereview.chromium.org/2099903002/diff/20001/cc/layers/picture_layer_impl.cc#newcode750 cc/layers/picture_layer_impl.cc:750: int tile_size; Initialize to 0, so that DCHECK on ...
4 years, 5 months ago (2016-06-29 01:40:23 UTC) #4
aelias_OOO_until_Jul13
https://codereview.chromium.org/2099903002/diff/20001/cc/trees/layer_tree_impl.h File cc/trees/layer_tree_impl.h (right): https://codereview.chromium.org/2099903002/diff/20001/cc/trees/layer_tree_impl.h#newcode108 cc/trees/layer_tree_impl.h:108: gfx::Size GetStableScreenSize() const; Hmm, any reason you decided not ...
4 years, 5 months ago (2016-06-29 07:21:16 UTC) #5
danakj
https://codereview.chromium.org/2099903002/diff/20001/cc/trees/layer_tree_impl.h File cc/trees/layer_tree_impl.h (right): https://codereview.chromium.org/2099903002/diff/20001/cc/trees/layer_tree_impl.h#newcode108 cc/trees/layer_tree_impl.h:108: gfx::Size GetStableScreenSize() const; On 2016/06/29 07:21:16, aelias wrote: > ...
4 years, 5 months ago (2016-06-29 19:47:39 UTC) #6
boliu
Hi, I saw you mention this CL on the thread, and just happen to be ...
3 years, 11 months ago (2017-01-06 19:07:19 UTC) #8
danakj
3 years, 11 months ago (2017-01-06 19:21:17 UTC) #11
On Fri, Jan 6, 2017 at 2:07 PM, <boliu@chromium.org> wrote:

> Hi, I saw you mention this CL on the thread, and just happen to be looking
> at
> the same code here in RenderWidgetCompositor. I'm trying to get rid of all
> usage
> of android-only DeviceDisplayInfo.
>
> Stable screen size is already available in the renderer:
> RenderWidget::screen_info. Though the dimension there is in integral css
> pixels,
> so the result of multiplying by the device scale factor ends up very close
> the
> screen size. Should be good enough for calculating software tile size
> though?
>

That does sound good enough ya, thanks.

I was just gonna make android use that, but if there is a larger effort to
> refactor this for all platforms, I can wait for that :)
>

You should go for it, you can base it on this CL if you want or do your own
thing. But I wouldn't wait on me to land this, its super backburner atm.


>
> https://codereview.chromium.org/2099903002/
>

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698