Home | History | Annotate | Download | only in effects

Lines Matching refs:SkLight

170         const LightingType& lightingType, const SkLight* light, const SkBitmap& src, SkBitmap* dst,
296 SkLightingImageFilterInternal(SkLight* light,
411 static SkImageFilter* Create(SkLight* light, SkScalar surfaceScale, SkScalar kd, SkImageFilter*,
419 SkDiffuseLightingImageFilter(SkLight* light, SkScalar surfaceScale,
437 static SkImageFilter* Create(SkLight* light, SkScalar surfaceScale,
447 SkSpecularLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar ks,
468 GrLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale,
472 const SkLight* light() const { return fLight; }
487 const SkLight* fLight;
496 const SkLight* light,
521 const SkLight* light,
535 const SkLight* light,
563 const SkLight* light,
602 const SkLight* light) const;
622 void setData(const GrGLProgramDataManager&, const SkLight* light) const override;
635 void setData(const GrGLProgramDataManager&, const SkLight* light) const override;
648 void setData(const GrGLProgramDataManager&, const SkLight* light) const override;
673 class SkLight : public SkRefCnt {
675 SK_DECLARE_INST_COUNT(SkLight)
685 virtual bool isEqual(const SkLight& other) const {
690 virtual SkLight* transform(const SkMatrix& matrix) const = 0;
692 // Defined below SkLight's subclasses.
694 static SkLight* UnflattenLight(SkReadBuffer& buffer);
697 SkLight(SkColor color)
701 SkLight(const SkPoint3& color)
703 SkLight(SkReadBuffer& buffer) {
717 class SkDistantLight : public SkLight {
739 bool isEqual(const SkLight& other) const override {
757 SkLight* transform(const SkMatrix& matrix) const override {
765 typedef SkLight INHERITED;
771 class SkPointLight : public SkLight {
795 bool isEqual(const SkLight& other) const override {
803 SkLight* transform(const SkMatrix& matrix) const override {
825 typedef SkLight INHERITED;
831 class SkSpotLight : public SkLight {
851 SkLight* transform(const SkMatrix& matrix) const override {
954 bool isEqual(const SkLight& other) const override {
971 typedef SkLight INHERITED;
988 void SkLight::flattenLight(SkWriteBuffer& buffer) const {
995 /*static*/ SkLight* SkLight::UnflattenLight(SkReadBuffer& buffer) {
997 const SkLight::LightType type = (SkLight::LightType)buffer.readInt();
999 // Each of these constructors must first call SkLight's, so we'll read the baseclass
1001 case SkLight::kDistant_LightType: return SkNEW_ARGS(SkDistantLight, (buffer));
1002 case SkLight::kPoint_LightType: return SkNEW_ARGS(SkPointLight, (buffer));
1003 case SkLight::kSpot_LightType: return SkNEW_ARGS(SkSpotLight, (buffer));
1012 SkLightingImageFilter::SkLightingImageFilter(SkLight* light, SkScalar surfaceScale,
1025 SkAutoTUnref<SkLight> light(SkNEW_ARGS(SkDistantLight, (direction, lightColor)));
1035 SkAutoTUnref<SkLight> light(SkNEW_ARGS(SkPointLight, (location, lightColor)));
1048 SkAutoTUnref<SkLight> light(SkNEW_ARGS(SkSpotLight, (location, target, specularExponent,
1060 SkAutoTUnref<SkLight> light(SkNEW_ARGS(SkDistantLight, (direction, lightColor)));
1071 SkAutoTUnref<SkLight> light(SkNEW_ARGS(SkPointLight, (location, lightColor)));
1085 SkAutoTUnref<SkLight> light(SkNEW_ARGS(SkSpotLight, (location, target, specularExponent,
1100 SkImageFilter* SkDiffuseLightingImageFilter::Create(SkLight* light, SkScalar surfaceScale,
1116 SkDiffuseLightingImageFilter::SkDiffuseLightingImageFilter(SkLight* light,
1128 SkAutoTUnref<SkLight> light(SkLight::UnflattenLight(buffer));
1172 SkAutoTUnref<SkLight> transformedLight(light()->transform(ctx.ctm()));
1179 case SkLight::kDistant_LightType:
1187 case SkLight::kPoint_LightType:
1195 case SkLight::kSpot_LightType:
1230 SkImageFilter* SkSpecularLightingImageFilter::Create(SkLight* light, SkScalar surfaceScale,
1247 SkSpecularLightingImageFilter::SkSpecularLightingImageFilter(SkLight* light,
1261 SkAutoTUnref<SkLight> light(SkLight::UnflattenLight(buffer));
1312 SkAutoTUnref<SkLight> transformedLight(light()->transform(ctx.ctm()));
1314 case SkLight::kDistant_LightType:
1322 case SkLight::kPoint_LightType:
1330 case SkLight::kSpot_LightType:
1373 SkLight* create_random_light(SkRandom* random) {
1535 const SkLight* light,
1564 const SkLight* light,
1596 SkAutoTUnref<SkLight> light(create_random_light(random));
1724 SkAutoTUnref<SkLight> transformedLight(lighting.light()->transform(lighting.filterMatrix()));
1768 const SkLight* light,
1805 SkAutoTUnref<SkLight> light(create_random_light(random));
1872 const SkLight* light) const {
1879 const SkLight* light) const {
1881 SkASSERT(light->type() == SkLight::kDistant_LightType);
1897 const SkLight* light) const {
1899 SkASSERT(light->type() == SkLight::kPoint_LightType);
1917 const SkLight* light) const {
1919 SkASSERT(light->type() == SkLight::kSpot_LightType);