• Home
  • Raw
  • Download

Lines Matching refs:properties

90     return mRenderNode->properties();  in getNodeProperties()
96 if ((!mInReorderingSection) || MathUtils::isZero(mRenderNode->properties().getZ())) { in onDraw()
119 const RenderProperties& properties = this->getNodeProperties(); in forceDraw() local
122 ? &properties.getOutline() : nullptr; in forceDraw()
123 if (!properties.getProjectBackwards()) { in forceDraw()
140 static bool layerNeedsPaint(const LayerProperties& properties, in layerNeedsPaint() argument
143 || properties.alpha() < 255 in layerNeedsPaint()
144 || properties.xferMode() != SkBlendMode::kSrcOver in layerNeedsPaint()
145 || properties.colorFilter() != nullptr) { in layerNeedsPaint()
146 paint->setAlpha(properties.alpha() * alphaMultiplier); in layerNeedsPaint()
147 paint->setBlendMode(properties.xferMode()); in layerNeedsPaint()
148 paint->setColorFilter(sk_ref_sp(properties.colorFilter())); in layerNeedsPaint()
157 const RenderProperties& properties = renderNode->properties(); in drawContent() local
163 setViewProperties(properties, canvas, &alphaMultiplier); in drawContent()
171 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight()); in drawContent()
172 bool quickRejected = properties.getClipToBounds() && canvas->quickReject(bounds); in drawContent()
175 const LayerProperties& layerProperties = properties.layerProperties(); in drawContent()
178 SkASSERT(properties.effectiveLayerType() == LayerType::RenderLayer); in drawContent()
203 } else if (properties.effectiveLayerType() == LayerType::Software) { in drawContent()
219 void RenderNodeDrawable::setViewProperties(const RenderProperties& properties, SkCanvas* canvas, in setViewProperties() argument
221 if (properties.getLeft() != 0 || properties.getTop() != 0) { in setViewProperties()
222 canvas->translate(properties.getLeft(), properties.getTop()); in setViewProperties()
224 if (properties.getStaticMatrix()) { in setViewProperties()
225 canvas->concat(*properties.getStaticMatrix()); in setViewProperties()
226 } else if (properties.getAnimationMatrix()) { in setViewProperties()
227 canvas->concat(*properties.getAnimationMatrix()); in setViewProperties()
229 if (properties.hasTransformMatrix()) { in setViewProperties()
230 if (properties.isTransformTranslateOnly()) { in setViewProperties()
231 canvas->translate(properties.getTranslationX(), properties.getTranslationY()); in setViewProperties()
233 canvas->concat(*properties.getTransformMatrix()); in setViewProperties()
236 const bool isLayer = properties.effectiveLayerType() != LayerType::None; in setViewProperties()
237 int clipFlags = properties.getClippingFlags(); in setViewProperties()
238 if (properties.getAlpha() < 1) { in setViewProperties()
242 if (CC_LIKELY(isLayer || !properties.getHasOverlappingRendering())) { in setViewProperties()
243 *alphaMultiplier = properties.getAlpha(); in setViewProperties()
246 Rect layerBounds(0, 0, properties.getWidth(), properties.getHeight()); in setViewProperties()
248 properties.getClippingRectForFlags(clipFlags, &layerBounds); in setViewProperties()
253 canvas->saveLayerAlpha(&bounds, (int) (properties.getAlpha() * 255)); in setViewProperties()
256 if (CC_UNLIKELY(ATRACE_ENABLED() && properties.promotedToLayer())) { in setViewProperties()
259 ATRACE_FORMAT("alpha caused saveLayer %dx%d", properties.getWidth(), in setViewProperties()
260 properties.getHeight()); in setViewProperties()
269 properties.getClippingRectForFlags(clipFlags, &tmpRect); in setViewProperties()
274 if (properties.getRevealClip().willClip()) { in setViewProperties()
275 canvas->clipPath(*properties.getRevealClip().getPath(), SkClipOp::kIntersect, true); in setViewProperties()
276 } else if (properties.getOutline().willClip()) { in setViewProperties()
277 clipOutline(properties.getOutline(), canvas, pendingClip); in setViewProperties()