Revert of [Android] Stop hiding the RWHV layer subtree when hiding the widget (patchs...
commit631abee367dc1c119c559ef82e1601e790c2c37c
authorjdduke <jdduke@chromium.org>
Mon, 27 Apr 2015 19:04:03 +0000 (27 12:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 27 Apr 2015 19:04:13 +0000 (27 19:04 +0000)
tree62c55f05f64329f1679ea3d3f745e9c233cbc710
parent4169d03e08f5257c9a6017bec511399121ac28cd
Revert of [Android] Stop hiding the RWHV layer subtree when hiding the widget (patchset #12 id:330001 of https://codereview.chromium.org/1001573003/)

Reason for revert:
Speculative fix for blank display after cold startup.

Original issue's description:
> Reland "[Android] Preserve the front buffer when the activity is paused"
>
> This change was reverted in r322170 due to WebView breakage. The
> ApplicationStatus dependency has been made optional, allowing
> WebView to opt-out of its use.
>
> Original description: ----------------------------
>
> Currently, when an activity is stopped, we explicitly hide the
> foreground Tab. This is problematic, as current hiding semantics
> might clear the visual front buffer before the window is hidden.
> This in turn causes an unpleasant flickering during activity
> transitions, e.g., when backgrounding Chrome or locking the screen.
>
> Wire Activity onPause/onResume notifications to WindowAndroidObservers,
> allowing the foreground tab to preserve its front buffer while hiding
> its web content. If the tab is explicitly hidden, or the root window
> is lost, the front buffer will be cleared as usual.
>
> BUG=462752,434401
>
> Committed: https://crrev.com/7954daf991a2adda234dc2e886b2d1ddf0049221
> Cr-Commit-Position: refs/heads/master@{#322228}

TBR=sievers@chromium.org,dtrainor@chromium.org,tedchoc@chromium.org,piman@chromium.org,boliu@chromium.org,torne@chromium.org
BUG=481450,481115,434401

Review URL: https://codereview.chromium.org/1109863003

Cr-Commit-Position: refs/heads/master@{#327092}
14 files changed:
android_webview/java/src/org/chromium/android_webview/AwContents.java
chrome/android/java/src/org/chromium/chrome/browser/Tab.java
chrome/android/shell/java/src/org/chromium/chrome/shell/ChromeShellActivity.java
content/browser/renderer_host/compositor_impl_android.cc
content/browser/renderer_host/delegated_frame_evictor.cc
content/browser/renderer_host/delegated_frame_evictor.h
content/browser/renderer_host/render_widget_host_view_android.cc
content/browser/renderer_host/render_widget_host_view_android.h
content/shell/android/shell_apk/src/org/chromium/content_shell_apk/ContentShellActivity.java
ui/android/java/src/org/chromium/ui/base/ActivityWindowAndroid.java
ui/android/java/src/org/chromium/ui/base/WindowAndroid.java
ui/android/window_android.cc
ui/android/window_android.h
ui/android/window_android_observer.h