diff options
author | Byunghun Jeon <bjeon@codeaurora.org> | 2014-12-05 18:28:32 -0800 |
---|---|---|
committer | Steve Kondik <steve@cyngn.com> | 2015-11-08 01:07:13 -0800 |
commit | 987034b5633d0eb7fca806acfe00ddbe3305b159 (patch) | |
tree | 9d186252541a857729a9f3920bd8369d4a056e0d /services/surfaceflinger/RenderEngine/Description.cpp | |
parent | b53d92c3eb9319dbf725b3e59b3c52acfa6d77f0 (diff) | |
download | frameworks_native-987034b5633d0eb7fca806acfe00ddbe3305b159.zip frameworks_native-987034b5633d0eb7fca806acfe00ddbe3305b159.tar.gz frameworks_native-987034b5633d0eb7fca806acfe00ddbe3305b159.tar.bz2 |
SurfaceFlinger: Native changes to add blur effect
Native changes to add blur-behind and blur mask effect
Change-Id: I54faf82d750e8299de6d261f6a893ab26d08df84
SurfaceFlinger: Adding template for LayerBlur files
Change-Id: I444009113b7bdd6c5284863fd1f56358e67d9fe6
SurfaceFlinger: Featurize libuiblur module for OSS build
Change-Id: Ifdc176e699434125d17b111c044b8ba954cf717c
Diffstat (limited to 'services/surfaceflinger/RenderEngine/Description.cpp')
-rw-r--r-- | services/surfaceflinger/RenderEngine/Description.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/services/surfaceflinger/RenderEngine/Description.cpp b/services/surfaceflinger/RenderEngine/Description.cpp index 0dab872..14607ca 100644 --- a/services/surfaceflinger/RenderEngine/Description.cpp +++ b/services/surfaceflinger/RenderEngine/Description.cpp @@ -33,6 +33,8 @@ Description::Description() : mOpaque = true; mTextureEnabled = false; mColorMatrixEnabled = false; + mMaskTextureEnabled = false; + mMaskAlphaThreshold = 0.0f; memset(mColor, 0, sizeof(mColor)); } @@ -92,5 +94,14 @@ const mat4& Description::getColorMatrix() const { return mColorMatrix; } +void Description::setMasking(const Texture& maskTexture, float alphaThreshold) { + mMaskTexture = maskTexture; + mMaskTextureEnabled = true; + mMaskAlphaThreshold = alphaThreshold; +} + +void Description::disableMasking() { + mMaskTextureEnabled = false; +} } /* namespace android */ |