diff options
author | Jamie Gennis <jgennis@google.com> | 2011-09-26 16:54:44 -0700 |
---|---|---|
committer | Jamie Gennis <jgennis@google.com> | 2011-09-26 18:38:52 -0700 |
commit | 3a2321211179ae7889f6e1828a5d2af0041406b8 (patch) | |
tree | c4412d9f963f4d0c8390c6dee143e1a2bfdda270 /services/surfaceflinger | |
parent | 61b645ab86ace1511593f1f1f46dfb62bf0ae8b9 (diff) | |
download | frameworks_base-3a2321211179ae7889f6e1828a5d2af0041406b8.zip frameworks_base-3a2321211179ae7889f6e1828a5d2af0041406b8.tar.gz frameworks_base-3a2321211179ae7889f6e1828a5d2af0041406b8.tar.bz2 |
SurfaceFlinger: fix setting default buffer size
This change makes SurfaceFlinger update a SurfaceTextureLayer's default
buffer size in response to a window resize even if the Layer is in fixed
size mode.
Change-Id: I3871c8f19a045d03904d1284390cad7659be71ff
Bug: 5366426
Diffstat (limited to 'services/surfaceflinger')
-rw-r--r-- | services/surfaceflinger/Layer.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/services/surfaceflinger/Layer.cpp b/services/surfaceflinger/Layer.cpp index edbc7b0..3eaaf82 100644 --- a/services/surfaceflinger/Layer.cpp +++ b/services/surfaceflinger/Layer.cpp @@ -371,11 +371,12 @@ uint32_t Layer::doTransaction(uint32_t flags) Layer::State& editDraw(mDrawingState); editDraw.requested_w = temp.requested_w; editDraw.requested_h = temp.requested_h; - - // record the new size, form this point on, when the client request - // a buffer, it'll get the new size. - mSurfaceTexture->setDefaultBufferSize(temp.requested_w, temp.requested_h); } + + // record the new size, form this point on, when the client request + // a buffer, it'll get the new size. + mSurfaceTexture->setDefaultBufferSize(temp.requested_w, + temp.requested_h); } if (temp.sequence != front.sequence) { |