DisplayListCanvas.cpp revision edca320a2b42011f98c308fdf25fc0494c6a5454
1/*
2 * Copyright (C) 2010 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 "DisplayListCanvas.h"
18
19#include "ResourceCache.h"
20#include "DeferredDisplayList.h"
21#include "DeferredLayerUpdater.h"
22#include "DisplayListOp.h"
23#include "RenderNode.h"
24#include "utils/PaintUtils.h"
25
26#include <SkCamera.h>
27#include <SkCanvas.h>
28
29#include <private/hwui/DrawGlInfo.h>
30
31namespace android {
32namespace uirenderer {
33
34DisplayListCanvas::DisplayListCanvas(int width, int height)
35    : mState(*this)
36    , mResourceCache(ResourceCache::getInstance())
37    , mDisplayListData(nullptr)
38    , mTranslateX(0.0f)
39    , mTranslateY(0.0f)
40    , mHasDeferredTranslate(false)
41    , mDeferredBarrierType(kBarrier_None)
42    , mHighContrastText(false)
43    , mRestoreSaveCount(-1) {
44    reset(width, height);
45}
46
47DisplayListCanvas::~DisplayListCanvas() {
48    LOG_ALWAYS_FATAL_IF(mDisplayListData,
49            "Destroyed a DisplayListCanvas during a record!");
50}
51
52void DisplayListCanvas::reset(int width, int height) {
53    LOG_ALWAYS_FATAL_IF(mDisplayListData,
54            "prepareDirty called a second time during a recording!");
55    mDisplayListData = new DisplayListData();
56
57    mState.setViewport(width, height);
58    mState.initializeSaveStack(0, 0, mState.getWidth(), mState.getHeight(), Vector3());
59
60    mDeferredBarrierType = kBarrier_InOrder;
61    mState.setDirtyClip(false);
62    mRestoreSaveCount = -1;
63}
64
65
66///////////////////////////////////////////////////////////////////////////////
67// Operations
68///////////////////////////////////////////////////////////////////////////////
69
70DisplayListData* DisplayListCanvas::finishRecording() {
71    flushRestoreToCount();
72    flushTranslate();
73
74    mPaintMap.clear();
75    mRegionMap.clear();
76    mPathMap.clear();
77    DisplayListData* data = mDisplayListData;
78    mDisplayListData = nullptr;
79    mSkiaCanvasProxy.reset(nullptr);
80    return data;
81}
82
83void DisplayListCanvas::callDrawGLFunction(Functor *functor) {
84    addDrawOp(new (alloc()) DrawFunctorOp(functor));
85    mDisplayListData->functors.add(functor);
86}
87
88SkCanvas* DisplayListCanvas::asSkCanvas() {
89    LOG_ALWAYS_FATAL_IF(!mDisplayListData,
90            "attempting to get an SkCanvas when we are not recording!");
91    if (!mSkiaCanvasProxy) {
92        mSkiaCanvasProxy.reset(new SkiaCanvasProxy(this));
93    }
94
95    // SkCanvas instances default to identity transform, but should inherit
96    // the state of this Canvas; if this code was in the SkiaCanvasProxy
97    // constructor, we couldn't cache mSkiaCanvasProxy.
98    SkMatrix parentTransform;
99    getMatrix(&parentTransform);
100    mSkiaCanvasProxy.get()->setMatrix(parentTransform);
101
102    return mSkiaCanvasProxy.get();
103}
104
105int DisplayListCanvas::save(SkCanvas::SaveFlags flags) {
106    addStateOp(new (alloc()) SaveOp((int) flags));
107    return mState.save((int) flags);
108}
109
110void DisplayListCanvas::restore() {
111    if (mRestoreSaveCount < 0) {
112        restoreToCount(getSaveCount() - 1);
113        return;
114    }
115
116    mRestoreSaveCount--;
117    flushTranslate();
118    mState.restore();
119}
120
121void DisplayListCanvas::restoreToCount(int saveCount) {
122    mRestoreSaveCount = saveCount;
123    flushTranslate();
124    mState.restoreToCount(saveCount);
125}
126
127int DisplayListCanvas::saveLayer(float left, float top, float right, float bottom,
128        const SkPaint* paint, SkCanvas::SaveFlags flags) {
129    // force matrix/clip isolation for layer
130    flags |= SkCanvas::kClip_SaveFlag | SkCanvas::kMatrix_SaveFlag;
131
132    paint = refPaint(paint);
133    addStateOp(new (alloc()) SaveLayerOp(left, top, right, bottom, paint, (int) flags));
134    return mState.save((int) flags);
135}
136
137void DisplayListCanvas::translate(float dx, float dy) {
138    if (dx == 0.0f && dy == 0.0f) return;
139
140    mHasDeferredTranslate = true;
141    mTranslateX += dx;
142    mTranslateY += dy;
143    flushRestoreToCount();
144    mState.translate(dx, dy, 0.0f);
145}
146
147void DisplayListCanvas::rotate(float degrees) {
148    if (degrees == 0.0f) return;
149
150    addStateOp(new (alloc()) RotateOp(degrees));
151    mState.rotate(degrees);
152}
153
154void DisplayListCanvas::scale(float sx, float sy) {
155    if (sx == 1.0f && sy == 1.0f) return;
156
157    addStateOp(new (alloc()) ScaleOp(sx, sy));
158    mState.scale(sx, sy);
159}
160
161void DisplayListCanvas::skew(float sx, float sy) {
162    addStateOp(new (alloc()) SkewOp(sx, sy));
163    mState.skew(sx, sy);
164}
165
166void DisplayListCanvas::setMatrix(const SkMatrix& matrix) {
167    addStateOp(new (alloc()) SetMatrixOp(matrix));
168    mState.setMatrix(matrix);
169}
170
171void DisplayListCanvas::setLocalMatrix(const SkMatrix& matrix) {
172    addStateOp(new (alloc()) SetLocalMatrixOp(matrix));
173    mState.setMatrix(matrix);
174}
175
176void DisplayListCanvas::concat(const SkMatrix& matrix) {
177    addStateOp(new (alloc()) ConcatMatrixOp(matrix));
178    mState.concatMatrix(matrix);
179}
180
181bool DisplayListCanvas::getClipBounds(SkRect* outRect) const {
182    Rect bounds = mState.getLocalClipBounds();
183    *outRect = SkRect::MakeLTRB(bounds.left, bounds.top, bounds.right, bounds.bottom);
184    return !(outRect->isEmpty());
185}
186
187bool DisplayListCanvas::quickRejectRect(float left, float top, float right, float bottom) const {
188    return mState.quickRejectConservative(left, top, right, bottom);
189}
190
191bool DisplayListCanvas::quickRejectPath(const SkPath& path) const {
192    SkRect bounds = path.getBounds();
193    return mState.quickRejectConservative(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom);
194}
195
196
197bool DisplayListCanvas::clipRect(float left, float top, float right, float bottom,
198        SkRegion::Op op) {
199    addStateOp(new (alloc()) ClipRectOp(left, top, right, bottom, op));
200    return mState.clipRect(left, top, right, bottom, op);
201}
202
203bool DisplayListCanvas::clipPath(const SkPath* path, SkRegion::Op op) {
204    path = refPath(path);
205    addStateOp(new (alloc()) ClipPathOp(path, op));
206    return mState.clipPath(path, op);
207}
208
209bool DisplayListCanvas::clipRegion(const SkRegion* region, SkRegion::Op op) {
210    region = refRegion(region);
211    addStateOp(new (alloc()) ClipRegionOp(region, op));
212    return mState.clipRegion(region, op);
213}
214
215void DisplayListCanvas::drawRenderNode(RenderNode* renderNode) {
216    LOG_ALWAYS_FATAL_IF(!renderNode, "missing rendernode");
217    DrawRenderNodeOp* op = new (alloc()) DrawRenderNodeOp(
218            renderNode,
219            *mState.currentTransform(),
220            mState.clipIsSimple());
221    addRenderNodeOp(op);
222}
223
224void DisplayListCanvas::drawLayer(DeferredLayerUpdater* layerHandle, float x, float y) {
225    // We ref the DeferredLayerUpdater due to its thread-safe ref-counting
226    // semantics.
227    mDisplayListData->ref(layerHandle);
228    addDrawOp(new (alloc()) DrawLayerOp(layerHandle->backingLayer(), x, y));
229}
230
231void DisplayListCanvas::drawBitmap(const SkBitmap* bitmap, const SkPaint* paint) {
232    bitmap = refBitmap(*bitmap);
233    paint = refPaint(paint);
234
235    addDrawOp(new (alloc()) DrawBitmapOp(bitmap, paint));
236}
237
238void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, float left, float top,
239        const SkPaint* paint) {
240    save(SkCanvas::kMatrix_SaveFlag);
241    translate(left, top);
242    drawBitmap(&bitmap, paint);
243    restore();
244}
245
246void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, const SkMatrix& matrix,
247        const SkPaint* paint) {
248    if (matrix.isIdentity()) {
249        drawBitmap(&bitmap, paint);
250    } else if (!(matrix.getType() & ~(SkMatrix::kScale_Mask | SkMatrix::kTranslate_Mask))) {
251        // SkMatrix::isScaleTranslate() not available in L
252        SkRect src;
253        SkRect dst;
254        bitmap.getBounds(&src);
255        matrix.mapRect(&dst, src);
256        drawBitmap(bitmap, src.fLeft, src.fTop, src.fRight, src.fBottom,
257                   dst.fLeft, dst.fTop, dst.fRight, dst.fBottom, paint);
258    } else {
259        save(SkCanvas::kMatrix_SaveFlag);
260        concat(matrix);
261        drawBitmap(&bitmap, paint);
262        restore();
263    }
264}
265
266void DisplayListCanvas::drawBitmap(const SkBitmap& bitmap, float srcLeft, float srcTop,
267        float srcRight, float srcBottom, float dstLeft, float dstTop,
268        float dstRight, float dstBottom, const SkPaint* paint) {
269    if (srcLeft == 0 && srcTop == 0
270            && srcRight == bitmap.width()
271            && srcBottom == bitmap.height()
272            && (srcBottom - srcTop == dstBottom - dstTop)
273            && (srcRight - srcLeft == dstRight - dstLeft)) {
274        // transform simple rect to rect drawing case into position bitmap ops, since they merge
275        save(SkCanvas::kMatrix_SaveFlag);
276        translate(dstLeft, dstTop);
277        drawBitmap(&bitmap, paint);
278        restore();
279    } else {
280        paint = refPaint(paint);
281
282        if (paint && paint->getShader()) {
283            float scaleX = (dstRight - dstLeft) / (srcRight - srcLeft);
284            float scaleY = (dstBottom - dstTop) / (srcBottom - srcTop);
285            if (!MathUtils::areEqual(scaleX, 1.0f) || !MathUtils::areEqual(scaleY, 1.0f)) {
286                // Apply the scale transform on the canvas, so that the shader
287                // effectively calculates positions relative to src rect space
288
289                save(SkCanvas::kMatrix_SaveFlag);
290                translate(dstLeft, dstTop);
291                scale(scaleX, scaleY);
292
293                dstLeft = 0.0f;
294                dstTop = 0.0f;
295                dstRight = srcRight - srcLeft;
296                dstBottom = srcBottom - srcTop;
297
298                addDrawOp(new (alloc()) DrawBitmapRectOp(refBitmap(bitmap),
299                        srcLeft, srcTop, srcRight, srcBottom,
300                        dstLeft, dstTop, dstRight, dstBottom, paint));
301                restore();
302                return;
303            }
304        }
305
306        addDrawOp(new (alloc()) DrawBitmapRectOp(refBitmap(bitmap),
307                srcLeft, srcTop, srcRight, srcBottom,
308                dstLeft, dstTop, dstRight, dstBottom, paint));
309    }
310}
311
312void DisplayListCanvas::drawBitmapMesh(const SkBitmap& bitmap, int meshWidth, int meshHeight,
313        const float* vertices, const int* colors, const SkPaint* paint) {
314    int vertexCount = (meshWidth + 1) * (meshHeight + 1);
315    vertices = refBuffer<float>(vertices, vertexCount * 2); // 2 floats per vertex
316    paint = refPaint(paint);
317    colors = refBuffer<int>(colors, vertexCount); // 1 color per vertex
318
319    addDrawOp(new (alloc()) DrawBitmapMeshOp(refBitmap(bitmap), meshWidth, meshHeight,
320           vertices, colors, paint));
321}
322
323void DisplayListCanvas::drawNinePatch(const SkBitmap& bitmap, const Res_png_9patch& patch,
324        float dstLeft, float dstTop, float dstRight, float dstBottom, const SkPaint* paint) {
325    const SkBitmap* bitmapPtr = refBitmap(bitmap);
326    const Res_png_9patch* patchPtr = refPatch(&patch);
327    paint = refPaint(paint);
328
329    addDrawOp(new (alloc()) DrawPatchOp(bitmapPtr, patchPtr,
330            dstLeft, dstTop, dstRight, dstBottom, paint));
331}
332
333void DisplayListCanvas::drawColor(int color, SkXfermode::Mode mode) {
334    addDrawOp(new (alloc()) DrawColorOp(color, mode));
335}
336
337void DisplayListCanvas::drawPaint(const SkPaint& paint) {
338    SkRect bounds;
339    if (getClipBounds(&bounds)) {
340        drawRect(bounds.fLeft, bounds.fTop, bounds.fRight, bounds.fBottom, paint);
341    }
342}
343
344
345void DisplayListCanvas::drawRect(float left, float top, float right, float bottom,
346        const SkPaint& paint) {
347    addDrawOp(new (alloc()) DrawRectOp(left, top, right, bottom, refPaint(&paint)));
348}
349
350void DisplayListCanvas::drawRoundRect(float left, float top, float right, float bottom,
351        float rx, float ry, const SkPaint& paint) {
352    addDrawOp(new (alloc()) DrawRoundRectOp(left, top, right, bottom, rx, ry, refPaint(&paint)));
353}
354
355void DisplayListCanvas::drawRoundRect(
356        CanvasPropertyPrimitive* left, CanvasPropertyPrimitive* top,
357        CanvasPropertyPrimitive* right, CanvasPropertyPrimitive* bottom,
358        CanvasPropertyPrimitive* rx, CanvasPropertyPrimitive* ry,
359        CanvasPropertyPaint* paint) {
360    mDisplayListData->ref(left);
361    mDisplayListData->ref(top);
362    mDisplayListData->ref(right);
363    mDisplayListData->ref(bottom);
364    mDisplayListData->ref(rx);
365    mDisplayListData->ref(ry);
366    mDisplayListData->ref(paint);
367    refBitmapsInShader(paint->value.getShader());
368    addDrawOp(new (alloc()) DrawRoundRectPropsOp(&left->value, &top->value,
369            &right->value, &bottom->value, &rx->value, &ry->value, &paint->value));
370}
371
372void DisplayListCanvas::drawCircle(float x, float y, float radius, const SkPaint& paint) {
373    addDrawOp(new (alloc()) DrawCircleOp(x, y, radius, refPaint(&paint)));
374}
375
376void DisplayListCanvas::drawCircle(CanvasPropertyPrimitive* x, CanvasPropertyPrimitive* y,
377        CanvasPropertyPrimitive* radius, CanvasPropertyPaint* paint) {
378    mDisplayListData->ref(x);
379    mDisplayListData->ref(y);
380    mDisplayListData->ref(radius);
381    mDisplayListData->ref(paint);
382    refBitmapsInShader(paint->value.getShader());
383    addDrawOp(new (alloc()) DrawCirclePropsOp(&x->value, &y->value,
384            &radius->value, &paint->value));
385}
386
387void DisplayListCanvas::drawOval(float left, float top, float right, float bottom,
388        const SkPaint& paint) {
389    addDrawOp(new (alloc()) DrawOvalOp(left, top, right, bottom, refPaint(&paint)));
390}
391
392void DisplayListCanvas::drawArc(float left, float top, float right, float bottom,
393        float startAngle, float sweepAngle, bool useCenter, const SkPaint& paint) {
394    if (fabs(sweepAngle) >= 360.0f) {
395        drawOval(left, top, right, bottom, paint);
396    } else {
397        addDrawOp(new (alloc()) DrawArcOp(left, top, right, bottom,
398                        startAngle, sweepAngle, useCenter, refPaint(&paint)));
399    }
400}
401
402void DisplayListCanvas::drawPath(const SkPath& path, const SkPaint& paint) {
403    addDrawOp(new (alloc()) DrawPathOp(refPath(&path), refPaint(&paint)));
404}
405
406void DisplayListCanvas::drawLines(const float* points, int count, const SkPaint& paint) {
407    points = refBuffer<float>(points, count);
408
409    addDrawOp(new (alloc()) DrawLinesOp(points, count, refPaint(&paint)));
410}
411
412void DisplayListCanvas::drawPoints(const float* points, int count, const SkPaint& paint) {
413    points = refBuffer<float>(points, count);
414
415    addDrawOp(new (alloc()) DrawPointsOp(points, count, refPaint(&paint)));
416}
417
418void DisplayListCanvas::drawTextOnPath(const uint16_t* glyphs, int count,
419        const SkPath& path, float hOffset, float vOffset, const SkPaint& paint) {
420    if (!glyphs || count <= 0) return;
421
422    int bytesCount = 2 * count;
423    DrawOp* op = new (alloc()) DrawTextOnPathOp(refText((const char*) glyphs, bytesCount),
424            bytesCount, count, refPath(&path),
425            hOffset, vOffset, refPaint(&paint));
426    addDrawOp(op);
427}
428
429void DisplayListCanvas::drawPosText(const uint16_t* text, const float* positions,
430        int count, int posCount, const SkPaint& paint) {
431    if (!text || count <= 0) return;
432
433    int bytesCount = 2 * count;
434    positions = refBuffer<float>(positions, count * 2);
435
436    DrawOp* op = new (alloc()) DrawPosTextOp(refText((const char*) text, bytesCount),
437                                             bytesCount, count, positions, refPaint(&paint));
438    addDrawOp(op);
439}
440
441void DisplayListCanvas::drawText(const uint16_t* glyphs, const float* positions,
442        int count, const SkPaint& paint, float x, float y,
443        float boundsLeft, float boundsTop, float boundsRight, float boundsBottom,
444        float totalAdvance) {
445
446    if (!glyphs || count <= 0 || PaintUtils::paintWillNotDrawText(paint)) return;
447
448    int bytesCount = count * 2;
449    const char* text = refText((const char*) glyphs, bytesCount);
450    positions = refBuffer<float>(positions, count * 2);
451    Rect bounds(boundsLeft, boundsTop, boundsRight, boundsBottom);
452
453    DrawOp* op = new (alloc()) DrawTextOp(text, bytesCount, count,
454            x, y, positions, refPaint(&paint), totalAdvance, bounds);
455    addDrawOp(op);
456}
457
458void DisplayListCanvas::drawRegion(const SkRegion& region, const SkPaint& paint) {
459    if (paint.getStyle() != SkPaint::kFill_Style ||
460            (paint.isAntiAlias() && !mState.currentTransform()->isSimple())) {
461        SkRegion::Iterator it(region);
462        while (!it.done()) {
463            const SkIRect& r = it.rect();
464            drawRect(r.fLeft, r.fTop, r.fRight, r.fBottom, paint);
465            it.next();
466        }
467    } else {
468        int count = 0;
469        Vector<float> rects;
470        SkRegion::Iterator it(region);
471        while (!it.done()) {
472            const SkIRect& r = it.rect();
473            rects.push(r.fLeft);
474            rects.push(r.fTop);
475            rects.push(r.fRight);
476            rects.push(r.fBottom);
477            count += 4;
478            it.next();
479        }
480        drawRects(rects.array(), count, &paint);
481    }
482}
483
484void DisplayListCanvas::drawRects(const float* rects, int count, const SkPaint* paint) {
485    if (count <= 0) return;
486
487    rects = refBuffer<float>(rects, count);
488    paint = refPaint(paint);
489    addDrawOp(new (alloc()) DrawRectsOp(rects, count, paint));
490}
491
492void DisplayListCanvas::setDrawFilter(SkDrawFilter* filter) {
493    mDrawFilter.reset(SkSafeRef(filter));
494}
495
496void DisplayListCanvas::insertReorderBarrier(bool enableReorder) {
497    flushRestoreToCount();
498    flushTranslate();
499    mDeferredBarrierType = enableReorder ? kBarrier_OutOfOrder : kBarrier_InOrder;
500}
501
502void DisplayListCanvas::flushRestoreToCount() {
503    if (mRestoreSaveCount >= 0) {
504        addOpAndUpdateChunk(new (alloc()) RestoreToCountOp(mRestoreSaveCount));
505        mRestoreSaveCount = -1;
506    }
507}
508
509void DisplayListCanvas::flushTranslate() {
510    if (mHasDeferredTranslate) {
511        if (mTranslateX != 0.0f || mTranslateY != 0.0f) {
512            addOpAndUpdateChunk(new (alloc()) TranslateOp(mTranslateX, mTranslateY));
513            mTranslateX = mTranslateY = 0.0f;
514        }
515        mHasDeferredTranslate = false;
516    }
517}
518
519size_t DisplayListCanvas::addOpAndUpdateChunk(DisplayListOp* op) {
520    int insertIndex = mDisplayListData->displayListOps.size();
521    mDisplayListData->displayListOps.push_back(op);
522    if (mDeferredBarrierType != kBarrier_None) {
523        // op is first in new chunk
524        mDisplayListData->chunks.emplace_back();
525        DisplayListData::Chunk& newChunk = mDisplayListData->chunks.back();
526        newChunk.beginOpIndex = insertIndex;
527        newChunk.endOpIndex = insertIndex + 1;
528        newChunk.reorderChildren = (mDeferredBarrierType == kBarrier_OutOfOrder);
529
530        int nextChildIndex = mDisplayListData->children().size();
531        newChunk.beginChildIndex = newChunk.endChildIndex = nextChildIndex;
532        mDeferredBarrierType = kBarrier_None;
533    } else {
534        // standard case - append to existing chunk
535        mDisplayListData->chunks.back().endOpIndex = insertIndex + 1;
536    }
537    return insertIndex;
538}
539
540size_t DisplayListCanvas::flushAndAddOp(DisplayListOp* op) {
541    flushRestoreToCount();
542    flushTranslate();
543    return addOpAndUpdateChunk(op);
544}
545
546size_t DisplayListCanvas::addStateOp(StateOp* op) {
547    return flushAndAddOp(op);
548}
549
550size_t DisplayListCanvas::addDrawOp(DrawOp* op) {
551    Rect localBounds;
552    if (op->getLocalBounds(localBounds)) {
553        bool rejected = quickRejectRect(localBounds.left, localBounds.top,
554                localBounds.right, localBounds.bottom);
555        op->setQuickRejected(rejected);
556    }
557
558    mDisplayListData->hasDrawOps = true;
559    return flushAndAddOp(op);
560}
561
562size_t DisplayListCanvas::addRenderNodeOp(DrawRenderNodeOp* op) {
563    int opIndex = addDrawOp(op);
564    int childIndex = mDisplayListData->addChild(op);
565
566    // update the chunk's child indices
567    DisplayListData::Chunk& chunk = mDisplayListData->chunks.back();
568    chunk.endChildIndex = childIndex + 1;
569
570    if (op->renderNode()->stagingProperties().isProjectionReceiver()) {
571        // use staging property, since recording on UI thread
572        mDisplayListData->projectionReceiveIndex = opIndex;
573    }
574    return opIndex;
575}
576
577void DisplayListCanvas::refBitmapsInShader(const SkShader* shader) {
578    if (!shader) return;
579
580    // If this paint has an SkShader that has an SkBitmap add
581    // it to the bitmap pile
582    SkBitmap bitmap;
583    SkShader::TileMode xy[2];
584    if (shader->asABitmap(&bitmap, nullptr, xy) == SkShader::kDefault_BitmapType) {
585        refBitmap(bitmap);
586        return;
587    }
588    SkShader::ComposeRec rec;
589    if (shader->asACompose(&rec)) {
590        refBitmapsInShader(rec.fShaderA);
591        refBitmapsInShader(rec.fShaderB);
592        return;
593    }
594}
595
596}; // namespace uirenderer
597}; // namespace android
598