Skip to content

Commit da42e0f

Browse files
Jamie GennisAndroid (Google) Code Review
authored andcommitted
Merge "SurfaceFlinger: fix setting default buffer size" into ics-factoryrom
2 parents 5fd141c + 3a23212 commit da42e0f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

services/surfaceflinger/Layer.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,11 +371,12 @@ uint32_t Layer::doTransaction(uint32_t flags)
371371
Layer::State& editDraw(mDrawingState);
372372
editDraw.requested_w = temp.requested_w;
373373
editDraw.requested_h = temp.requested_h;
374-
375-
// record the new size, form this point on, when the client request
376-
// a buffer, it'll get the new size.
377-
mSurfaceTexture->setDefaultBufferSize(temp.requested_w, temp.requested_h);
378374
}
375+
376+
// record the new size, form this point on, when the client request
377+
// a buffer, it'll get the new size.
378+
mSurfaceTexture->setDefaultBufferSize(temp.requested_w,
379+
temp.requested_h);
379380
}
380381

381382
if (temp.sequence != front.sequence) {

0 commit comments

Comments
 (0)