Searched defs:surfaceScale (Results 1 - 11 of 11) sorted by relevance

/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/filters/
H A DFEDiffuseLighting.cpp33 FEDiffuseLighting::FEDiffuseLighting(Filter* filter, const Color& lightingColor, float surfaceScale, argument
35 : FELighting(filter, DiffuseLighting, lightingColor, surfaceScale, diffuseConstant, 0, 0, kernelUnitLengthX, kernelUnitLengthY, lightSource)
40 float surfaceScale, float diffuseConstant, float kernelUnitLengthX,
43 return adoptRef(new FEDiffuseLighting(filter, lightingColor, surfaceScale, diffuseConstant, kernelUnitLengthX, kernelUnitLengthY, lightSource));
63 float FEDiffuseLighting::surfaceScale() const function in class:WebCore::FEDiffuseLighting
68 bool FEDiffuseLighting::setSurfaceScale(float surfaceScale) argument
70 if (m_surfaceScale == surfaceScale)
72 m_surfaceScale = surfaceScale;
130 ts << " surfaceScale=\"" << m_surfaceScale << "\" "
39 create(Filter* filter, const Color& lightingColor, float surfaceScale, float diffuseConstant, float kernelUnitLengthX, float kernelUnitLengthY, PassRefPtr<LightSource> lightSource) argument
H A DFESpecularLighting.cpp33 FESpecularLighting::FESpecularLighting(Filter* filter, const Color& lightingColor, float surfaceScale, argument
36 : FELighting(filter, SpecularLighting, lightingColor, surfaceScale, 0, specularConstant, specularExponent, kernelUnitLengthX, kernelUnitLengthY, lightSource)
41 float surfaceScale, float specularConstant, float specularExponent,
44 return adoptRef(new FESpecularLighting(filter, lightingColor, surfaceScale, specularConstant, specularExponent,
65 float FESpecularLighting::surfaceScale() const function in class:WebCore::FESpecularLighting
70 bool FESpecularLighting::setSurfaceScale(float surfaceScale) argument
72 if (m_surfaceScale == surfaceScale)
74 m_surfaceScale = surfaceScale;
145 ts << " surfaceScale=\"" << m_surfaceScale << "\" "
40 create(Filter* filter, const Color& lightingColor, float surfaceScale, float specularConstant, float specularExponent, float kernelUnitLengthX, float kernelUnitLengthY, PassRefPtr<LightSource> lightSource) argument
H A DFELighting.h62 float surfaceScale; member in struct:WebCore::FELighting::LightingData
H A DFELighting.cpp44 FELighting::FELighting(Filter* filter, LightingType lightingType, const Color& lightingColor, float surfaceScale, argument
51 , m_surfaceScale(surfaceScale)
186 m_lightSource->updatePaintingData(paintingData, lightX, lightY, static_cast<float>(data.pixels->item(offset + cAlphaChannelOffset)) * data.surfaceScale);
204 normalVector.setX(factorX * static_cast<float>(normal2DVector.x()) * data.surfaceScale);
205 normalVector.setY(factorY * static_cast<float>(normal2DVector.y()) * data.surfaceScale);
315 data.surfaceScale = m_surfaceScale / 255.0f;
/external/chromium_org/third_party/skia/include/effects/
H A DSkLightingImageFilter.h53 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
56 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
60 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
63 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
66 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
70 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
78 SkScalar surfaceScale,
84 SkScalar surfaceScale() const { return fSurfaceScale; } function in class:SkLightingImageFilter
/external/skia/include/effects/
H A DSkLightingImageFilter.h53 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
56 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
60 SkColor lightColor, SkScalar surfaceScale, SkScalar kd,
63 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
66 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
70 SkColor lightColor, SkScalar surfaceScale, SkScalar ks,
78 SkScalar surfaceScale,
84 SkScalar surfaceScale() const { return fSurfaceScale; } function in class:SkLightingImageFilter
/external/skia/bench/
H A DLightingBench.cpp84 static SkScalar surfaceScale = SkIntToScalar(1); local
85 return surfaceScale;
/external/skia/gm/
H A Dlighting.cpp83 SkScalar surfaceScale = SkIntToScalar(1); local
92 paint.setImageFilter(SkLightingImageFilter::CreatePointLitDiffuse(pointLocation, white, surfaceScale, kd, NULL, cr))->unref();
94 paint.setImageFilter(SkLightingImageFilter::CreateDistantLitDiffuse(distantDirection, white, surfaceScale, kd, NULL, cr))->unref();
96 paint.setImageFilter(SkLightingImageFilter::CreateSpotLitDiffuse(spotLocation, spotTarget, spotExponent, cutoffAngle, white, surfaceScale, kd, NULL, cr))->unref();
100 paint.setImageFilter(SkLightingImageFilter::CreatePointLitSpecular(pointLocation, white, surfaceScale, ks, shininess, NULL, cr))->unref();
102 paint.setImageFilter(SkLightingImageFilter::CreateDistantLitSpecular(distantDirection, white, surfaceScale, ks, shininess, NULL, cr))->unref();
104 paint.setImageFilter(SkLightingImageFilter::CreateSpotLitSpecular(spotLocation, spotTarget, spotExponent, cutoffAngle, white, surfaceScale, ks, shininess, NULL, cr))->unref();
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/cpu/arm/filters/
H A DFELightingNEON.h51 float surfaceScale; member in struct:WebCore::FELightingFloatArgumentsForNeon
155 floatArguments.surfaceScale = data.surfaceScale;
156 floatArguments.minusSurfaceScaleDividedByFour = -data.surfaceScale / 4;
/external/chromium_org/third_party/skia/src/effects/
H A DSkLightingImageFilter.cpp102 inline SkPoint3 pointToNormal(SkScalar x, SkScalar y, SkScalar surfaceScale) { argument
103 SkPoint3 vector(SkScalarMul(-x, surfaceScale),
104 SkScalarMul(-y, surfaceScale),
110 inline SkPoint3 topLeftNormal(int m[9], SkScalar surfaceScale) { argument
113 surfaceScale);
116 inline SkPoint3 topNormal(int m[9], SkScalar surfaceScale) { argument
119 surfaceScale);
122 inline SkPoint3 topRightNormal(int m[9], SkScalar surfaceScale) { argument
125 surfaceScale);
128 inline SkPoint3 leftNormal(int m[9], SkScalar surfaceScale) { argument
135 interiorNormal(int m[9], SkScalar surfaceScale) argument
141 rightNormal(int m[9], SkScalar surfaceScale) argument
147 bottomLeftNormal(int m[9], SkScalar surfaceScale) argument
153 bottomNormal(int m[9], SkScalar surfaceScale) argument
159 bottomRightNormal(int m[9], SkScalar surfaceScale) argument
165 lightBitmap(const LightingType& lightingType, const SkLight* light, const SkBitmap& src, SkBitmap* dst, SkScalar surfaceScale, const SkIRect& bounds) argument
317 SkScalar surfaceScale() const { return fSurfaceScale; } function in class:__anon13582::GrLightingEffect
338 Create(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar kd) argument
374 Create(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar ks, SkScalar shininess) argument
760 SkLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkImageFilter* input, const SkIRect* cropRect) argument
770 CreateDistantLitDiffuse( const SkPoint3& direction, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) argument
778 CreatePointLitDiffuse( const SkPoint3& location, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) argument
786 CreateSpotLitDiffuse( const SkPoint3& location, const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) argument
797 CreateDistantLitSpecular( const SkPoint3& direction, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
805 CreatePointLitSpecular( const SkPoint3& location, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
813 CreateSpotLitSpecular( const SkPoint3& location, const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
842 SkDiffuseLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect = NULL) argument
915 SkSpecularLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
1088 GrLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset) argument
1115 GrDiffuseLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar kd) argument
1139 SkScalar surfaceScale = random->nextSScalar1(); local
1334 GrSpecularLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar ks, SkScalar shininess) argument
1362 SkScalar surfaceScale = random->nextSScalar1(); local
[all...]
/external/skia/src/effects/
H A DSkLightingImageFilter.cpp102 inline SkPoint3 pointToNormal(SkScalar x, SkScalar y, SkScalar surfaceScale) { argument
103 SkPoint3 vector(SkScalarMul(-x, surfaceScale),
104 SkScalarMul(-y, surfaceScale),
110 inline SkPoint3 topLeftNormal(int m[9], SkScalar surfaceScale) { argument
113 surfaceScale);
116 inline SkPoint3 topNormal(int m[9], SkScalar surfaceScale) { argument
119 surfaceScale);
122 inline SkPoint3 topRightNormal(int m[9], SkScalar surfaceScale) { argument
125 surfaceScale);
128 inline SkPoint3 leftNormal(int m[9], SkScalar surfaceScale) { argument
135 interiorNormal(int m[9], SkScalar surfaceScale) argument
141 rightNormal(int m[9], SkScalar surfaceScale) argument
147 bottomLeftNormal(int m[9], SkScalar surfaceScale) argument
153 bottomNormal(int m[9], SkScalar surfaceScale) argument
159 bottomRightNormal(int m[9], SkScalar surfaceScale) argument
165 lightBitmap(const LightingType& lightingType, const SkLight* light, const SkBitmap& src, SkBitmap* dst, SkScalar surfaceScale, const SkIRect& bounds) argument
317 SkScalar surfaceScale() const { return fSurfaceScale; } function in class:__anon25438::GrLightingEffect
338 Create(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar kd) argument
374 Create(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar ks, SkScalar shininess) argument
760 SkLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkImageFilter* input, const SkIRect* cropRect) argument
770 CreateDistantLitDiffuse( const SkPoint3& direction, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) argument
778 CreatePointLitDiffuse( const SkPoint3& location, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) argument
786 CreateSpotLitDiffuse( const SkPoint3& location, const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, SkColor lightColor, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect) argument
797 CreateDistantLitSpecular( const SkPoint3& direction, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
805 CreatePointLitSpecular( const SkPoint3& location, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
813 CreateSpotLitSpecular( const SkPoint3& location, const SkPoint3& target, SkScalar specularExponent, SkScalar cutoffAngle, SkColor lightColor, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
842 SkDiffuseLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar kd, SkImageFilter* input, const SkIRect* cropRect = NULL) argument
915 SkSpecularLightingImageFilter(SkLight* light, SkScalar surfaceScale, SkScalar ks, SkScalar shininess, SkImageFilter* input, const SkIRect* cropRect) argument
1088 GrLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset) argument
1115 GrDiffuseLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar kd) argument
1139 SkScalar surfaceScale = random->nextSScalar1(); local
1334 GrSpecularLightingEffect(GrTexture* texture, const SkLight* light, SkScalar surfaceScale, const SkIPoint& offset, SkScalar ks, SkScalar shininess) argument
1362 SkScalar surfaceScale = random->nextSScalar1(); local
[all...]

Completed in 200 milliseconds