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.cpp b/services/surfaceflinger/RenderArea.cpp
index 7f69ce4..918bbd3 100644
--- a/services/surfaceflinger/RenderArea.cpp
+++ b/services/surfaceflinger/RenderArea.cpp
@@ -19,9 +19,9 @@
return ui::Transform::ROT_0;
}
-RenderArea::RenderArea(uint32_t reqHeight, uint32_t reqWidth, CaptureFill captureFill,
+RenderArea::RenderArea(uint32_t reqWidth, uint32_t reqHeight, CaptureFill captureFill,
ISurfaceComposer::Rotation rotation)
- : mReqHeight(reqHeight), mReqWidth(reqWidth), mCaptureFill(captureFill) {
+ : mReqWidth(reqWidth), mReqHeight(reqHeight), mCaptureFill(captureFill) {
mRotationFlags = fromRotation(rotation);
}