Home | History | Annotate | Download | only in effects

Lines Matching refs:light

39     SkEmbossMaskFilter::Light   light;
41 memcpy(light.fDirection, direction, sizeof(light.fDirection));
42 light.fAmbient = SkToU8(am);
43 light.fSpecular = SkToU8(sp);
45 return SkNEW_ARGS(SkEmbossMaskFilter, (light, blurRadius));
59 SkEmbossMaskFilter::SkEmbossMaskFilter(const Light& light, SkScalar blurRadius)
60 : fLight(light), fBlurRadius(blurRadius) {
99 // run the light direction through the matrix...
100 Light light = fLight;
101 matrix.mapVectors((SkVector*)(void*)light.fDirection,
106 SkVector* vec = (SkVector*)(void*)light.fDirection;
107 vec->setLength(light.fDirection[0],
108 light.fDirection[1],
111 SkEmbossMask::Emboss(dst, light);
121 SkASSERT(buffer.getArrayCount() == sizeof(Light));
130 Light tmpLight = fLight;