Searched defs:shadowIndex (Results 1 - 2 of 2) sorted by relevance

/frameworks/base/libs/hwui/pipeline/skia/
H A DReorderBarrierDrawables.cpp89 size_t shadowIndex = drawIndex; local
92 while (shadowIndex < endIndex || drawIndex < endIndex) {
93 if (shadowIndex < endIndex) {
94 const float casterZ = zChildren[shadowIndex]->getNodeProperties().getZ();
98 if (shadowIndex == drawIndex || casterZ - lastCasterZ < SHADOW_DELTA) {
99 this->drawShadow(canvas, zChildren[shadowIndex]);
101 shadowIndex++;
/frameworks/base/libs/hwui/
H A DFrameBuilder.cpp355 size_t drawIndex, shadowIndex, endIndex; local
359 shadowIndex = endIndex; // draw no shadows
363 shadowIndex = drawIndex; // potentially draw shadow for each pos Z child
367 while (shadowIndex < endIndex || drawIndex < endIndex) {
368 if (shadowIndex < endIndex) {
369 const RenderNodeOp* casterNodeOp = zTranslatedNodes[shadowIndex].value;
370 const float casterZ = zTranslatedNodes[shadowIndex].key;
373 if (shadowIndex == drawIndex || casterZ - lastCasterZ < 0.1f) {
377 shadowIndex++;

Completed in 59 milliseconds