Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(150)

Unified Diff: src/effects/SkResizeImageFilter.cpp

Issue 172793005: Revert "First draft of computeFastBounds() and onFilterBounds() for SkResizeImageFilter.", aka r135… (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/effects/SkResizeImageFilter.cpp
diff --git a/src/effects/SkResizeImageFilter.cpp b/src/effects/SkResizeImageFilter.cpp
index 3c4165c610f92dd827a0710dc61d080e5de740cc..4a3f4b56ee62022e4dbc24c4a646db025ff7c989 100644
--- a/src/effects/SkResizeImageFilter.cpp
+++ b/src/effects/SkResizeImageFilter.cpp
@@ -80,28 +80,3 @@ bool SkResizeImageFilter::onFilterImage(Proxy* proxy,
offset->fY = dstBounds.fTop;
return true;
}
-
-void SkResizeImageFilter::computeFastBounds(const SkRect& src, SkRect* dst) const {
- SkRect bounds = src;
- if (getInput(0)) {
- getInput(0)->computeFastBounds(src, &bounds);
- }
- dst->setXYWH(bounds.x(), bounds.y(), bounds.width() * fSx, bounds.height() * fSy);
-}
-
-bool SkResizeImageFilter::onFilterBounds(const SkIRect& src, const SkMatrix& ctm,
- SkIRect* dst) const {
- SkMatrix dstMatrix;
- SkRect dstRect;
- SkIRect dstRectI;
- dstMatrix.setScale(SkScalarInvert(fSx), SkScalarInvert(fSy));
- dstMatrix.mapRect(&dstRect, SkRect::Make(src));
- dstRect.roundOut(&dstRectI);
- if (getInput(0) && !getInput(0)->filterBounds(dstRectI, ctm, &dstRectI)) {
- return false;
- }
-// *dst = dstRectI;
- *dst = src;
- return true;
-}
-
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698