diff options
Diffstat (limited to 'services/surfaceflinger/RenderArea.cpp')
-rw-r--r-- | services/surfaceflinger/RenderArea.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/services/surfaceflinger/RenderArea.cpp b/services/surfaceflinger/RenderArea.cpp index 918bbd3a47..0a7a546f66 100644 --- a/services/surfaceflinger/RenderArea.cpp +++ b/services/surfaceflinger/RenderArea.cpp @@ -4,27 +4,6 @@ namespace android { -ui::Transform::orientation_flags fromRotation(ISurfaceComposer::Rotation rotation) { - switch (rotation) { - case ISurfaceComposer::eRotateNone: - return ui::Transform::ROT_0; - case ISurfaceComposer::eRotate90: - return ui::Transform::ROT_90; - case ISurfaceComposer::eRotate180: - return ui::Transform::ROT_180; - case ISurfaceComposer::eRotate270: - return ui::Transform::ROT_270; - } - ALOGE("Invalid rotation passed to captureScreen(): %d\n", rotation); - return ui::Transform::ROT_0; -} - -RenderArea::RenderArea(uint32_t reqWidth, uint32_t reqHeight, CaptureFill captureFill, - ISurfaceComposer::Rotation rotation) - : mReqWidth(reqWidth), mReqHeight(reqHeight), mCaptureFill(captureFill) { - mRotationFlags = fromRotation(rotation); -} - float RenderArea::getCaptureFillValue(CaptureFill captureFill) { switch(captureFill) { case CaptureFill::CLEAR: |