| Index: src/core/SkAAClip.cpp
|
| diff --git a/src/core/SkAAClip.cpp b/src/core/SkAAClip.cpp
|
| index f71d7b61d237972a4282055a3636ed974d183d59..8372414355c68e3d560785fc433cdc299cb2448c 100644
|
| --- a/src/core/SkAAClip.cpp
|
| +++ b/src/core/SkAAClip.cpp
|
| @@ -940,6 +940,17 @@ bool SkAAClip::quickContains(int left, int top, int right, int bottom) const {
|
| #endif
|
| }
|
|
|
| +bool SkAAClip::quickContains(const SkRect& r) const {
|
| + if (this->isEmpty()) {
|
| + return false;
|
| + }
|
| + if (!fBounds.contains(r)) {
|
| + return false;
|
| + }
|
| + // If r is contained in fBounds, it has to be in range of int32.
|
| + return this->quickContains(r.roundOut());
|
| +}
|
| +
|
| ///////////////////////////////////////////////////////////////////////////////
|
|
|
| class SkAAClip::Builder {
|
|
|