summaryrefslogtreecommitdiffstats
path: root/include/gui
diff options
context:
space:
mode:
Diffstat (limited to 'include/gui')
-rw-r--r--include/gui/ISurfaceComposer.h8
-rw-r--r--include/gui/ISurfaceComposerClient.h1
-rw-r--r--include/gui/SurfaceComposerClient.h5
-rw-r--r--include/gui/SurfaceControl.h5
4 files changed, 17 insertions, 2 deletions
diff --git a/include/gui/ISurfaceComposer.h b/include/gui/ISurfaceComposer.h
index 8c3d49e..6e3fc5a 100644
--- a/include/gui/ISurfaceComposer.h
+++ b/include/gui/ISurfaceComposer.h
@@ -59,7 +59,10 @@ public:
enum {
eDisplayIdMain = 0,
- eDisplayIdHdmi = 1
+ eDisplayIdHdmi = 1,
+#ifdef QTI_BSP
+ eDisplayIdTertiary = 2
+#endif
};
enum Rotation {
@@ -144,7 +147,8 @@ public:
Rect sourceCrop, uint32_t reqWidth, uint32_t reqHeight,
uint32_t minLayerZ, uint32_t maxLayerZ,
bool useIdentityTransform,
- Rotation rotation = eRotateNone) = 0;
+ Rotation rotation = eRotateNone,
+ bool isCpuConsumer = false) = 0;
/* Clears the frame statistics for animations.
*
diff --git a/include/gui/ISurfaceComposerClient.h b/include/gui/ISurfaceComposerClient.h
index bb79bd0..d3e8b8b 100644
--- a/include/gui/ISurfaceComposerClient.h
+++ b/include/gui/ISurfaceComposerClient.h
@@ -50,6 +50,7 @@ public:
eCursorWindow = 0x00002000,
eFXSurfaceNormal = 0x00000000,
+ eFXSurfaceBlur = 0x00010000,
eFXSurfaceDim = 0x00020000,
eFXSurfaceMask = 0x000F0000,
};
diff --git a/include/gui/SurfaceComposerClient.h b/include/gui/SurfaceComposerClient.h
index 37d953e..9ec3f23 100644
--- a/include/gui/SurfaceComposerClient.h
+++ b/include/gui/SurfaceComposerClient.h
@@ -163,6 +163,11 @@ public:
const Rect& layerStackRect,
const Rect& displayRect);
+ status_t setBlur(const sp<IBinder>& id, float blur);
+ status_t setBlurMaskSurface(const sp<IBinder>& id, const sp<IBinder>& maskSurfaceId);
+ status_t setBlurMaskSampling(const sp<IBinder>& id, uint32_t blurMaskSampling);
+ status_t setBlurMaskAlphaThreshold(const sp<IBinder>& id, float alpha);
+
private:
virtual void onFirstRef();
Composer& getComposer();
diff --git a/include/gui/SurfaceControl.h b/include/gui/SurfaceControl.h
index 9f62f7c..5fa45d1 100644
--- a/include/gui/SurfaceControl.h
+++ b/include/gui/SurfaceControl.h
@@ -77,6 +77,11 @@ public:
status_t clearLayerFrameStats() const;
status_t getLayerFrameStats(FrameStats* outStats) const;
+ status_t setBlur(float blur = 0);
+ status_t setBlurMaskSurface(const sp<SurfaceControl>& maskSurface);
+ status_t setBlurMaskSampling(uint32_t blurMaskSampling);
+ status_t setBlurMaskAlphaThreshold(float alpha);
+
private:
// can't be copied
SurfaceControl& operator = (SurfaceControl& rhs);