summaryrefslogtreecommitdiffstats
path: root/services/surfaceflinger/LayerBlur.cpp
diff options
context:
space:
mode:
authorSaurabh Shah <saurshah@codeaurora.org>2016-03-21 17:25:23 -0700
committerSteve Kondik <steve@cyngn.com>2016-07-20 04:16:16 -0700
commita887c19994c7873fbe651e2fe944a176576a6198 (patch)
tree107611910ed93ee1fb14fc8330aa1f8f1baadcbe /services/surfaceflinger/LayerBlur.cpp
parentc91bafb88a3abf50c369637caf79fb027b48c46e (diff)
downloadframeworks_native-a887c19994c7873fbe651e2fe944a176576a6198.zip
frameworks_native-a887c19994c7873fbe651e2fe944a176576a6198.tar.gz
frameworks_native-a887c19994c7873fbe651e2fe944a176576a6198.tar.bz2
SF: Add support for all flips of panel mount
Add support for all flips of panel mount, H, V, HV (180). Property persist.panel.mountflip can be set to 1 for H-Flip, 2 for V-Flip, 3 for HV-Flip (180 / inverse mount). Change-Id: Ide7b8378ad6a423e5d7335fedc27d480a25b53ae CRs-fixed: 990622
Diffstat (limited to 'services/surfaceflinger/LayerBlur.cpp')
-rw-r--r--services/surfaceflinger/LayerBlur.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/services/surfaceflinger/LayerBlur.cpp b/services/surfaceflinger/LayerBlur.cpp
index 021978d..4f5a72d 100644
--- a/services/surfaceflinger/LayerBlur.cpp
+++ b/services/surfaceflinger/LayerBlur.cpp
@@ -238,8 +238,7 @@ bool LayerBlur::captureScreen(const sp<const DisplayDevice>& hw, FBO& fbo, Textu
texture.getTextureName(), 0);
mFlinger->getRenderEngine().clearWithColor(0.0f, 0.0f, 0.0f, 1.0f);
- if (hw->isPanelInverseMounted())
- rotation = Transform::ROT_180;
+ rotation = (Transform::orientation_flags)(rotation ^ hw->getPanelMountFlip());
mFlinger->renderScreenImplLocked(
hw,
Rect(0,0,width,height),