diff options
author | jdduke <jdduke@chromium.org> | 2015-04-27 12:04:03 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-04-27 19:04:13 +0000 |
commit | 631abee367dc1c119c559ef82e1601e790c2c37c (patch) | |
tree | 62c55f05f64329f1679ea3d3f745e9c233cbc710 /android_webview | |
parent | 4169d03e08f5257c9a6017bec511399121ac28cd (diff) | |
download | chromium_src-631abee367dc1c119c559ef82e1601e790c2c37c.zip chromium_src-631abee367dc1c119c559ef82e1601e790c2c37c.tar.gz chromium_src-631abee367dc1c119c559ef82e1601e790c2c37c.tar.bz2 |
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}
Diffstat (limited to 'android_webview')
-rw-r--r-- | android_webview/java/src/org/chromium/android_webview/AwContents.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/android_webview/java/src/org/chromium/android_webview/AwContents.java b/android_webview/java/src/org/chromium/android_webview/AwContents.java index 0a0e853..4a97cab 100644 --- a/android_webview/java/src/org/chromium/android_webview/AwContents.java +++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java @@ -871,11 +871,9 @@ public class AwContents implements SmartClipProvider, WebContents webContents = nativeGetWebContents(mNativeAwContents); - // WebView does not currently initialize ApplicationStatus, crbug.com/470582. - final boolean listenToActivityState = false; Activity activity = ContentViewCore.activityFromContext(mContext); mWindowAndroid = activity != null - ? new ActivityWindowAndroid(activity, listenToActivityState) + ? new ActivityWindowAndroid(activity) : new WindowAndroid(mContext.getApplicationContext()); mContentViewCore = createAndInitializeContentViewCore( mContainerView, mContext, mInternalAccessAdapter, webContents, |