Home | History | Annotate | Download | only in skia

Lines Matching refs:properties

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