Commit 3f68a4c6 authored by yusufo@chromium.org's avatar yusufo@chromium.org

Set background color for surface view only once in ContentViewRenderView

Right now we set the surface view background color everytime we create a new
surface and this causes a white flash everytime the activity is resumed

BUG=365589

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@272312 0039d316-1c4b-4281-b951-d872f2087c98
parent b989cf8c
......@@ -60,8 +60,6 @@ public class ContentViewRenderView extends FrameLayout {
@Override
public void surfaceCreated(SurfaceHolder holder) {
setSurfaceViewBackgroundColor(Color.WHITE);
assert mNativeContentViewRenderView != 0;
nativeSurfaceCreated(mNativeContentViewRenderView);
......@@ -75,6 +73,7 @@ public class ContentViewRenderView extends FrameLayout {
}
};
mSurfaceView.getHolder().addCallback(mSurfaceCallback);
setSurfaceViewBackgroundColor(Color.WHITE);
addView(mSurfaceView,
new FrameLayout.LayoutParams(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment