Lines Matching refs:code
4 * Use of this source code is governed by a BSD-style license that can be
118 /* Generate Type 4 function code to map t=[0,1) to the passed gradient,
119 clamping at the edges of the range. The generated code will be of the form:
320 * Returns PS function code that applies inverse perspective
324 * After executing this code on a PS stack, the last 2 elements are updated
329 SkDynamicMemoryWStream* code) {
347 code->writeText(" dup "); // x y y
348 SkPDFUtils::AppendScalar(p1, code); // x y y p1
349 code->writeText(" mul " // x y y*p1
351 SkPDFUtils::AppendScalar(p0, code); // x y y p1 x p0
352 code->writeText(" mul "); // x y y*p1 x*p0
353 SkPDFUtils::AppendScalar(p2, code); // x y y p1 x*p0 p2
354 code->writeText(" add " // x y y*p1 x*p0+p2
688 // In this way the shader will handle it eficiently, with minimal code.