Home
last modified time | relevance | path

Searched refs:casterRect (Results 1 – 8 of 8) sorted by relevance

/frameworks/av/media/libstagefright/renderfright/gl/
DGLShadowVertexGenerator.cpp30 GLShadowVertexGenerator::GLShadowVertexGenerator(const FloatRect& casterRect, in GLShadowVertexGenerator() argument
40 mAmbientShadowGeometry = getAmbientShadowGeometry(casterRect, casterCornerRadius, casterZ, in GLShadowVertexGenerator()
51 getSpotShadowGeometry(casterRect, casterCornerRadius, casterZ, casterIsTranslucent, in GLShadowVertexGenerator()
DGLSkiaShadowPort.cpp548 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect, in getAmbientShadowGeometry() argument
558 FloatRect outsetRect(casterRect); in getAmbientShadowGeometry()
574 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect, in getSpotShadowGeometry() argument
594 FloatRect spotShadowRect = shadowTransform.transform(casterRect); in getSpotShadowGeometry()
619 maxOffset = std::max(std::max(std::abs(spotShadowRect.left - casterRect.left), in getSpotShadowGeometry()
620 std::abs(spotShadowRect.top - casterRect.top)), in getSpotShadowGeometry()
621 std::max(std::abs(spotShadowRect.right - casterRect.right), in getSpotShadowGeometry()
622 std::abs(spotShadowRect.bottom - casterRect.bottom))); in getSpotShadowGeometry()
625 vec2 upperLeftOffset = vec2(spotShadowRect.left - casterRect.left + dr, in getSpotShadowGeometry()
626 spotShadowRect.top - casterRect.top + dr); in getSpotShadowGeometry()
[all …]
DGLSkiaShadowPort.h59 std::unique_ptr<Geometry> getSpotShadowGeometry(const FloatRect& casterRect,
64 std::unique_ptr<Geometry> getAmbientShadowGeometry(const FloatRect& casterRect,
DGLShadowVertexGenerator.h40 GLShadowVertexGenerator(const FloatRect& casterRect, float casterCornerRadius, float casterZ,
DGLESRenderEngine.h161 void handleShadow(const FloatRect& casterRect, float casterCornerRadius,
DGLESRenderEngine.cpp1734 void GLESRenderEngine::handleShadow(const FloatRect& casterRect, float casterCornerRadius, in handleShadow() argument
1738 const GLShadowVertexGenerator shadows(casterRect, casterCornerRadius, casterZ, in handleShadow()
/frameworks/av/media/libstagefright/renderfright/tests/
DRenderEngineTest.cpp194 const Rect casterRect(castingLayer.geometry.boundaries); in expectShadowColor() local
195 Region casterRegion = Region(casterRect); in expectShadowColor()
200 casterRegion.subtractSelf(cornerRect.offsetTo(casterRect.left, casterRect.top)); in expectShadowColor()
202 cornerRect.offsetTo(casterRect.right - casterCornerRadius, casterRect.top)); in expectShadowColor()
204 cornerRect.offsetTo(casterRect.left, casterRect.bottom - casterCornerRadius)); in expectShadowColor()
205 casterRegion.subtractSelf(cornerRect.offsetTo(casterRect.right - casterCornerRadius, in expectShadowColor()
206 casterRect.bottom - casterCornerRadius)); in expectShadowColor()
211 Rect(casterRect).inset(shadowInset, shadowInset, shadowInset, shadowInset); in expectShadowColor()
212 const Region shadowRegion = Region(casterWithShadow).subtractSelf(casterRect); in expectShadowColor()
/frameworks/native/libs/renderengine/tests/
DRenderEngineTest.cpp391 const Rect casterRect(castingLayer.geometry.boundaries); in expectShadowColor() local
392 Region casterRegion = Region(casterRect); in expectShadowColor()
399 casterRegion.subtractSelf(cornerRect.offsetTo(casterRect.left, casterRect.top)); in expectShadowColor()
401 cornerRect.offsetTo(casterRect.right - casterCornerRadius, casterRect.top)); in expectShadowColor()
403 cornerRect.offsetTo(casterRect.left, casterRect.bottom - casterCornerRadius)); in expectShadowColor()
404 casterRegion.subtractSelf(cornerRect.offsetTo(casterRect.right - casterCornerRadius, in expectShadowColor()
405 casterRect.bottom - casterCornerRadius)); in expectShadowColor()
410 Rect(casterRect).inset(shadowInset, shadowInset, shadowInset, shadowInset); in expectShadowColor()
411 const Region shadowRegion = Region(casterWithShadow).subtractSelf(casterRect); in expectShadowColor()
432 const Rect casterRect(casterBounds); in expectShadowColorWithoutCaster() local
[all …]