diff options
| author | Jorim Jaggi <jjaggi@google.com> | 2018-07-17 15:24:16 +0200 |
|---|---|---|
| committer | Jorim Jaggi <jjaggi@google.com> | 2018-07-17 17:34:49 +0200 |
| commit | 7823ee73ee504fcb5b0448b0b8f1b4804309df45 (patch) | |
| tree | f8da6181ceba92bf79e44981bf8305bcb1cd862b /core/java/android/view/ViewRootImpl.java | |
| parent | 0c84996a12ace0a81ecfeb5f3a79e55127a06af0 (diff) | |
Move allocateBuffers to RT
Such that it gets executed after setSurface, in order that
mReqUsage has the correct flags set.
Test: Take trace, ensure that allocateBuffers actually allocates
in the right format/usage by ensuring that dequeueBuffer doesn't
trash them immediately again.
Bug: 111517695
Change-Id: I94b402d7b29d565155a77a2d09106246261712d2
Diffstat (limited to 'core/java/android/view/ViewRootImpl.java')
| -rw-r--r-- | core/java/android/view/ViewRootImpl.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/view/ViewRootImpl.java b/core/java/android/view/ViewRootImpl.java index 98a1ec38a1b4..6df0173d9684 100644 --- a/core/java/android/view/ViewRootImpl.java +++ b/core/java/android/view/ViewRootImpl.java @@ -2103,7 +2103,7 @@ public final class ViewRootImpl implements ViewParent, & View.PFLAG_REQUEST_TRANSPARENT_REGIONS) == 0) { // Don't pre-allocate if transparent regions // are requested as they may not be needed - mSurface.allocateBuffers(); + mAttachInfo.mThreadedRenderer.allocateBuffers(mSurface); } } catch (OutOfResourcesException e) { handleOutOfResourcesException(e); |
