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

Issue 2147543006: Set the prerender size right and avoid resets (Closed)

Created:
4 years, 5 months ago by Yusuf
Modified:
3 years, 3 months ago
Reviewers:
no sievers, gone
CC:
chromium-reviews, cbentzel+watch_chromium.org, yusukes+watch_chromium.org, nona+watch_chromium.org, tburkard+watch_chromium.org, shuchen+watch_chromium.org, jam, gavinp+prer_chromium.org, lizeb+watch-custom-tabs_chromium.org, darin-cc_chromium.org, James Su
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set the prerender size right and avoid resets Builds on https://codereview.chromium.org/2259533003 Even if we set a renderer size during prerender, that value gets overridden on initialization due to two reasons: - On CVC construction, in setCVC for RWHVAndroid, there is a resize no matter what. This changes adds a condition to not resize if it is a brand new CVC with zero size. - In swapCVC in Tab, we actually make an attempt to use the old CVC size. In external prerender this should actually use the estimated size used previously. This change also does that. BUG=612218 Committed: https://crrev.com/96ca94bfebcf7697c58650c7f57225019dfc3b9c Cr-Commit-Position: refs/heads/master@{#405541}

Patch Set 1 #

Total comments: 2

Patch Set 2 : siever@'s comments #

Patch Set 3 : Fix compile #

Patch Set 4 : Fix compile for real #

Unified diffs Side-by-side diffs Delta from patch set Stats (+66 lines, -35 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java View 4 chunks +2 lines, -31 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/prerender/ExternalPrerenderHandler.java View 2 chunks +42 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/tab/Tab.java View 3 chunks +15 lines, -3 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_android.cc View 1 2 3 1 chunk +7 lines, -1 line 0 comments Download

Messages

Total messages: 24 (11 generated)
Yusuf
4 years, 5 months ago (2016-07-13 21:50:34 UTC) #2
Yusuf
sievers@ for RWHVAndroid dfalcantara@ for the rest
4 years, 5 months ago (2016-07-13 21:51:05 UTC) #3
no sievers
content lgtm https://codereview.chromium.org/2147543006/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2147543006/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1699 content/browser/renderer_host/render_widget_host_view_android.cc:1699: bool new_content_view_core = content_view_core nit: i'd call ...
4 years, 5 months ago (2016-07-13 21:59:40 UTC) #4
gone
lgtm % daniel's comments
4 years, 5 months ago (2016-07-14 17:07:31 UTC) #5
Yusuf
https://codereview.chromium.org/2147543006/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc File content/browser/renderer_host/render_widget_host_view_android.cc (right): https://codereview.chromium.org/2147543006/diff/1/content/browser/renderer_host/render_widget_host_view_android.cc#newcode1699 content/browser/renderer_host/render_widget_host_view_android.cc:1699: bool new_content_view_core = content_view_core On 2016/07/13 21:59:40, sievers wrote: ...
4 years, 5 months ago (2016-07-14 17:23:38 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147543006/20001
4 years, 5 months ago (2016-07-14 17:24:06 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/104094)
4 years, 5 months ago (2016-07-14 17:38:27 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147543006/40001
4 years, 5 months ago (2016-07-14 18:19:31 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_android on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/cast_shell_android/builds/96322)
4 years, 5 months ago (2016-07-14 18:38:04 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2147543006/60001
4 years, 5 months ago (2016-07-14 18:47:35 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 5 months ago (2016-07-14 19:35:36 UTC) #20
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-07-14 19:35:45 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-14 19:38:03 UTC) #23
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/96ca94bfebcf7697c58650c7f57225019dfc3b9c
Cr-Commit-Position: refs/heads/master@{#405541}

Powered by Google App Engine
This is Rietveld 408576698