blob: 509884e23c26e08ebdf9849e9cdabe57176c0d33 [file] [log] [blame]
Stan Iliev021693b2016-10-17 16:26:15 -04001/*
2 * Copyright (C) 2016 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#include "RenderNodeDrawable.h"
John Reck1bcacfd2017-11-03 10:12:19 -070018#include <SkPaintFilterCanvas.h>
Nader Jawad197743f2021-04-19 19:45:13 -070019#include "StretchMask.h"
Stan Iliev021693b2016-10-17 16:26:15 -040020#include "RenderNode.h"
21#include "SkiaDisplayList.h"
Nader Jawad2dc632a2021-03-29 18:51:29 -070022#include "TransformCanvas.h"
Stan Iliev021693b2016-10-17 16:26:15 -040023#include "utils/TraceUtils.h"
24
John Reck5cb290b2021-02-01 13:47:31 -050025#include <include/effects/SkImageFilters.h>
26
Ben Wagner1d155332018-08-20 18:36:05 -040027#include <optional>
28
Stan Iliev021693b2016-10-17 16:26:15 -040029namespace android {
30namespace uirenderer {
31namespace skiapipeline {
32
John Reckd9d7f122018-05-03 14:40:56 -070033RenderNodeDrawable::RenderNodeDrawable(RenderNode* node, SkCanvas* canvas, bool composeLayer,
34 bool inReorderingSection)
35 : mRenderNode(node)
36 , mRecordedTransform(canvas->getTotalMatrix())
37 , mComposeLayer(composeLayer)
38 , mInReorderingSection(inReorderingSection) {}
39
40RenderNodeDrawable::~RenderNodeDrawable() {
41 // Just here to move the destructor into the cpp file where we can access RenderNode.
42
43 // TODO: Detangle the header nightmare.
44}
45
John Reck1bcacfd2017-11-03 10:12:19 -070046void RenderNodeDrawable::drawBackwardsProjectedNodes(SkCanvas* canvas,
47 const SkiaDisplayList& displayList,
Nathaniel Nifong2945bff2019-11-25 09:34:21 -050048 int nestLevel) const {
Stan Ilievdb45a4b2016-11-08 14:18:31 -050049 LOG_ALWAYS_FATAL_IF(0 == nestLevel && !displayList.mProjectionReceiver);
50 for (auto& child : displayList.mChildNodes) {
51 const RenderProperties& childProperties = child.getNodeProperties();
52
John Reck1bcacfd2017-11-03 10:12:19 -070053 // immediate children cannot be projected on their parent
Stan Ilievdb45a4b2016-11-08 14:18:31 -050054 if (childProperties.getProjectBackwards() && nestLevel > 0) {
55 SkAutoCanvasRestore acr2(canvas, true);
John Reck1bcacfd2017-11-03 10:12:19 -070056 // Apply recorded matrix, which is a total matrix saved at recording time to avoid
57 // replaying all DL commands.
Stan Ilievdb45a4b2016-11-08 14:18:31 -050058 canvas->concat(child.getRecordedMatrix());
59 child.drawContent(canvas);
60 }
61
John Reck1bcacfd2017-11-03 10:12:19 -070062 // skip walking sub-nodes if current display list contains a receiver with exception of
63 // level 0, which is a known receiver
Stan Ilievdb45a4b2016-11-08 14:18:31 -050064 if (0 == nestLevel || !displayList.containsProjectionReceiver()) {
65 SkAutoCanvasRestore acr(canvas, true);
66 SkMatrix nodeMatrix;
67 mat4 hwuiMatrix(child.getRecordedMatrix());
John Reckbe671952021-01-13 22:39:32 -050068 const RenderNode* childNode = child.getRenderNode();
Stan Ilievdb45a4b2016-11-08 14:18:31 -050069 childNode->applyViewPropertyTransforms(hwuiMatrix);
70 hwuiMatrix.copyTo(nodeMatrix);
71 canvas->concat(nodeMatrix);
John Reckbe671952021-01-13 22:39:32 -050072 const SkiaDisplayList* childDisplayList = childNode->getDisplayList().asSkiaDl();
Stan Ilievdb45a4b2016-11-08 14:18:31 -050073 if (childDisplayList) {
John Reck1bcacfd2017-11-03 10:12:19 -070074 drawBackwardsProjectedNodes(canvas, *childDisplayList, nestLevel + 1);
Stan Ilievdb45a4b2016-11-08 14:18:31 -050075 }
76 }
77 }
78}
79
Stan Iliev021693b2016-10-17 16:26:15 -040080static void clipOutline(const Outline& outline, SkCanvas* canvas, const SkRect* pendingClip) {
Stan Iliev021693b2016-10-17 16:26:15 -040081 Rect possibleRect;
82 float radius;
Derek Sollenbergerf209c062017-05-26 12:11:34 -040083
84 /* To match the existing HWUI behavior we only supports rectangles or
85 * rounded rectangles; passing in a more complicated outline fails silently.
86 */
87 if (!outline.getAsRoundRect(&possibleRect, &radius)) {
88 if (pendingClip) {
89 canvas->clipRect(*pendingClip);
90 }
91 return;
92 }
93
Stan Iliev021693b2016-10-17 16:26:15 -040094 SkRect rect = possibleRect.toSkRect();
95 if (radius != 0.0f) {
96 if (pendingClip && !pendingClip->contains(rect)) {
97 canvas->clipRect(*pendingClip);
98 }
Mike Reed6c67f1d2016-12-14 10:29:54 -050099 canvas->clipRRect(SkRRect::MakeRectXY(rect, radius, radius), SkClipOp::kIntersect, true);
Stan Iliev021693b2016-10-17 16:26:15 -0400100 } else {
101 if (pendingClip) {
102 (void)rect.intersect(*pendingClip);
103 }
104 canvas->clipRect(rect);
105 }
106}
107
108const RenderProperties& RenderNodeDrawable::getNodeProperties() const {
109 return mRenderNode->properties();
110}
111
112void RenderNodeDrawable::onDraw(SkCanvas* canvas) {
John Reck1bcacfd2017-11-03 10:12:19 -0700113 // negative and positive Z order are drawn out of order, if this render node drawable is in
114 // a reordering section
Stan Iliev2f06e8a2016-11-02 15:29:03 -0400115 if ((!mInReorderingSection) || MathUtils::isZero(mRenderNode->properties().getZ())) {
Stan Iliev021693b2016-10-17 16:26:15 -0400116 this->forceDraw(canvas);
117 }
118}
119
John Reckf96b2842018-11-29 09:44:10 -0800120class MarkDraw {
121public:
122 explicit MarkDraw(SkCanvas& canvas, RenderNode& node) : mCanvas(canvas), mNode(node) {
123 if (CC_UNLIKELY(Properties::skpCaptureEnabled)) {
124 mNode.markDrawStart(mCanvas);
125 }
126 }
127 ~MarkDraw() {
128 if (CC_UNLIKELY(Properties::skpCaptureEnabled)) {
129 mNode.markDrawEnd(mCanvas);
130 }
131 }
John Reck283bb462018-12-13 16:40:14 -0800132
John Reckf96b2842018-11-29 09:44:10 -0800133private:
134 SkCanvas& mCanvas;
135 RenderNode& mNode;
136};
137
Nathaniel Nifong2945bff2019-11-25 09:34:21 -0500138void RenderNodeDrawable::forceDraw(SkCanvas* canvas) const {
Stan Iliev021693b2016-10-17 16:26:15 -0400139 RenderNode* renderNode = mRenderNode.get();
John Reckf96b2842018-11-29 09:44:10 -0800140 MarkDraw _marker{*canvas, *renderNode};
Stan Iliev021693b2016-10-17 16:26:15 -0400141
142 // We only respect the nothingToDraw check when we are composing a layer. This
143 // ensures that we paint the layer even if it is not currently visible in the
144 // event that the properties change and it becomes visible.
Yuqian Li5ebbc8e2017-11-29 09:53:06 -0500145 if ((mProjectedDisplayList == nullptr && !renderNode->isRenderable()) ||
John Reck283bb462018-12-13 16:40:14 -0800146 (renderNode->nothingToDraw() && mComposeLayer)) {
Stan Iliev021693b2016-10-17 16:26:15 -0400147 return;
148 }
149
John Reckbe671952021-01-13 22:39:32 -0500150 SkiaDisplayList* displayList = renderNode->getDisplayList().asSkiaDl();
Stan Iliev021693b2016-10-17 16:26:15 -0400151
152 SkAutoCanvasRestore acr(canvas, true);
Stan Iliev021693b2016-10-17 16:26:15 -0400153 const RenderProperties& properties = this->getNodeProperties();
John Reck1bcacfd2017-11-03 10:12:19 -0700154 // pass this outline to the children that may clip backward projected nodes
155 displayList->mProjectedOutline =
156 displayList->containsProjectionReceiver() ? &properties.getOutline() : nullptr;
Stan Ilievdb45a4b2016-11-08 14:18:31 -0500157 if (!properties.getProjectBackwards()) {
158 drawContent(canvas);
159 if (mProjectedDisplayList) {
John Reck1bcacfd2017-11-03 10:12:19 -0700160 acr.restore(); // draw projected children using parent matrix
Stan Ilievdb45a4b2016-11-08 14:18:31 -0500161 LOG_ALWAYS_FATAL_IF(!mProjectedDisplayList->mProjectedOutline);
162 const bool shouldClip = mProjectedDisplayList->mProjectedOutline->getPath();
163 SkAutoCanvasRestore acr2(canvas, shouldClip);
Stan Iliev54d70322018-06-14 18:00:10 -0400164 canvas->setMatrix(mProjectedDisplayList->mParentMatrix);
Stan Ilievdb45a4b2016-11-08 14:18:31 -0500165 if (shouldClip) {
Stan Iliev8b7cc512019-02-22 10:16:43 -0500166 canvas->clipPath(*mProjectedDisplayList->mProjectedOutline->getPath());
Stan Ilievdb45a4b2016-11-08 14:18:31 -0500167 }
168 drawBackwardsProjectedNodes(canvas, *mProjectedDisplayList);
Stan Iliev021693b2016-10-17 16:26:15 -0400169 }
Stan Iliev021693b2016-10-17 16:26:15 -0400170 }
Stan Ilievdb45a4b2016-11-08 14:18:31 -0500171 displayList->mProjectedOutline = nullptr;
Stan Iliev021693b2016-10-17 16:26:15 -0400172}
173
John Reck8ed00dc2021-05-10 13:09:27 -0400174static bool stretchNeedsLayer(const LayerProperties& properties) {
175 return Properties::stretchEffectBehavior == StretchEffectBehavior::Shader &&
176 !properties.getStretchEffect().isEmpty();
177}
178
Nader Jawad6701a602021-02-23 18:14:22 -0800179static bool layerNeedsPaint(const sk_sp<SkImage>& snapshotImage, const LayerProperties& properties,
180 float alphaMultiplier, SkPaint* paint) {
John Reck1bcacfd2017-11-03 10:12:19 -0700181 if (alphaMultiplier < 1.0f || properties.alpha() < 255 ||
Nader Jawad390d6e82020-09-24 21:35:03 -0700182 properties.xferMode() != SkBlendMode::kSrcOver || properties.getColorFilter() != nullptr ||
John Reck8ed00dc2021-05-10 13:09:27 -0400183 properties.getImageFilter() != nullptr || stretchNeedsLayer(properties)) {
Stan Iliev021693b2016-10-17 16:26:15 -0400184 paint->setAlpha(properties.alpha() * alphaMultiplier);
185 paint->setBlendMode(properties.xferMode());
Ben Wagnerc1a8a462018-07-12 12:41:28 -0400186 paint->setColorFilter(sk_ref_sp(properties.getColorFilter()));
John Reck5cb290b2021-02-01 13:47:31 -0500187
188 sk_sp<SkImageFilter> imageFilter = sk_ref_sp(properties.getImageFilter());
Nader Jawad8f5d66b2021-04-07 16:05:13 -0700189 paint->setImageFilter(std::move(imageFilter));
Stan Iliev021693b2016-10-17 16:26:15 -0400190 return true;
191 }
192 return false;
193}
194
Stan Iliev1843ac72017-09-20 18:05:35 -0400195class AlphaFilterCanvas : public SkPaintFilterCanvas {
196public:
197 AlphaFilterCanvas(SkCanvas* canvas, float alpha) : SkPaintFilterCanvas(canvas), mAlpha(alpha) {}
John Reck1bcacfd2017-11-03 10:12:19 -0700198
Stan Iliev1843ac72017-09-20 18:05:35 -0400199protected:
Ben Wagner62b38942019-04-15 11:59:33 -0400200 bool onFilter(SkPaint& paint) const override {
201 paint.setAlpha((uint8_t)paint.getAlpha() * mAlpha);
Stan Iliev1843ac72017-09-20 18:05:35 -0400202 return true;
203 }
204 void onDrawDrawable(SkDrawable* drawable, const SkMatrix* matrix) override {
205 // We unroll the drawable using "this" canvas, so that draw calls contained inside will
Ben Wagner62b38942019-04-15 11:59:33 -0400206 // get their alpha applied. The default SkPaintFilterCanvas::onDrawDrawable does not unroll.
Stan Iliev1843ac72017-09-20 18:05:35 -0400207 drawable->draw(this, matrix);
208 }
John Reck1bcacfd2017-11-03 10:12:19 -0700209
Stan Iliev1843ac72017-09-20 18:05:35 -0400210private:
211 float mAlpha;
212};
213
Stan Iliev021693b2016-10-17 16:26:15 -0400214void RenderNodeDrawable::drawContent(SkCanvas* canvas) const {
215 RenderNode* renderNode = mRenderNode.get();
216 float alphaMultiplier = 1.0f;
217 const RenderProperties& properties = renderNode->properties();
218
219 // If we are drawing the contents of layer, we don't want to apply any of
220 // the RenderNode's properties during this pass. Those will all be applied
221 // when the layer is composited.
222 if (mComposeLayer) {
223 setViewProperties(properties, canvas, &alphaMultiplier);
224 }
John Reckbe671952021-01-13 22:39:32 -0500225 SkiaDisplayList* displayList = mRenderNode->getDisplayList().asSkiaDl();
Stan Iliev54d70322018-06-14 18:00:10 -0400226 displayList->mParentMatrix = canvas->getTotalMatrix();
Stan Iliev021693b2016-10-17 16:26:15 -0400227
John Reck1bcacfd2017-11-03 10:12:19 -0700228 // TODO should we let the bound of the drawable do this for us?
Stan Iliev021693b2016-10-17 16:26:15 -0400229 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight());
230 bool quickRejected = properties.getClipToBounds() && canvas->quickReject(bounds);
231 if (!quickRejected) {
John Reckbe671952021-01-13 22:39:32 -0500232 SkiaDisplayList* displayList = renderNode->getDisplayList().asSkiaDl();
Stan Iliev021693b2016-10-17 16:26:15 -0400233 const LayerProperties& layerProperties = properties.layerProperties();
234 // composing a hardware layer
235 if (renderNode->getLayerSurface() && mComposeLayer) {
236 SkASSERT(properties.effectiveLayerType() == LayerType::RenderLayer);
Stan Iliev7e100e92018-01-22 10:36:33 -0500237 SkPaint paint;
Nader Jawad6701a602021-02-23 18:14:22 -0800238 sk_sp<SkImage> snapshotImage = renderNode->getLayerSurface()->makeImageSnapshot();
239 layerNeedsPaint(snapshotImage, layerProperties, alphaMultiplier, &paint);
Mike Reed7994a312021-01-28 18:06:26 -0500240 SkSamplingOptions sampling(SkFilterMode::kLinear);
Derek Sollenberger03e6cff72017-12-04 15:07:08 -0500241
242 // surfaces for layers are created on LAYER_SIZE boundaries (which are >= layer size) so
243 // we need to restrict the portion of the surface drawn to the size of the renderNode.
244 SkASSERT(renderNode->getLayerSurface()->width() >= bounds.width());
245 SkASSERT(renderNode->getLayerSurface()->height() >= bounds.height());
Nathaniel Nifong2945bff2019-11-25 09:34:21 -0500246
247 // If SKP recording is active save an annotation that indicates this drawImageRect
248 // could also be rendered with the commands saved at ID associated with this node.
249 if (CC_UNLIKELY(Properties::skpCaptureEnabled)) {
250 canvas->drawAnnotation(bounds, String8::format(
251 "SurfaceID|%" PRId64, renderNode->uniqueId()).c_str(), nullptr);
252 }
Nader Jawad2dc632a2021-03-29 18:51:29 -0700253
Nader Jawad8f5d66b2021-04-07 16:05:13 -0700254 const StretchEffect& stretch = properties.layerProperties().getStretchEffect();
John Reck8ed00dc2021-05-10 13:09:27 -0400255 if (stretch.isEmpty() ||
256 Properties::stretchEffectBehavior != StretchEffectBehavior::Shader) {
Nader Jawad197743f2021-04-19 19:45:13 -0700257 // If we don't have any stretch effects, issue the filtered
258 // canvas draw calls to make sure we still punch a hole
259 // with the same canvas transformation + clip into the target
260 // canvas then draw the layer on top
261 if (renderNode->hasHolePunches()) {
262 TransformCanvas transformCanvas(canvas, SkBlendMode::kClear);
263 displayList->draw(&transformCanvas);
264 }
Nader Jawad8f5d66b2021-04-07 16:05:13 -0700265 canvas->drawImageRect(snapshotImage, bounds, bounds, sampling, &paint,
266 SkCanvas::kStrict_SrcRectConstraint);
267 } else {
Nader Jawad197743f2021-04-19 19:45:13 -0700268 // If we do have stretch effects and have hole punches,
269 // then create a mask and issue the filtered draw calls to
270 // get the corresponding hole punches.
271 // Then apply the stretch to the mask and draw the mask to
272 // the destination
273 if (renderNode->hasHolePunches()) {
274 GrRecordingContext* context = canvas->recordingContext();
275 StretchMask& stretchMask = renderNode->getStretchMask();
276 stretchMask.draw(context,
277 stretch,
278 bounds,
279 displayList,
280 canvas);
281 }
282
283 sk_sp<SkShader> stretchShader = stretch.getShader(bounds.width(),
284 bounds.height(),
285 snapshotImage);
Nader Jawad8f5d66b2021-04-07 16:05:13 -0700286 paint.setShader(stretchShader);
287 canvas->drawRect(bounds, paint);
288 }
Matt Sarett79756be2016-11-09 16:13:54 -0500289
Matt Sarettf58cc922016-11-14 18:33:38 -0500290 if (!renderNode->getSkiaLayer()->hasRenderedSinceRepaint) {
Matt Sarett79756be2016-11-09 16:13:54 -0500291 renderNode->getSkiaLayer()->hasRenderedSinceRepaint = true;
Matt Sarettf58cc922016-11-14 18:33:38 -0500292 if (CC_UNLIKELY(Properties::debugLayersUpdates)) {
293 SkPaint layerPaint;
294 layerPaint.setColor(0x7f00ff00);
295 canvas->drawRect(bounds, layerPaint);
296 } else if (CC_UNLIKELY(Properties::debugOverdraw)) {
297 // Render transparent rect to increment overdraw for repaint area.
298 // This can be "else if" because flashing green on layer updates
299 // will also increment the overdraw if it happens to be turned on.
300 SkPaint transparentPaint;
301 transparentPaint.setColor(SK_ColorTRANSPARENT);
302 canvas->drawRect(bounds, transparentPaint);
303 }
Matt Sarett79756be2016-11-09 16:13:54 -0500304 }
Stan Iliev021693b2016-10-17 16:26:15 -0400305 } else {
Stan Iliev1843ac72017-09-20 18:05:35 -0400306 if (alphaMultiplier < 1.0f) {
307 // Non-layer draw for a view with getHasOverlappingRendering=false, will apply
308 // the alpha to the paint of each nested draw.
309 AlphaFilterCanvas alphaCanvas(canvas, alphaMultiplier);
310 displayList->draw(&alphaCanvas);
311 } else {
312 displayList->draw(canvas);
313 }
Stan Iliev021693b2016-10-17 16:26:15 -0400314 }
315 }
316}
317
318void RenderNodeDrawable::setViewProperties(const RenderProperties& properties, SkCanvas* canvas,
John Reck1bcacfd2017-11-03 10:12:19 -0700319 float* alphaMultiplier) {
Stan Iliev021693b2016-10-17 16:26:15 -0400320 if (properties.getLeft() != 0 || properties.getTop() != 0) {
321 canvas->translate(properties.getLeft(), properties.getTop());
322 }
323 if (properties.getStaticMatrix()) {
324 canvas->concat(*properties.getStaticMatrix());
325 } else if (properties.getAnimationMatrix()) {
326 canvas->concat(*properties.getAnimationMatrix());
327 }
328 if (properties.hasTransformMatrix()) {
329 if (properties.isTransformTranslateOnly()) {
330 canvas->translate(properties.getTranslationX(), properties.getTranslationY());
331 } else {
332 canvas->concat(*properties.getTransformMatrix());
333 }
334 }
John Reck8ed00dc2021-05-10 13:09:27 -0400335 if (Properties::stretchEffectBehavior == StretchEffectBehavior::LinearScale) {
336 const StretchEffect& stretch = properties.layerProperties().getStretchEffect();
337 if (!stretch.isEmpty()) {
338 canvas->concat(
339 stretch.makeLinearStretch(properties.getWidth(), properties.getHeight()));
340 }
341 }
Stan Iliev021693b2016-10-17 16:26:15 -0400342 const bool isLayer = properties.effectiveLayerType() != LayerType::None;
343 int clipFlags = properties.getClippingFlags();
344 if (properties.getAlpha() < 1) {
345 if (isLayer) {
John Reck1bcacfd2017-11-03 10:12:19 -0700346 clipFlags &= ~CLIP_TO_BOUNDS; // bounds clipping done by layer
Stan Iliev021693b2016-10-17 16:26:15 -0400347 }
348 if (CC_LIKELY(isLayer || !properties.getHasOverlappingRendering())) {
349 *alphaMultiplier = properties.getAlpha();
350 } else {
351 // savelayer needed to create an offscreen buffer
352 Rect layerBounds(0, 0, properties.getWidth(), properties.getHeight());
353 if (clipFlags) {
354 properties.getClippingRectForFlags(clipFlags, &layerBounds);
John Reck1bcacfd2017-11-03 10:12:19 -0700355 clipFlags = 0; // all clipping done by savelayer
Stan Iliev021693b2016-10-17 16:26:15 -0400356 }
John Reck1bcacfd2017-11-03 10:12:19 -0700357 SkRect bounds = SkRect::MakeLTRB(layerBounds.left, layerBounds.top, layerBounds.right,
358 layerBounds.bottom);
359 canvas->saveLayerAlpha(&bounds, (int)(properties.getAlpha() * 255));
Stan Iliev021693b2016-10-17 16:26:15 -0400360 }
361
362 if (CC_UNLIKELY(ATRACE_ENABLED() && properties.promotedToLayer())) {
363 // pretend alpha always causes savelayer to warn about
364 // performance problem affecting old versions
365 ATRACE_FORMAT("alpha caused saveLayer %dx%d", properties.getWidth(),
John Reck1bcacfd2017-11-03 10:12:19 -0700366 properties.getHeight());
Stan Iliev021693b2016-10-17 16:26:15 -0400367 }
368 }
369
370 const SkRect* pendingClip = nullptr;
371 SkRect clipRect;
372
373 if (clipFlags) {
374 Rect tmpRect;
375 properties.getClippingRectForFlags(clipFlags, &tmpRect);
376 clipRect = tmpRect.toSkRect();
377 pendingClip = &clipRect;
378 }
379
380 if (properties.getRevealClip().willClip()) {
Mike Reed6c67f1d2016-12-14 10:29:54 -0500381 canvas->clipPath(*properties.getRevealClip().getPath(), SkClipOp::kIntersect, true);
Stan Iliev021693b2016-10-17 16:26:15 -0400382 } else if (properties.getOutline().willClip()) {
383 clipOutline(properties.getOutline(), canvas, pendingClip);
384 pendingClip = nullptr;
385 }
386
387 if (pendingClip) {
388 canvas->clipRect(*pendingClip);
389 }
390}
391
Chris Blume7b8a8082018-11-30 15:51:58 -0800392} // namespace skiapipeline
393} // namespace uirenderer
394} // namespace android