diff options
author | Chris Craik <ccraik@google.com> | 2014-04-15 16:18:08 -0700 |
---|---|---|
committer | Chris Craik <ccraik@google.com> | 2014-04-23 16:15:11 -0700 |
commit | 3f085429fd47ebd32ac2463b3eae2a5a6c17be25 (patch) | |
tree | 2930b7ee50ce98092fde97546a3d546c817038f1 /libs/hwui/Layer.h | |
parent | fbb54b8363b66e0b22d519ee20d1a50e8b5340ee (diff) | |
download | frameworks_base-3f085429fd47ebd32ac2463b3eae2a5a6c17be25.zip frameworks_base-3f085429fd47ebd32ac2463b3eae2a5a6c17be25.tar.gz frameworks_base-3f085429fd47ebd32ac2463b3eae2a5a6c17be25.tar.bz2 |
Clip TouchFeedbackDrawable effect to receiver Outline
Projected RenderNodes are now wrapped with a ClipRect or masked
SaveLayer, so that they are clipped to the outline of the projection
receiver surface.
Change-Id: I1d4afc1bb5d638d650bc0b1dac51a498f216773e
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r-- | libs/hwui/Layer.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index 5375b45..49610d5 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -227,6 +227,14 @@ public: ANDROID_API void setColorFilter(SkColorFilter* filter); + inline void setConvexMask(const SkPath* convexMask) { + this->convexMask = convexMask; + } + + inline const SkPath* getConvexMask() { + return convexMask; + } + void bindStencilRenderBuffer() const; void bindTexture() const; @@ -378,6 +386,13 @@ private: */ DeferredDisplayList* deferredList; + /** + * This convex path should be used to mask the layer's draw to the screen. + * + * Data not owned/managed by layer object. + */ + const SkPath* convexMask; + }; // struct Layer }; // namespace uirenderer |