Skip to content

Commit 41308e2

Browse files
author
Romain Guy
committed
Properly draw the window background on window resize
Bug #7385090 This change gets rid of two silly asumptions: - That a layer needs to be cleared with opaque black (it shouldn't, it's already cleared to transparent and the view will cover it up with its own background) - The the clip should be dirty at the beginning of a frame only when the render target is opaque Change-Id: I415b6d3cab196057fb0281419a53fef601a44e28
1 parent 7443753 commit 41308e2

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

core/java/android/view/ViewRootImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1424,8 +1424,6 @@ private void performTraversals() {
14241424
layerCanvas.setViewport(mWidth, mHeight);
14251425
layerCanvas.onPreDraw(null);
14261426
final int restoreCount = layerCanvas.save();
1427-
1428-
layerCanvas.drawColor(0xff000000, PorterDuff.Mode.SRC);
14291427

14301428
int yoff;
14311429
final boolean scrolling = mScroller != null

libs/hwui/OpenGLRenderer.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,7 @@ status_t OpenGLRenderer::prepareDirty(float left, float top, float right, float
179179
mSaveCount = 1;
180180

181181
mSnapshot->setClip(left, top, right, bottom);
182-
mDirtyClip = opaque;
182+
mDirtyClip = true;
183183

184184
updateLayers();
185185

0 commit comments

Comments
 (0)