diff options
| author | Romain Guy <romainguy@google.com> | 2012-10-22 20:02:43 -0700 |
|---|---|---|
| committer | Romain Guy <romainguy@google.com> | 2012-10-22 20:02:43 -0700 |
| commit | 41308e2936c768103d0e9c82500e97938d6797f1 (patch) | |
| tree | b31868af7c192446f213156bd10ae57211d44712 /core/java/android/view | |
| parent | 74437532fe2a3e9ebd15c61327fd3f2b68c299b3 (diff) | |
| download | frameworks_base-41308e2936c768103d0e9c82500e97938d6797f1.zip frameworks_base-41308e2936c768103d0e9c82500e97938d6797f1.tar.gz frameworks_base-41308e2936c768103d0e9c82500e97938d6797f1.tar.bz2 | |
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
Diffstat (limited to 'core/java/android/view')
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 8a82a54..ded4cfc 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -1424,8 +1424,6 @@ public final class ViewRootImpl implements ViewParent, layerCanvas.setViewport(mWidth, mHeight); layerCanvas.onPreDraw(null); final int restoreCount = layerCanvas.save(); - - layerCanvas.drawColor(0xff000000, PorterDuff.Mode.SRC); int yoff; final boolean scrolling = mScroller != null |
