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

Unified Diff: src/device/xps/SkXPSDevice.cpp

Issue 18110012: Add canFilterMaskGPU & filterMaskGPU to SkMaskFilter (Closed) Base URL: http://skia.googlecode.com/svn/trunk/
Patch Set: added comments & fixed nits Created 7 years, 6 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
Index: src/device/xps/SkXPSDevice.cpp
===================================================================
--- src/device/xps/SkXPSDevice.cpp (revision 9883)
+++ src/device/xps/SkXPSDevice.cpp (working copy)
@@ -1542,21 +1542,6 @@
SkMatrix* matrix,
SkVector* ppuScale,
const SkIRect& clip, SkIRect* clipIRect) {
- //TODO: currently ignoring the ppm if blur ignoring transform.
- if (filter) {
- SkMaskFilter::BlurInfo blurInfo;
- SkMaskFilter::BlurType blurType = filter->asABlur(&blurInfo);
-
- if (SkMaskFilter::kNone_BlurType != blurType
- && blurInfo.fIgnoreTransform) {
-
- ppuScale->fX = SK_Scalar1;
- ppuScale->fY = SK_Scalar1;
- *clipIRect = clip;
- return;
- }
- }
-
//This action is in unit space, but the ppm is specified in physical space.
ppuScale->fX = SkScalarDiv(this->fCurrentPixelsPerMeter.fX,
this->fCurrentUnitsPerMeter.fX);

Powered by Google App Engine
This is Rietveld 408576698