Revert "Fix external SkImageFilter caching with clips."
authorsenorblanco <senorblanco@chromium.org>
Thu, 19 Jun 2014 20:23:26 +0000 (13:23 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Jun 2014 20:23:27 +0000 (13:23 -0700)
This reverts commit ffa9b500d7e83e7dddf6a8902f47c4355b608c30.

R=reed@google.com
TBR=reed@google.com
NOTRY=True
NOTREECHECKS=True

Author: senorblanco@chromium.org

Review URL: https://codereview.chromium.org/340413004

src/core/SkImageFilter.cpp

index 4c4b56b..6356c1a 100644 (file)
@@ -122,16 +122,6 @@ bool SkImageFilter::filterBounds(const SkIRect& src, const SkMatrix& ctm,
                                  SkIRect* dst) const {
     SkASSERT(&src);
     SkASSERT(dst);
-    if (SkImageFilter::GetExternalCache()) {
-        /*
-         *  When the external cache is active, do not intersect the saveLayer
-         *  bounds with the clip bounds. This is so that the cached result
-         *  is always the full size of the primitive's bounds,
-         *  regardless of the clip active on first draw.
-         */
-        *dst = SkIRect::MakeLargest();
-        return true;
-    }
     return this->onFilterBounds(src, ctm, dst);
 }