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

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

Issue 314423002: remove extra debug prints (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 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 677 matching lines...) Expand 10 before | Expand all | Expand 10 after
688 builder->fsCodeAppendf("\t%s = vec4(final, final, final, 1.0);\n", outputCol or ); 688 builder->fsCodeAppendf("\t%s = vec4(final, final, final, 1.0);\n", outputCol or );
689 } 689 }
690 690
691 void GrGLRectBlurEffect::setData(const GrGLUniformManager& uman, 691 void GrGLRectBlurEffect::setData(const GrGLUniformManager& uman,
692 const GrDrawEffect& drawEffect) { 692 const GrDrawEffect& drawEffect) {
693 const GrRectBlurEffect& rbe = drawEffect.castEffect<GrRectBlurEffect>(); 693 const GrRectBlurEffect& rbe = drawEffect.castEffect<GrRectBlurEffect>();
694 SkRect rect = rbe.getRect(); 694 SkRect rect = rbe.getRect();
695 695
696 uman.set4f(fProxyRectUniform, rect.fLeft, rect.fTop, rect.fRight, rect.fBott om); 696 uman.set4f(fProxyRectUniform, rect.fLeft, rect.fTop, rect.fRight, rect.fBott om);
697 uman.set1f(fProfileSizeUniform, SkScalarCeilToScalar(6*rbe.getSigma())); 697 uman.set1f(fProfileSizeUniform, SkScalarCeilToScalar(6*rbe.getSigma()));
698
699 SkDebugf( "proxy rect set to %f %f %f %f\n", rect.fLeft, rect.fTop, rect.fRi ght, rect.fBottom);
700 SkDebugf(" Profile size set to %f\n", SkScalarCeilToScalar(6*rbe.getSigma()) );
701 } 698 }
702 699
703 bool GrRectBlurEffect::CreateBlurProfileTexture(GrContext *context, float sigma, 700 bool GrRectBlurEffect::CreateBlurProfileTexture(GrContext *context, float sigma,
704 GrTexture **blurProfileTexture) { 701 GrTexture **blurProfileTexture) {
705 GrTextureParams params; 702 GrTextureParams params;
706 GrTextureDesc texDesc; 703 GrTextureDesc texDesc;
707 704
708 unsigned int profile_size = SkScalarCeilToInt(6*sigma); 705 unsigned int profile_size = SkScalarCeilToInt(6*sigma);
709 706
710 texDesc.fWidth = profile_size; 707 texDesc.fWidth = profile_size;
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
1215 } else { 1212 } else {
1216 str->append("None"); 1213 str->append("None");
1217 } 1214 }
1218 str->append("))"); 1215 str->append("))");
1219 } 1216 }
1220 #endif 1217 #endif
1221 1218
1222 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) 1219 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter)
1223 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) 1220 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl)
1224 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1221 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