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
diff --git a/services/surfaceflinger/RenderArea.h b/services/surfaceflinger/RenderArea.h
index 9920f0a..61abaec 100644
--- a/services/surfaceflinger/RenderArea.h
+++ b/services/surfaceflinger/RenderArea.h
@@ -20,7 +20,7 @@
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);
virtual ~RenderArea() = default;
@@ -71,8 +71,8 @@
status_t updateDimensions(int displayRotation);
private:
- uint32_t mReqHeight;
uint32_t mReqWidth;
+ uint32_t mReqHeight;
ui::Transform::orientation_flags mRotationFlags;
CaptureFill mCaptureFill;
};