• Home
  • Raw
  • Download

Lines Matching refs:properties

117     return mRenderNode->properties();  in getNodeProperties()
123 if ((!mInReorderingSection) || MathUtils::isZero(mRenderNode->properties().getZ())) { in onDraw()
161 const RenderProperties& properties = this->getNodeProperties(); in forceDraw() local
164 displayList->containsProjectionReceiver() ? &properties.getOutline() : nullptr; in forceDraw()
165 if (!properties.getProjectBackwards()) { in forceDraw()
182 static bool layerNeedsPaint(const LayerProperties& properties, float alphaMultiplier, in layerNeedsPaint() argument
184 if (alphaMultiplier < 1.0f || properties.alpha() < 255 || in layerNeedsPaint()
185 properties.xferMode() != SkBlendMode::kSrcOver || properties.getColorFilter() != nullptr || in layerNeedsPaint()
186 properties.getStretchEffect().requiresLayer()) { in layerNeedsPaint()
187 paint->setAlpha(properties.alpha() * alphaMultiplier); in layerNeedsPaint()
188 paint->setBlendMode(properties.xferMode()); in layerNeedsPaint()
189 paint->setColorFilter(sk_ref_sp(properties.getColorFilter())); in layerNeedsPaint()
218 const RenderProperties& properties = renderNode->properties(); in drawContent() local
224 setViewProperties(properties, canvas, &alphaMultiplier); in drawContent()
230 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight()); in drawContent()
231 bool quickRejected = properties.getClipToBounds() && canvas->quickReject(bounds); in drawContent()
237 const LayerProperties& layerProperties = properties.layerProperties(); in drawContent()
240 SkASSERT(properties.effectiveLayerType() == LayerType::RenderLayer); in drawContent()
288 const StretchEffect& stretch = properties.layerProperties().getStretchEffect(); in drawContent()
364 void RenderNodeDrawable::setViewProperties(const RenderProperties& properties, SkCanvas* canvas, in setViewProperties() argument
366 if (properties.getLeft() != 0 || properties.getTop() != 0) { in setViewProperties()
367 canvas->translate(properties.getLeft(), properties.getTop()); in setViewProperties()
369 if (properties.getStaticMatrix()) { in setViewProperties()
370 canvas->concat(*properties.getStaticMatrix()); in setViewProperties()
371 } else if (properties.getAnimationMatrix()) { in setViewProperties()
372 canvas->concat(*properties.getAnimationMatrix()); in setViewProperties()
374 if (properties.hasTransformMatrix()) { in setViewProperties()
375 if (properties.isTransformTranslateOnly()) { in setViewProperties()
376 canvas->translate(properties.getTranslationX(), properties.getTranslationY()); in setViewProperties()
378 canvas->concat(*properties.getTransformMatrix()); in setViewProperties()
382 const StretchEffect& stretch = properties.layerProperties().getStretchEffect(); in setViewProperties()
385 stretch.makeLinearStretch(properties.getWidth(), properties.getHeight())); in setViewProperties()
388 const bool isLayer = properties.effectiveLayerType() != LayerType::None; in setViewProperties()
389 int clipFlags = properties.getClippingFlags(); in setViewProperties()
390 if (properties.getAlpha() < 1) { in setViewProperties()
394 if (CC_LIKELY(isLayer || !properties.getHasOverlappingRendering())) { in setViewProperties()
395 *alphaMultiplier = properties.getAlpha(); in setViewProperties()
398 Rect layerBounds(0, 0, properties.getWidth(), properties.getHeight()); in setViewProperties()
400 properties.getClippingRectForFlags(clipFlags, &layerBounds); in setViewProperties()
405 canvas->saveLayerAlpha(&bounds, (int)(properties.getAlpha() * 255)); in setViewProperties()
408 if (CC_UNLIKELY(ATRACE_ENABLED() && properties.promotedToLayer())) { in setViewProperties()
411 ATRACE_FORMAT("alpha caused saveLayer %dx%d", properties.getWidth(), in setViewProperties()
412 properties.getHeight()); in setViewProperties()
421 properties.getClippingRectForFlags(clipFlags, &tmpRect); in setViewProperties()
426 if (properties.getRevealClip().willClip()) { in setViewProperties()
427 canvas->clipPath(*properties.getRevealClip().getPath(), SkClipOp::kIntersect, true); in setViewProperties()
428 } else if (properties.getOutline().willClip()) { in setViewProperties()
429 clipOutline(properties.getOutline(), canvas, pendingClip); in setViewProperties()