Home | History | Annotate | Download | only in ccpr

Lines Matching refs:code

4  * Use of this source code is governed by a BSD-style license that can be
81 GrGLSLVarying::Scope scope, SkString* code,
88 code->appendf("float3 klm = float3(%s, 1) * %s;", position, fKLMMatrix.c_str());
89 code->appendf("float d = dot(float3(%s, 1), %s);", position, fEdgeDistanceEquation.c_str());
90 code->appendf("%s = float4(klm, d);", OutName(fKLMD));
92 this->onEmitVaryings(varyingHandler, scope, code);
110 GrGLSLVarying::Scope scope, SkString* code) {
114 code->appendf("%s[0] = 3 * klm[0] * %s[0].xy;", OutName(fGradMatrix), fKLMMatrix.c_str());
115 code->appendf("%s[1] = -klm[1] * %s[2].xy - klm[2] * %s[1].xy;",
135 GrGLSLVarying::Scope scope, SkString* code) {
138 code->appendf("%s = float4(%s[0].x, %s[1].x, %s[2].x, %s.x);",
144 code->appendf("%s = float4(%s[0].y, %s[1].y, %s[2].y, %s.y);",