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

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

Issue 1417123002: Move GrGLShaderVar to GrGLSL (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: fix gyp 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 | « gyp/gpu.gypi ('k') | src/effects/SkLightingImageFilter.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 703 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 void GrGLRectBlurEffect::GenKey(GrSLPrecision precision, GrProcessorKeyBuilder* b) { 714 void GrGLRectBlurEffect::GenKey(GrSLPrecision precision, GrProcessorKeyBuilder* b) {
715 b->add32(precision); 715 b->add32(precision);
716 } 716 }
717 717
718 718
719 void GrGLRectBlurEffect::emitCode(EmitArgs& args) { 719 void GrGLRectBlurEffect::emitCode(EmitArgs& args) {
720 720
721 const char *rectName; 721 const char *rectName;
722 const char *profileSizeName; 722 const char *profileSizeName;
723 723
724 const char* precisionString = GrGLShaderVar::PrecisionString(args.fBuilder-> glslCaps(), 724 const char* precisionString = GrGLSLShaderVar::PrecisionString(args.fBuilder ->glslCaps(),
725 fPrecision); 725 fPrecision);
726 fProxyRectUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_ Visibility, 726 fProxyRectUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragment_ Visibility,
727 kVec4f_GrSLType, 727 kVec4f_GrSLType,
728 fPrecision, 728 fPrecision,
729 "proxyRect", 729 "proxyRect",
730 &rectName); 730 &rectName);
731 fProfileSizeUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragmen t_Visibility, 731 fProfileSizeUniform = args.fBuilder->addUniform(GrGLProgramBuilder::kFragmen t_Visibility,
732 kFloat_GrSLType, 732 kFloat_GrSLType,
733 kDefault_GrSLPrecision, 733 kDefault_GrSLPrecision,
734 "profileSize", 734 "profileSize",
735 &profileSizeName); 735 &profileSizeName);
(...skipping 561 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 } else { 1297 } else {
1298 str->append("None"); 1298 str->append("None");
1299 } 1299 }
1300 str->append("))"); 1300 str->append("))");
1301 } 1301 }
1302 #endif 1302 #endif
1303 1303
1304 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter) 1304 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_START(SkBlurMaskFilter)
1305 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl) 1305 SK_DEFINE_FLATTENABLE_REGISTRAR_ENTRY(SkBlurMaskFilterImpl)
1306 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END 1306 SK_DEFINE_FLATTENABLE_REGISTRAR_GROUP_END
OLDNEW
« no previous file with comments | « gyp/gpu.gypi ('k') | src/effects/SkLightingImageFilter.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698