Use bounds instead of size for prerender requests
This changes the pipeline that initializes prerender contents with a size to use bounds instead. Note that not all addPrerenderX calls are switched to use Rect since for everywhere except Android this won't be needed. Android needs bounds instead of size to get info about the Physical Backing Size, also the top container height (to be used for toolbar hide on scroll). With a Rect, all these can be initialized and we can avoid extra Resizes that happen when the native View is properly tied to the Android View hierarcy on swap. This change only updates the params and shouldn't be making any functional changes. A follow up Android only patch will start setting the value to the origin. BUG=628302 Review-Url: https://codereview.chromium.org/2259533003 Cr-Commit-Position: refs/heads/master@{#413469}
Showing
Please register or sign in to comment