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

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

Issue 296153003: Remove SkDebugf that is gumming up the bot logs (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | 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 846 matching lines...) Expand 10 before | Expand all | Expand 10 after
857 GrTextureAccess fNinePatchAccess; 857 GrTextureAccess fNinePatchAccess;
858 858
859 GR_DECLARE_EFFECT_TEST; 859 GR_DECLARE_EFFECT_TEST;
860 860
861 typedef GrEffect INHERITED; 861 typedef GrEffect INHERITED;
862 }; 862 };
863 863
864 864
865 GrEffectRef* GrRRectBlurEffect::Create(GrContext* context, float sigma, const Sk RRect& rrect) { 865 GrEffectRef* GrRRectBlurEffect::Create(GrContext* context, float sigma, const Sk RRect& rrect) {
866 if (!rrect.isSimpleCircular()) { 866 if (!rrect.isSimpleCircular()) {
867 SkDebugf( "not simple circular\n" );
868 return NULL; 867 return NULL;
869 } 868 }
870 869
871 // Make sure we can successfully ninepatch this rrect -- the blur sigma has to be 870 // Make sure we can successfully ninepatch this rrect -- the blur sigma has to be
872 // sufficiently small relative to both the size of the corner radius and the 871 // sufficiently small relative to both the size of the corner radius and the
873 // width (and height) of the rrect. 872 // width (and height) of the rrect.
874 873
875 unsigned int blurRadius = 3*SkScalarCeilToInt(sigma-1/6.0f); 874 unsigned int blurRadius = 3*SkScalarCeilToInt(sigma-1/6.0f);
876 unsigned int cornerRadius = SkScalarCeilToInt(rrect.getSimpleRadii().x()); 875 unsigned int cornerRadius = SkScalarCeilToInt(rrect.getSimpleRadii().x());
877 if (cornerRadius + blurRadius > rrect.width()/2 || 876 if (cornerRadius + blurRadius > rrect.width()/2 ||
(...skipping 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 } else { 1224 } else {
1226 str->append("None"); 1225 str->append("None");
1227 } 1226 }
1228 str->append("))"); 1227 str->append("))");
1229 } 1228 }
1230 #endif 1229 #endif
1231 1230
1232 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) 1231 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter)
1233 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) 1232 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl)
1234 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1233 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« 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