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

Issue 1377593003: Refactor BrowserViewRenderer to support page visibility (Closed)

Created:
5 years, 2 months ago by hush (inactive)
Modified:
5 years, 2 months ago
Reviewers:
boliu
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Refactor BrowserViewRenderer to support page visibility The page visiblity will be calculated in BVR::IsVisible and AwContents will not calculate it again. It reads from BVR via JNI instead. BUG=520089 Committed: https://crrev.com/bcf491b6751a352bda8d801907c05a9215f47007 Cr-Commit-Position: refs/heads/master@{#351253}

Patch Set 1 : #

Total comments: 3

Patch Set 2 : refactor again #

Total comments: 9

Patch Set 3 : #

Total comments: 2

Patch Set 4 : comments #

Patch Set 5 : rebase #

Patch Set 6 : fix test compilation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+35 lines, -20 lines) Patch
M android_webview/browser/browser_view_renderer.h View 1 2 3 chunks +4 lines, -1 line 0 comments Download
M android_webview/browser/browser_view_renderer.cc View 1 2 3 4 3 chunks +17 lines, -4 lines 0 comments Download
M android_webview/browser/test/rendering_test.cc View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwContents.java View 1 2 6 chunks +3 lines, -12 lines 0 comments Download
M android_webview/native/aw_contents.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/native/aw_contents.cc View 1 2 3 chunks +8 lines, -1 line 0 comments Download

Messages

Total messages: 27 (9 generated)
hush (inactive)
PTAL
5 years, 2 months ago (2015-09-28 21:26:12 UTC) #3
boliu
This is worse than before. Now native side makes no sense either. Also you are ...
5 years, 2 months ago (2015-09-28 21:31:31 UTC) #4
boliu
There are at least two or three different concepts that need to be computed: inputs: ...
5 years, 2 months ago (2015-09-28 21:39:39 UTC) #5
hush (inactive)
Let me just summarize a little: 1. CVC isVisible: !isPaused when page visibility is disabled, ...
5 years, 2 months ago (2015-09-28 23:27:02 UTC) #6
boliu
Yep all correct. And maybe not bother changing fallback tick logic since it's going away ...
5 years, 2 months ago (2015-09-28 23:41:17 UTC) #7
hush (inactive)
PTAL PS2. So BVR will know the page visibility commandline flag and decides the visibility ...
5 years, 2 months ago (2015-09-29 00:53:10 UTC) #8
hush (inactive)
https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc#newcode450 android_webview/browser/browser_view_renderer.cc:450: bool BrowserViewRenderer::IsClientVisible() const { this is for CVC's visibility. ...
5 years, 2 months ago (2015-09-29 00:55:09 UTC) #10
boliu
https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc#newcode107 android_webview/browser/browser_view_renderer.cc:107: !base::CommandLine::ForCurrentProcess()->HasSwitch( again, do this in aw_contents.cc and pass it ...
5 years, 2 months ago (2015-09-29 01:00:42 UTC) #11
hush (inactive)
https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc#newcode107 android_webview/browser/browser_view_renderer.cc:107: !base::CommandLine::ForCurrentProcess()->HasSwitch( On 2015/09/29 01:00:42, boliu wrote: > again, do ...
5 years, 2 months ago (2015-09-29 01:38:59 UTC) #12
boliu
new patch set? https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc#newcode107 android_webview/browser/browser_view_renderer.cc:107: !base::CommandLine::ForCurrentProcess()->HasSwitch( On 2015/09/29 01:38:59, hush wrote: ...
5 years, 2 months ago (2015-09-29 01:40:23 UTC) #13
hush (inactive)
new patch set is just uploaded https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1377593003/diff/60001/android_webview/browser/browser_view_renderer.cc#newcode107 android_webview/browser/browser_view_renderer.cc:107: !base::CommandLine::ForCurrentProcess()->HasSwitch( On 2015/09/29 ...
5 years, 2 months ago (2015-09-29 01:45:01 UTC) #14
boliu
lgtm % last comment https://codereview.chromium.org/1377593003/diff/80001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1377593003/diff/80001/android_webview/browser/browser_view_renderer.cc#newcode732 android_webview/browser/browser_view_renderer.cc:732: compositor_->SetIsActive(!is_paused_ && IsVisible()); IsClientVisible here
5 years, 2 months ago (2015-09-29 01:47:28 UTC) #15
hush (inactive)
https://codereview.chromium.org/1377593003/diff/80001/android_webview/browser/browser_view_renderer.cc File android_webview/browser/browser_view_renderer.cc (right): https://codereview.chromium.org/1377593003/diff/80001/android_webview/browser/browser_view_renderer.cc#newcode732 android_webview/browser/browser_view_renderer.cc:732: compositor_->SetIsActive(!is_paused_ && IsVisible()); On 2015/09/29 01:47:27, boliu wrote: > ...
5 years, 2 months ago (2015-09-29 01:56:52 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377593003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377593003/100001
5 years, 2 months ago (2015-09-29 02:00:58 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: android_clang_dbg_recipe on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg_recipe/builds/126689)
5 years, 2 months ago (2015-09-29 02:15:22 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377593003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377593003/140001
5 years, 2 months ago (2015-09-29 03:02:46 UTC) #25
commit-bot: I haz the power
Committed patchset #6 (id:140001)
5 years, 2 months ago (2015-09-29 03:38:18 UTC) #26
commit-bot: I haz the power
5 years, 2 months ago (2015-09-29 03:39:00 UTC) #27
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/bcf491b6751a352bda8d801907c05a9215f47007
Cr-Commit-Position: refs/heads/master@{#351253}

Powered by Google App Engine
This is Rietveld 408576698