| Index: src/core/SkRecordDraw.cpp
|
| diff --git a/src/core/SkRecordDraw.cpp b/src/core/SkRecordDraw.cpp
|
| index 6a2a5e3677b4395b980f6e0b23b110ddafc5fd89..3d6f3a032159e0f67a0c35dcd1cc59c85b5e9fb8 100644
|
| --- a/src/core/SkRecordDraw.cpp
|
| +++ b/src/core/SkRecordDraw.cpp
|
| @@ -220,7 +220,10 @@ public:
|
|
|
| // Nothing can draw outside the current clip.
|
| // (Only bounded ops call into this method, so oddballs like Clear don't matter here.)
|
| - rect.intersect(fCurrentClipBounds);
|
| + if (!rect.intersect(fCurrentClipBounds)) {
|
| + return Bounds::MakeEmpty();
|
| + }
|
| +
|
| return rect;
|
| }
|
|
|
|
|