diff options
author | 2011-08-16 13:55:02 -0700 | |
---|---|---|
committer | 2011-08-16 13:55:02 -0700 | |
commit | 302a9df1d50373c82923bb84ff665dfce584fb22 (patch) | |
tree | 01a6e183b3c0f49676730a679397a31692942f8d /libs/hwui/Layer.h | |
parent | 95a78c38373bb99258d83a6ab2c92825d979f200 (diff) |
Add an API to set the transform on a TextureView's surface texture.
Bug #5156689
Change-Id: I635a625885c9b832a60d44ece0de7613ceb84109
Diffstat (limited to 'libs/hwui/Layer.h')
-rw-r--r-- | libs/hwui/Layer.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libs/hwui/Layer.h b/libs/hwui/Layer.h index dd75497c19a9..a8ae5c6eebd9 100644 --- a/libs/hwui/Layer.h +++ b/libs/hwui/Layer.h @@ -203,6 +203,10 @@ struct Layer { return texTransform; } + inline mat4& getTransform() { + return transform; + } + /** * Bounds of the layer. */ @@ -282,6 +286,11 @@ private: */ mat4 texTransform; + /** + * Optional transform. + */ + mat4 transform; + }; // struct Layer }; // namespace uirenderer |