diff options
Diffstat (limited to 'libs/hwui/Snapshot.cpp')
-rw-r--r-- | libs/hwui/Snapshot.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Snapshot.cpp b/libs/hwui/Snapshot.cpp index 4484676..fbc8455 100644 --- a/libs/hwui/Snapshot.cpp +++ b/libs/hwui/Snapshot.cpp @@ -178,6 +178,10 @@ void Snapshot::setClip(float left, float top, float right, float bottom) { flags |= Snapshot::kFlagClipSet; } +bool Snapshot::hasPerspectiveTransform() const { + return transform->isPerspective(); +} + const Rect& Snapshot::getLocalClip() { mat4 inverse; inverse.loadInverse(*transform); |