Home | History | Annotate | Download | only in effects

Lines Matching refs:light

38     SkEmbossMaskFilter::Light   light;
40 memcpy(light.fDirection, direction, sizeof(light.fDirection));
41 light.fAmbient = SkToU8(am);
42 light.fSpecular = SkToU8(sp);
44 return SkNEW_ARGS(SkEmbossMaskFilter, (light, blurRadius));
58 SkEmbossMaskFilter::SkEmbossMaskFilter(const Light& light, SkScalar blurRadius)
59 : fLight(light), fBlurRadius(blurRadius) {
98 // run the light direction through the matrix...
99 Light light = fLight;
100 matrix.mapVectors((SkVector*)(void*)light.fDirection,
105 SkVector* vec = (SkVector*)(void*)light.fDirection;
106 vec->setLength(light.fDirection[0],
107 light.fDirection[1],
110 SkEmbossMask::Emboss(dst, light);