surfaceflinger: reorder width and height in RenderArea ctor
Height is before width only in a crazy world.
Bug: 113041375
Test: take screenshot, rotate screen, screencap
Change-Id: Ia10b26dbba9a6a91abb5dae9fbe20bf17cd3e78f
Merged-In: Ia10b26dbba9a6a91abb5dae9fbe20bf17cd3e78f
diff --git a/services/surfaceflinger/RenderArea.h b/services/surfaceflinger/RenderArea.h
index d6876ce..38f4cbc 100644
--- a/services/surfaceflinger/RenderArea.h
+++ b/services/surfaceflinger/RenderArea.h
@@ -20,9 +20,9 @@
static float getCaptureFillValue(CaptureFill captureFill);
- RenderArea(uint32_t reqHeight, uint32_t reqWidth, CaptureFill captureFill,
+ RenderArea(uint32_t reqWidth, uint32_t reqHeight, CaptureFill captureFill,
ISurfaceComposer::Rotation rotation = ISurfaceComposer::eRotateNone)
- : mReqHeight(reqHeight), mReqWidth(reqWidth), mCaptureFill(captureFill) {
+ : mReqWidth(reqWidth), mReqHeight(reqHeight), mCaptureFill(captureFill) {
mRotationFlags = Transform::fromRotation(rotation);
}
@@ -74,8 +74,8 @@
status_t updateDimensions(int displayRotation);
private:
- uint32_t mReqHeight;
uint32_t mReqWidth;
+ uint32_t mReqHeight;
Transform::orientation_flags mRotationFlags;
CaptureFill mCaptureFill;
};