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

Unified Diff: android_webview/java/src/org/chromium/android_webview/AwContents.java

Issue 675313002: RELAND: CONTENT: Optimize SurfaceFlinger overlays - Step 1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Whitespace. Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/java/src/org/chromium/android_webview/AwContents.java
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 6455234976dc275aac3a07cc54a844d7d2d22441..96fb7d7988650b946abad1ae2239189c46c5d6a9 100644
--- a/android_webview/java/src/org/chromium/android_webview/AwContents.java
+++ b/android_webview/java/src/org/chromium/android_webview/AwContents.java
@@ -567,7 +567,13 @@ public class AwContents {
AwContentsClient contentsClient, AwSettings settings,
DependencyFactory dependencyFactory) {
mBrowserContext = browserContext;
+
+ // setWillNotDraw(false) is required since WebView draws it's own contents using it's
+ // container view. If this is ever not the case we should remove this, as it removes
+ // Android's gatherTransparentRegion optimization for the view.
mContainerView = containerView;
+ mContainerView.setWillNotDraw(false);
+
mContext = context;
mInternalAccessAdapter = internalAccessAdapter;
mNativeGLDelegate = nativeGLDelegate;
@@ -715,7 +721,12 @@ public class AwContents {
}
private void setContainerView(ViewGroup newContainerView) {
+ // setWillNotDraw(false) is required since WebView draws it's own contents using it's
+ // container view. If this is ever not the case we should remove this, as it removes
+ // Android's gatherTransparentRegion optimization for the view.
mContainerView = newContainerView;
+ mContainerView.setWillNotDraw(false);
+
mContentViewCore.setContainerView(mContainerView);
if (mAwPdfExporter != null) {
mAwPdfExporter.setContainerView(mContainerView);
« no previous file with comments | « no previous file | content/public/android/java/src/org/chromium/content/browser/ContentViewCore.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698