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

Side by Side Diff: src/effects/SkBlurMaskFilter.cpp

Issue 1388113002: Bye bye processor data manager (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: remove files Created 5 years, 2 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 unified diff | Download patch
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.cpp ('k') | src/effects/SkColorCubeFilter.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2006 The Android Open Source Project 3 * Copyright 2006 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #include "SkBlurMaskFilter.h" 9 #include "SkBlurMaskFilter.h"
10 #include "SkBlurMask.h" 10 #include "SkBlurMask.h"
(...skipping 1190 matching lines...) Expand 10 before | Expand all | Expand 10 after
1201 clipRect, false, xformedSigma, xforme dSigma); 1201 clipRect, false, xformedSigma, xforme dSigma);
1202 if (nullptr == *result) { 1202 if (nullptr == *result) {
1203 return false; 1203 return false;
1204 } 1204 }
1205 1205
1206 if (!isNormalBlur) { 1206 if (!isNormalBlur) {
1207 GrPaint paint; 1207 GrPaint paint;
1208 SkMatrix matrix; 1208 SkMatrix matrix;
1209 matrix.setIDiv(src->width(), src->height()); 1209 matrix.setIDiv(src->width(), src->height());
1210 // Blend pathTexture over blurTexture. 1210 // Blend pathTexture over blurTexture.
1211 paint.addCoverageFragmentProcessor( 1211 paint.addCoverageFragmentProcessor(GrSimpleTextureEffect::Create(src, ma trix))->unref();
1212 GrSimpleTextureEffect::Create(paint.getProcessorDataManager(), src, matrix))->unref();
1213 if (kInner_SkBlurStyle == fBlurStyle) { 1212 if (kInner_SkBlurStyle == fBlurStyle) {
1214 // inner: dst = dst * src 1213 // inner: dst = dst * src
1215 paint.setCoverageSetOpXPFactory(SkRegion::kIntersect_Op); 1214 paint.setCoverageSetOpXPFactory(SkRegion::kIntersect_Op);
1216 } else if (kSolid_SkBlurStyle == fBlurStyle) { 1215 } else if (kSolid_SkBlurStyle == fBlurStyle) {
1217 // solid: dst = src + dst - src * dst 1216 // solid: dst = src + dst - src * dst
1218 // = src + (1 - src) * dst 1217 // = src + (1 - src) * dst
1219 paint.setCoverageSetOpXPFactory(SkRegion::kUnion_Op); 1218 paint.setCoverageSetOpXPFactory(SkRegion::kUnion_Op);
1220 } else if (kOuter_SkBlurStyle == fBlurStyle) { 1219 } else if (kOuter_SkBlurStyle == fBlurStyle) {
1221 // outer: dst = dst * (1 - src) 1220 // outer: dst = dst * (1 - src)
1222 // = 0 * src + (1 - src) * dst 1221 // = 0 * src + (1 - src) * dst
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1263 } else { 1262 } else {
1264 str->append("None"); 1263 str->append("None");
1265 } 1264 }
1266 str->append("))"); 1265 str->append("))");
1267 } 1266 }
1268 #endif 1267 #endif
1269 1268
1270 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) 1269 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter)
1271 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) 1270 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl)
1272 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1271 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/effects/SkArithmeticMode_gpu.cpp ('k') | src/effects/SkColorCubeFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698