Home
last modified time | relevance | path

Searched refs:zPlaneParams (Results 1 – 7 of 7) sorted by relevance

/external/skia/samplecode/
DSampleAndroidShadows.cpp130 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
148 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
174 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, 0); in onDrawContent() local
178 zPlaneParams.fZ = SkTMax(1.0f, 2 + fZDelta); in onDrawContent()
179 this->drawShadowedPath(canvas, fRRPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
184 zPlaneParams.fZ = SkTMax(1.0f, 8 + fZDelta); in onDrawContent()
185 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
190 zPlaneParams.fZ = SkTMax(1.0f, 12 + fZDelta); in onDrawContent()
191 this->drawShadowedPath(canvas, fCirclePath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
196 zPlaneParams.fZ = SkTMax(1.0f, 64 + fZDelta); in onDrawContent()
[all …]
DSampleShadowReference.cpp85 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
98 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
132 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kDP * 2); in onDrawContent() local
137 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
144 zPlaneParams.fZ = kDP * 3; in onDrawContent()
148 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
155 zPlaneParams.fZ = kDP * 4; in onDrawContent()
159 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
166 zPlaneParams.fZ = kDP * 6; in onDrawContent()
170 this->drawShadowedPath(canvas, fRRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
[all …]
DSampleShadowColor.cpp100 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
115 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
130 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
135 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
140 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
192 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, kZValues[fZIndex]); in onDrawContent() local
203 this->drawShadowedPath(canvas, fRectPath, zPlaneParams, paint, kAmbientAlpha, in onDrawContent()
DSampleShadowUtils.cpp111 const SkPoint3& zPlaneParams, in drawShadowedPath() argument
128 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
131 SkShadowUtils::DrawShadow(canvas, path, zPlaneParams, in drawShadowedPath()
170 SkPoint3 zPlaneParams = SkPoint3::Make(0, 0, SkTMax(1.0f, kHeight + fZDelta)); in onDrawContent() local
188 drawShadowedPath(canvas, path, zPlaneParams, paint, kAmbientAlpha, lightPos, in onDrawContent()
/external/skia/src/utils/
DSkShadowUtils.cpp449 static bool tilted(const SkPoint3& zPlaneParams) { in tilted() argument
450 return !SkScalarNearlyZero(zPlaneParams.fX) || !SkScalarNearlyZero(zPlaneParams.fY); in tilted()
483 void SkShadowUtils::DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams, in DrawShadow() argument
494 rec.fZPlaneParams = zPlaneParams; in DrawShadow()
524 SkPoint3 zPlaneParams = rec.fZPlaneParams; in drawShadow() local
539 zPlaneParams, in drawShadow()
552 factory.fOccluderHeight = zPlaneParams.fZ; in drawShadow()
571 zPlaneParams, in drawShadow()
585 SkScalar occluderHeight = zPlaneParams.fZ; in drawShadow()
DSkShadowTessellator.cpp25 SkBaseShadowTessellator(const SkPoint3& zPlaneParams, bool transparent);
125 SkBaseShadowTessellator::SkBaseShadowTessellator(const SkPoint3& zPlaneParams, bool transparent) in SkBaseShadowTessellator() argument
126 : fZPlaneParams(zPlaneParams) in SkBaseShadowTessellator()
341 const SkPoint3& zPlaneParams, bool transparent);
369 const SkPoint3& zPlaneParams, in SkAmbientShadowTessellator() argument
371 : INHERITED(zPlaneParams, transparent) in SkAmbientShadowTessellator()
741 const SkPoint3& zPlaneParams, const SkPoint3& lightPos,
784 const SkPoint3& zPlaneParams, in SkSpotShadowTessellator() argument
787 : INHERITED(zPlaneParams, transparent) in SkSpotShadowTessellator()
/external/skia/include/utils/
DSkShadowUtils.h40 static void DrawShadow(SkCanvas* canvas, const SkPath& path, const SkPoint3& zPlaneParams,