Lines Matching refs:Light
16 SkEmbossMaskFilter* SkEmbossMaskFilter::Create(SkScalar blurSigma, const Light& light) {
17 return SkNEW_ARGS(SkEmbossMaskFilter, (blurSigma, light));
48 SkEmbossMaskFilter::Light light;
50 memcpy(light.fDirection, direction, sizeof(light.fDirection));
51 light.fAmbient = SkToU8(am);
52 light.fSpecular = SkToU8(sp);
54 return SkEmbossMaskFilter::Create(blurSigma, light);
68 SkEmbossMaskFilter::SkEmbossMaskFilter(SkScalar blurSigma, const Light& light)
69 : fLight(light), fBlurSigma(blurSigma) {
107 // run the light direction through the matrix...
108 Light light = fLight;
109 matrix.mapVectors((SkVector*)(void*)light.fDirection,
114 SkVector* vec = (SkVector*)(void*)light.fDirection;
115 vec->setLength(light.fDirection[0],
116 light.fDirection[1],
119 SkEmbossMask::Emboss(dst, light);
129 SkASSERT(buffer.getArrayCount() == sizeof(Light));
130 buffer.readByteArray(&fLight, sizeof(Light));
138 Light tmpLight = fLight;