diff options
Diffstat (limited to 'libs')
| -rw-r--r-- | libs/hwui/Snapshot.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/hwui/Snapshot.h b/libs/hwui/Snapshot.h index 595ad4e92e3b..bd7031927b5e 100644 --- a/libs/hwui/Snapshot.h +++ b/libs/hwui/Snapshot.h @@ -150,6 +150,10 @@ public: break; case SkRegion::kIntersect_Op: clipped = clipRect->intersect(r); + if (!clipped) { + clipRect->setEmpty(); + clipped = true; + } break; case SkRegion::kUnion_Op: clipped = clipRect->unionWith(r); |