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

Unified Diff: content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java

Issue 92603002: android: Fix black screen at startng frame when using ContentViewRenderView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 1 month 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
diff --git a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
index 0ecee71b94aa7a52280e0ee4dfcac6dd6c570379..7e50ceaa1ecc70429f593011d9e688cc06189399 100644
--- a/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
+++ b/content/public/android/java/src/org/chromium/content/browser/ContentViewRenderView.java
@@ -63,6 +63,7 @@ public class ContentViewRenderView extends FrameLayout {
setBackgroundColor(Color.WHITE);
no sievers 2013/11/27 21:22:21 I think this can go.
powei 2013/12/02 20:03:38 Done.
mSurfaceView = createSurfaceView(getContext());
+ mSurfaceView.setBackgroundColor(Color.WHITE);
mSurfaceCallback = new SurfaceHolder.Callback() {
@Override
public void surfaceChanged(SurfaceHolder holder, int format, int width, int height) {
@@ -284,6 +285,7 @@ public class ContentViewRenderView extends FrameLayout {
@Override
public void run() {
setBackgroundResource(0);
+ mSurfaceView.setBackground(null);
no sievers 2013/11/27 21:22:21 This is only available in JB and up. Does mSurfac
powei 2013/12/02 20:03:38 Done.
}
});
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698