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 /libs/hwui/renderthread/RenderProxy.h | |
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 'libs/hwui/renderthread/RenderProxy.h')
-rw-r--r-- | libs/hwui/renderthread/RenderProxy.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libs/hwui/renderthread/RenderProxy.h b/libs/hwui/renderthread/RenderProxy.h index ad534f0d96b5..0d29b4bcc317 100644 --- a/libs/hwui/renderthread/RenderProxy.h +++ b/libs/hwui/renderthread/RenderProxy.h @@ -70,6 +70,7 @@ public: ANDROID_API void setName(const char* name); ANDROID_API void initialize(const sp<Surface>& surface); + ANDROID_API void allocateBuffers(const sp<Surface>& surface); ANDROID_API void updateSurface(const sp<Surface>& surface); ANDROID_API bool pauseSurface(const sp<Surface>& surface); ANDROID_API void setStopped(bool stopped); |