Home
last modified time | relevance | path

Searched refs:stretchEffect (Results 1 – 18 of 18) sorted by relevance

/frameworks/base/libs/hwui/tests/unit/
DStretchEffectTests.cpp27 auto stretchEffect = StretchEffect({.fX = 0.f, .fY = 0.f}, 100.f, 100.f); in TEST() local
28 ASSERT_FALSE(stretchEffect.requiresLayer()); in TEST()
31 ASSERT_FALSE(stretchEffect.requiresLayer()); in TEST()
36 auto stretchEffect = StretchEffect({.fX = 1.f, .fY = 0.f}, 100.f, 100.f); in TEST() local
37 ASSERT_TRUE(stretchEffect.requiresLayer()); in TEST()
40 ASSERT_TRUE(stretchEffect.requiresLayer()); in TEST()
46 auto stretchEffect = StretchEffect({.fX = 0.f, .fY = 1.f}, 100.f, 100.f); in TEST() local
47 ASSERT_TRUE(stretchEffect.requiresLayer()); in TEST()
50 ASSERT_TRUE(stretchEffect.requiresLayer()); in TEST()
56 auto stretchEffect = StretchEffect({.fX = 1.f, .fY = 1.f}, 100.f, 100.f); in TEST() local
[all …]
/frameworks/native/libs/renderengine/skia/filters/
DStretchShaderFactory.cpp193 const StretchEffect& stretchEffect) { in createSkShader() argument
194 if (!stretchEffect.hasEffect()) { in createSkShader()
198 float viewportWidth = stretchEffect.width; in createSkShader()
199 float viewportHeight = stretchEffect.height; in createSkShader()
200 float normOverScrollDistX = stretchEffect.vectorX; in createSkShader()
201 float normOverScrollDistY = stretchEffect.vectorY; in createSkShader()
214 auto& srcBounds = stretchEffect.mappedChildBounds; in createSkShader()
DStretchShaderFactory.h29 const StretchEffect& stretchEffect);
/frameworks/native/libs/renderengine/include/renderengine/
DLayerSettings.h172 StretchEffect stretchEffect; member
235 lhs.stretchEffect == rhs.stretchEffect && lhs.whitePointNits == rhs.whitePointNits;
335 if (settings.stretchEffect != StretchEffect()) { in PrintTo()
337 PrintTo(settings.stretchEffect, os); in PrintTo()
/frameworks/native/services/surfaceflinger/CompositionEngine/src/
DLayerFECompositionState.cpp77 if (stretchEffect.hasEffect()) { in dump()
78 dumpVal(out, "stretchEffect", stretchEffect); in dump()
DClientCompositionRequestCache.cpp40 lhs.stretchEffect == rhs.stretchEffect; in equalIgnoringSource()
/frameworks/base/libs/hwui/
DDamageAccumulator.h70 const StretchEffect* stretchEffect; member
DDamageAccumulator.cpp303 .stretchEffect = &effect, in findNearestStretchEffect()
/frameworks/base/libs/hwui/jni/
Dandroid_graphics_RenderNode.cpp651 void stretchTargetBounds(const StretchEffect& stretchEffect, in android_view_RenderNode_requestPositionUpdates() argument
660 (stretchEffect.computeStretchedPositionX(normalizedLeft) - in android_view_RenderNode_requestPositionUpdates()
663 (stretchEffect.computeStretchedPositionY(normalizedTop) - in android_view_RenderNode_requestPositionUpdates()
666 (stretchEffect.computeStretchedPositionX(normalizedRight) - in android_view_RenderNode_requestPositionUpdates()
669 (stretchEffect.computeStretchedPositionY(normalizedBottom) - in android_view_RenderNode_requestPositionUpdates()
681 const StretchEffect* effect = result.stretchEffect; in android_view_RenderNode_requestPositionUpdates()
/frameworks/native/services/surfaceflinger/CompositionEngine/include/compositionengine/
DLayerFECompositionState.h140 StretchEffect stretchEffect; member
/frameworks/native/libs/gui/
DLayerState.cpp152 SAFE_PARCEL(output.write, stretchEffect); in write()
266 SAFE_PARCEL(input.read, stretchEffect); in read()
598 stretchEffect = other.stretchEffect; in merge()
DSurfaceComposerClient.cpp1898 const sp<SurfaceControl>& sc, const StretchEffect& stretchEffect) { in setStretchEffect() argument
1906 s->stretchEffect = stretchEffect; in setStretchEffect()
/frameworks/native/services/surfaceflinger/
DLayer.cpp435 compositionState->stretchEffect = getStretchEffect(); in prepareBasicGeometryCompositionState()
494 compositionState->stretchEffect.hasEffect()) { in preparePerFrameCompositionState()
634 layerSettings.stretchEffect = getStretchEffect(); in prepareClientComposition()
1128 if (mDrawingState.stretchEffect == temp) { in setStretchEffect()
1132 mDrawingState.stretchEffect = temp; in setStretchEffect()
1139 if (mDrawingState.stretchEffect.hasEffect()) { in getStretchEffect()
1140 return mDrawingState.stretchEffect; in getStretchEffect()
DBufferStateLayer.cpp1052 StretchEffect temp = s.stretchEffect; in simpleBufferUpdate()
1054 if (mDrawingState.stretchEffect != temp) { in simpleBufferUpdate()
DLayer.h272 StretchEffect stretchEffect; member
DSurfaceFlinger.cpp4584 if (layer->setStretchEffect(s.stretchEffect)) { in setClientStateLocked()
/frameworks/native/libs/renderengine/skia/
DSkiaGLRenderEngine.cpp619 const auto& stretchEffect = parameters.layer.stretchEffect; in createRuntimeEffectShader() local
621 if (stretchEffect.hasEffect()) { in createRuntimeEffectShader()
625 shader = mStretchShaderFactory.createSkShader(shader, stretchEffect); in createRuntimeEffectShader()
/frameworks/native/libs/gui/include/gui/
DSurfaceComposerClient.h632 const StretchEffect& stretchEffect);