Home
last modified time | relevance | path

Searched refs:layerAlpha (Results 1 – 3 of 3) sorted by relevance

/external/lottie/lottie/src/main/java/com/airbnb/lottie/animation/content/
DContentGroup.java163 int layerAlpha; in draw() local
167 layerAlpha = (int) ((opacity / 100f * parentAlpha / 255f) * 255); in draw()
169 layerAlpha = parentAlpha; in draw()
173 …eDrawable.isApplyingOpacityToLayersEnabled() && hasTwoOrMoreDrawableContent() && layerAlpha != 255; in draw()
177 offScreenPaint.setAlpha(layerAlpha); in draw()
181 int childAlpha = isRenderingWithOffScreen ? 255 : layerAlpha; in draw()
/external/skqp/tests/
DCanvasStateTest.cpp85 const int layerAlpha[] = { 255, 255, 0 }; in DEF_TEST() local
91 REPORTER_ASSERT(reporter, sizeof(layerAlpha) == sizeof(flags)); in DEF_TEST()
120 for (size_t k = 0; k < SK_ARRAY_COUNT(layerAlpha); ++k) { in DEF_TEST()
122 if (layerAlpha[k] != 0xFF) { in DEF_TEST()
123 paint.init()->setAlpha(layerAlpha[k]); in DEF_TEST()
/external/skia/tests/
DCanvasStateTest.cpp127 const int layerAlpha[] = { 255, 255, 0 }; in DEF_TEST() local
154 for (size_t k = 0; k < SK_ARRAY_COUNT(layerAlpha); ++k) { in DEF_TEST()
156 if (layerAlpha[k] != 0xFF) { in DEF_TEST()
157 paint.init()->setAlpha(layerAlpha[k]); in DEF_TEST()