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

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

Issue 929243004: adding preabandon flag to DM (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: feedback incorporated Created 5 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 unified diff | Download patch
« no previous file with comments | « src/effects/SkBlurImageFilter.cpp ('k') | src/effects/gradients/SkGradientShader.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 947 matching lines...) Expand 10 before | Expand all | Expand 10 after
958 SkBlurMask::BoxBlur(&blurred_mask, mask, sigma, kNormal_SkBlurStyle, kHi gh_SkBlurQuality, 958 SkBlurMask::BoxBlur(&blurred_mask, mask, sigma, kNormal_SkBlurStyle, kHi gh_SkBlurQuality,
959 NULL, true ); 959 NULL, true );
960 960
961 unsigned int texSide = smallRectSide + 2*blurRadius; 961 unsigned int texSide = smallRectSide + 2*blurRadius;
962 GrSurfaceDesc texDesc; 962 GrSurfaceDesc texDesc;
963 texDesc.fWidth = texSide; 963 texDesc.fWidth = texSide;
964 texDesc.fHeight = texSide; 964 texDesc.fHeight = texSide;
965 texDesc.fConfig = kAlpha_8_GrPixelConfig; 965 texDesc.fConfig = kAlpha_8_GrPixelConfig;
966 966
967 blurNinePatchTexture = context->createTexture(texDesc, true, blurred_mas k.fImage, 0); 967 blurNinePatchTexture = context->createTexture(texDesc, true, blurred_mas k.fImage, 0);
968 if (!blurNinePatchTexture) {
969 return NULL;
970 }
968 context->addResourceToCache(key, blurNinePatchTexture); 971 context->addResourceToCache(key, blurNinePatchTexture);
969 972
970 SkMask::FreeImage(blurred_mask.fImage); 973 SkMask::FreeImage(blurred_mask.fImage);
971 } 974 }
972 975
973 SkAutoTUnref<GrTexture> blurunref(blurNinePatchTexture); 976 SkAutoTUnref<GrTexture> blurunref(blurNinePatchTexture);
974 if (NULL == blurNinePatchTexture) { 977 if (NULL == blurNinePatchTexture) {
975 return NULL; 978 return NULL;
976 } 979 }
977 980
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
1269 } else { 1272 } else {
1270 str->append("None"); 1273 str->append("None");
1271 } 1274 }
1272 str->append("))"); 1275 str->append("))");
1273 } 1276 }
1274 #endif 1277 #endif
1275 1278
1276 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) 1279 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter)
1277 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) 1280 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl)
1278 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1281 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « src/effects/SkBlurImageFilter.cpp ('k') | src/effects/gradients/SkGradientShader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698