/external/chromium_org/third_party/skia/src/gpu/effects/ |
GrBezierEffect.cpp | 59 builder->fsCodeAppend("\t\tfloat edgeAlpha;\n"); 73 builder->fsCodeAppend("\t\tvec2 gF = vec2(dfdx, dfdy);\n"); 74 builder->fsCodeAppend("\t\tfloat gFM = sqrt(dot(gF, gF));\n"); 77 builder->fsCodeAppend("\t\tfunc = abs(func);\n"); 78 builder->fsCodeAppend("\t\tedgeAlpha = func / gFM;\n"); 79 builder->fsCodeAppend("\t\tedgeAlpha = max(1.0 - edgeAlpha, 0.0);\n"); 81 // builder->fsCodeAppend("\t\tedgeAlpha = edgeAlpha*edgeAlpha*(3.0-2.0*edgeAlpha);\n"); 95 builder->fsCodeAppend("\t\tvec2 gF = vec2(dfdx, dfdy);\n"); 96 builder->fsCodeAppend("\t\tfloat gFM = sqrt(dot(gF, gF));\n"); 99 builder->fsCodeAppend("\t\tedgeAlpha = func / gFM;\n") [all...] |
GrDistanceFieldTextureEffect.cpp | 44 builder->fsCodeAppend("\tvec4 texColor = "); 48 builder->fsCodeAppend(";\n"); 49 builder->fsCodeAppend("\tfloat distance = texColor.r;\n"); 52 builder->fsCodeAppend("\tfloat afwidth = 0.7071*length(vec2(dFdx(distance), dFdy(distance)));\n"); 53 builder->fsCodeAppend("\tfloat val = smoothstep("THRESHOLD"-afwidth, "THRESHOLD"+afwidth, distance);\n");
|
GrTextureDomain.cpp | 55 builder->fsCodeAppend(";\n"); 76 builder->fsCodeAppend(";\n"); 90 builder->fsCodeAppend("\tvec4 outside = vec4(0.0, 0.0, 0.0, 0.0);\n"); 91 builder->fsCodeAppend("\tvec4 inside = "); 93 builder->fsCodeAppend(";\n"); 99 builder->fsCodeAppend("\tfloat blend = step(1.0, max(x, y));\n"); 102 builder->fsCodeAppend("\tbvec4 outside;\n"); 109 builder->fsCodeAppend(";\n");
|
GrSimpleTextureEffect.cpp | 33 builder->fsCodeAppend(";\n");
|
GrBicubicEffect.cpp | 82 builder->fsCodeAppend("\tvec2 f = fract(coord);\n"); 90 builder->fsCodeAppend(";\n");
|
GrCustomCoordsTextureEffect.cpp | 45 builder->fsCodeAppend(";\n");
|
/external/skia/src/gpu/effects/ |
GrBezierEffect.cpp | 59 builder->fsCodeAppend("\t\tfloat edgeAlpha;\n"); 73 builder->fsCodeAppend("\t\tvec2 gF = vec2(dfdx, dfdy);\n"); 74 builder->fsCodeAppend("\t\tfloat gFM = sqrt(dot(gF, gF));\n"); 77 builder->fsCodeAppend("\t\tfunc = abs(func);\n"); 78 builder->fsCodeAppend("\t\tedgeAlpha = func / gFM;\n"); 79 builder->fsCodeAppend("\t\tedgeAlpha = max(1.0 - edgeAlpha, 0.0);\n"); 81 // builder->fsCodeAppend("\t\tedgeAlpha = edgeAlpha*edgeAlpha*(3.0-2.0*edgeAlpha);\n"); 95 builder->fsCodeAppend("\t\tvec2 gF = vec2(dfdx, dfdy);\n"); 96 builder->fsCodeAppend("\t\tfloat gFM = sqrt(dot(gF, gF));\n"); 99 builder->fsCodeAppend("\t\tedgeAlpha = func / gFM;\n") [all...] |
GrDistanceFieldTextureEffect.cpp | 44 builder->fsCodeAppend("\tvec4 texColor = "); 48 builder->fsCodeAppend(";\n"); 49 builder->fsCodeAppend("\tfloat distance = texColor.r;\n"); 52 builder->fsCodeAppend("\tfloat afwidth = 0.7071*length(vec2(dFdx(distance), dFdy(distance)));\n"); 53 builder->fsCodeAppend("\tfloat val = smoothstep("THRESHOLD"-afwidth, "THRESHOLD"+afwidth, distance);\n");
|
GrTextureDomain.cpp | 55 builder->fsCodeAppend(";\n"); 76 builder->fsCodeAppend(";\n"); 90 builder->fsCodeAppend("\tvec4 outside = vec4(0.0, 0.0, 0.0, 0.0);\n"); 91 builder->fsCodeAppend("\tvec4 inside = "); 93 builder->fsCodeAppend(";\n"); 99 builder->fsCodeAppend("\tfloat blend = step(1.0, max(x, y));\n"); 102 builder->fsCodeAppend("\tbvec4 outside;\n"); 109 builder->fsCodeAppend(";\n");
|
GrSimpleTextureEffect.cpp | 33 builder->fsCodeAppend(";\n");
|
GrBicubicEffect.cpp | 82 builder->fsCodeAppend("\tvec2 f = fract(coord);\n"); 90 builder->fsCodeAppend(";\n");
|
/external/chromium_org/third_party/skia/src/effects/ |
SkMagnifierImageFilter.cpp | 146 builder->fsCodeAppend("\t\tvec2 delta = min(coord, vec2(1.0, 1.0) - coord);\n"); 150 builder->fsCodeAppend("\t\tfloat weight = 0.0;\n"); 151 builder->fsCodeAppend("\t\tif (delta.s < 2.0 && delta.t < 2.0) {\n"); 152 builder->fsCodeAppend("\t\t\tdelta = vec2(2.0, 2.0) - delta;\n"); 153 builder->fsCodeAppend("\t\t\tfloat dist = length(delta);\n"); 154 builder->fsCodeAppend("\t\t\tdist = max(2.0 - dist, 0.0);\n"); 155 builder->fsCodeAppend("\t\t\tweight = min(dist * dist, 1.0);\n"); 156 builder->fsCodeAppend("\t\t} else {\n"); 157 builder->fsCodeAppend("\t\t\tvec2 delta_squared = delta * delta;\n"); 158 builder->fsCodeAppend("\t\t\tweight = min(min(delta_squared.x, delta_squared.y), 1.0);\n") [all...] |
SkBitmapAlphaThresholdShader.cpp | 123 builder->fsCodeAppend("\t\tvec4 color = "); 125 builder->fsCodeAppend(";\n"); 128 builder->fsCodeAppend("\t\tfloat mask = "); 130 builder->fsCodeAppend(".a;\n"); 140 builder->fsCodeAppend("\t\tif (mask < 0.5) {\n"
|
SkDisplacementMapEffect.cpp | 471 builder->fsCodeAppend(";\n"); 482 builder->fsCodeAppend("r"); 485 builder->fsCodeAppend("g"); 488 builder->fsCodeAppend("b"); 491 builder->fsCodeAppend("a"); 500 builder->fsCodeAppend("r"); 503 builder->fsCodeAppend("g"); 506 builder->fsCodeAppend("b"); 509 builder->fsCodeAppend("a"); 515 builder->fsCodeAppend("-vec2(0.5));\t\t") [all...] |
SkMatrixConvolutionImageFilter.cpp | 482 builder->fsCodeAppend("\t\tvec4 sum = vec4(0, 0, 0, 0);\n"); 488 builder->fsCodeAppend("\t\t\t\tvec4 c = "); 490 builder->fsCodeAppend(";\n"); 492 builder->fsCodeAppend("\t\t\t\tc.rgb /= c.a;\n"); 494 builder->fsCodeAppend("\t\t\t\tsum += c * k;\n"); 495 builder->fsCodeAppend("\t\t\t}\n"); 496 builder->fsCodeAppend("\t\t}\n"); 502 builder->fsCodeAppend("\t\tvec4 c = "); 504 builder->fsCodeAppend(";\n");
|
SkTableColorFilter.cpp | 318 builder->fsCodeAppend(";\n"); 322 builder->fsCodeAppend(";\n"); 326 builder->fsCodeAppend(";\n"); 330 builder->fsCodeAppend(";\n");
|
/external/skia/src/effects/ |
SkMagnifierImageFilter.cpp | 146 builder->fsCodeAppend("\t\tvec2 delta = min(coord, vec2(1.0, 1.0) - coord);\n"); 150 builder->fsCodeAppend("\t\tfloat weight = 0.0;\n"); 151 builder->fsCodeAppend("\t\tif (delta.s < 2.0 && delta.t < 2.0) {\n"); 152 builder->fsCodeAppend("\t\t\tdelta = vec2(2.0, 2.0) - delta;\n"); 153 builder->fsCodeAppend("\t\t\tfloat dist = length(delta);\n"); 154 builder->fsCodeAppend("\t\t\tdist = max(2.0 - dist, 0.0);\n"); 155 builder->fsCodeAppend("\t\t\tweight = min(dist * dist, 1.0);\n"); 156 builder->fsCodeAppend("\t\t} else {\n"); 157 builder->fsCodeAppend("\t\t\tvec2 delta_squared = delta * delta;\n"); 158 builder->fsCodeAppend("\t\t\tweight = min(min(delta_squared.x, delta_squared.y), 1.0);\n") [all...] |
SkBitmapAlphaThresholdShader.cpp | 123 builder->fsCodeAppend("\t\tvec4 color = "); 125 builder->fsCodeAppend(";\n"); 128 builder->fsCodeAppend("\t\tfloat mask = "); 130 builder->fsCodeAppend(".a;\n"); 140 builder->fsCodeAppend("\t\tif (mask < 0.5) {\n"
|
SkDisplacementMapEffect.cpp | 471 builder->fsCodeAppend(";\n"); 482 builder->fsCodeAppend("r"); 485 builder->fsCodeAppend("g"); 488 builder->fsCodeAppend("b"); 491 builder->fsCodeAppend("a"); 500 builder->fsCodeAppend("r"); 503 builder->fsCodeAppend("g"); 506 builder->fsCodeAppend("b"); 509 builder->fsCodeAppend("a"); 515 builder->fsCodeAppend("-vec2(0.5));\t\t") [all...] |
/external/chromium_org/third_party/skia/src/gpu/ |
GrOvalRenderer.cpp | 114 builder->fsCodeAppend("\tedgeAlpha *= innerAlpha;\n"); 230 builder->fsCodeAppend("\tfloat test = dot(scaledOffset, scaledOffset) - 1.0;\n"); 232 builder->fsCodeAppend("\tfloat grad_dot = dot(grad, grad);\n"); 236 builder->fsCodeAppend("\tgrad_dot = max(grad_dot, 1.0e-4);\n"); 237 builder->fsCodeAppend("\tfloat invlen = inversesqrt(grad_dot);\n"); 238 builder->fsCodeAppend("\tfloat edgeAlpha = clamp(0.5-test*invlen, 0.0, 1.0);\n"); 243 builder->fsCodeAppend("\ttest = dot(scaledOffset, scaledOffset) - 1.0;\n"); 245 builder->fsCodeAppend("\tinvlen = inversesqrt(dot(grad, grad));\n"); 246 builder->fsCodeAppend("\tedgeAlpha *= clamp(0.5+test*invlen, 0.0, 1.0);\n"); 373 builder->fsCodeAppend("\tfloat test = dot(scaledOffset, scaledOffset) - 1.0;\n") [all...] |
GrAARectRenderer.cpp | 65 builder->fsCodeAppend("\tfloat outset = 0.5;\n"); 68 builder->fsCodeAppend("\tfloat spanW = insetW + outset;\n"); 69 builder->fsCodeAppend("\tfloat spanH = insetH + outset;\n"); 73 builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n"); 74 builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n"); 191 builder->fsCodeAppend("\tfloat outset = 0.5;\n"); 194 builder->fsCodeAppend("\tfloat spanW = insetW + outset;\n"); 195 builder->fsCodeAppend("\tfloat spanH = insetH + outset;\n"); 199 builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n"); 200 builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n") [all...] |
/external/skia/src/gpu/ |
GrOvalRenderer.cpp | 114 builder->fsCodeAppend("\tedgeAlpha *= innerAlpha;\n"); 230 builder->fsCodeAppend("\tfloat test = dot(scaledOffset, scaledOffset) - 1.0;\n"); 232 builder->fsCodeAppend("\tfloat grad_dot = dot(grad, grad);\n"); 236 builder->fsCodeAppend("\tgrad_dot = max(grad_dot, 1.0e-4);\n"); 237 builder->fsCodeAppend("\tfloat invlen = inversesqrt(grad_dot);\n"); 238 builder->fsCodeAppend("\tfloat edgeAlpha = clamp(0.5-test*invlen, 0.0, 1.0);\n"); 243 builder->fsCodeAppend("\ttest = dot(scaledOffset, scaledOffset) - 1.0;\n"); 245 builder->fsCodeAppend("\tinvlen = inversesqrt(dot(grad, grad));\n"); 246 builder->fsCodeAppend("\tedgeAlpha *= clamp(0.5+test*invlen, 0.0, 1.0);\n"); 373 builder->fsCodeAppend("\tfloat test = dot(scaledOffset, scaledOffset) - 1.0;\n") [all...] |
GrAARectRenderer.cpp | 65 builder->fsCodeAppend("\tfloat outset = 0.5;\n"); 68 builder->fsCodeAppend("\tfloat spanW = insetW + outset;\n"); 69 builder->fsCodeAppend("\tfloat spanH = insetH + outset;\n"); 73 builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n"); 74 builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n"); 191 builder->fsCodeAppend("\tfloat outset = 0.5;\n"); 194 builder->fsCodeAppend("\tfloat spanW = insetW + outset;\n"); 195 builder->fsCodeAppend("\tfloat spanH = insetH + outset;\n"); 199 builder->fsCodeAppend("\tfloat scaleW = min(1.0, 2.0*insetW/spanW);\n"); 200 builder->fsCodeAppend("\tfloat scaleH = min(1.0, 2.0*insetH/spanH);\n") [all...] |
/external/chromium_org/third_party/skia/src/gpu/gl/ |
GrGLShaderBuilder.h | 73 void fsCodeAppend(const char* str) { fFSCode.append(str); } 220 fBuilder->fsCodeAppend("\t{\n"); 224 fBuilder->fsCodeAppend("\t}\n");
|
/external/skia/src/gpu/gl/ |
GrGLShaderBuilder.h | 73 void fsCodeAppend(const char* str) { fFSCode.append(str); } 220 fBuilder->fsCodeAppend("\t{\n"); 224 fBuilder->fsCodeAppend("\t}\n");
|