blob: c4bd1e1b10d43929d5358dca7823fa80af7bf0c8 [file] [log] [blame]
Stan Iliev500a0c32016-10-26 10:30:09 -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 "SkiaPipeline.h"
18
19#include "utils/TraceUtils.h"
Hal Canary10219fb2016-11-23 20:41:22 -050020#include <SkImageEncoder.h>
Leon Scroggins IIIee708fa2016-12-12 15:31:39 -050021#include <SkImagePriv.h>
Matt Sarettf58cc922016-11-14 18:33:38 -050022#include <SkOverdrawCanvas.h>
23#include <SkOverdrawColorFilter.h>
Stan Iliev500a0c32016-10-26 10:30:09 -040024#include <SkPicture.h>
25#include <SkPictureRecorder.h>
26#include <SkPixelSerializer.h>
27#include <SkStream.h>
Stan Iliev23c38a92017-03-23 00:12:50 -040028#include "VectorDrawable.h"
Stan Iliev500a0c32016-10-26 10:30:09 -040029
Ben Wagner3aeda5c2017-03-17 17:22:01 -040030#include <unistd.h>
31
Stan Iliev500a0c32016-10-26 10:30:09 -040032using namespace android::uirenderer::renderthread;
33
34namespace android {
35namespace uirenderer {
36namespace skiapipeline {
37
38float SkiaPipeline::mLightRadius = 0;
39uint8_t SkiaPipeline::mAmbientShadowAlpha = 0;
40uint8_t SkiaPipeline::mSpotShadowAlpha = 0;
41
42Vector3 SkiaPipeline::mLightCenter = {FLT_MIN, FLT_MIN, FLT_MIN};
43
Stan Iliev23c38a92017-03-23 00:12:50 -040044SkiaPipeline::SkiaPipeline(RenderThread& thread) : mRenderThread(thread) {
45 mVectorDrawables.reserve(30);
46}
Stan Iliev500a0c32016-10-26 10:30:09 -040047
Stan Iliev232f3622017-08-23 17:15:09 -040048SkiaPipeline::~SkiaPipeline() {
49 unpinImages();
50}
51
Stan Iliev500a0c32016-10-26 10:30:09 -040052TaskManager* SkiaPipeline::getTaskManager() {
Derek Sollenberger8ec9e882017-08-24 16:36:08 -040053 return mRenderThread.cacheManager().getTaskManager();
Stan Iliev500a0c32016-10-26 10:30:09 -040054}
55
56void SkiaPipeline::onDestroyHardwareResources() {
Derek Sollenbergerf9e45d12017-06-01 13:07:39 -040057 mRenderThread.cacheManager().trimStaleResources();
Stan Iliev500a0c32016-10-26 10:30:09 -040058}
59
Derek Sollenbergerb7d34b62016-11-04 10:46:18 -040060bool SkiaPipeline::pinImages(std::vector<SkImage*>& mutableImages) {
61 for (SkImage* image : mutableImages) {
Derek Sollenberger189e8742016-11-16 16:00:17 -050062 if (SkImage_pinAsTexture(image, mRenderThread.getGrContext())) {
63 mPinnedImages.emplace_back(sk_ref_sp(image));
64 } else {
65 return false;
66 }
Derek Sollenbergerb7d34b62016-11-04 10:46:18 -040067 }
68 return true;
69}
70
71void SkiaPipeline::unpinImages() {
72 for (auto& image : mPinnedImages) {
73 SkImage_unpinAsTexture(image.get(), mRenderThread.getGrContext());
74 }
75 mPinnedImages.clear();
76}
77
Stan Iliev500a0c32016-10-26 10:30:09 -040078void SkiaPipeline::renderLayers(const FrameBuilder::LightGeometry& lightGeometry,
Romain Guy07ae5052017-06-13 18:25:32 -070079 LayerUpdateQueue* layerUpdateQueue, bool opaque, bool wideColorGamut,
Stan Iliev500a0c32016-10-26 10:30:09 -040080 const BakedOpRenderer::LightInfo& lightInfo) {
81 updateLighting(lightGeometry, lightInfo);
82 ATRACE_NAME("draw layers");
Stan Iliev23c38a92017-03-23 00:12:50 -040083 renderVectorDrawableCache();
Romain Guy07ae5052017-06-13 18:25:32 -070084 renderLayersImpl(*layerUpdateQueue, opaque, wideColorGamut);
Stan Iliev500a0c32016-10-26 10:30:09 -040085 layerUpdateQueue->clear();
86}
87
Romain Guy07ae5052017-06-13 18:25:32 -070088void SkiaPipeline::renderLayersImpl(const LayerUpdateQueue& layers,
89 bool opaque, bool wideColorGamut) {
Derek Sollenbergerf7df1842017-09-05 11:15:58 -040090 sk_sp<GrContext> cachedContext;
91
Stan Iliev500a0c32016-10-26 10:30:09 -040092 // Render all layers that need to be updated, in order.
93 for (size_t i = 0; i < layers.entries().size(); i++) {
John Reckfc29f7acd2017-03-02 13:23:16 -080094 RenderNode* layerNode = layers.entries()[i].renderNode.get();
Stan Iliev500a0c32016-10-26 10:30:09 -040095 // only schedule repaint if node still on layer - possible it may have been
96 // removed during a dropped frame, but layers may still remain scheduled so
97 // as not to lose info on what portion is damaged
98 if (CC_LIKELY(layerNode->getLayerSurface() != nullptr)) {
99 SkASSERT(layerNode->getLayerSurface());
100 SkASSERT(layerNode->getDisplayList()->isSkiaDL());
101 SkiaDisplayList* displayList = (SkiaDisplayList*)layerNode->getDisplayList();
102 if (!displayList || displayList->isEmpty()) {
Stan Iliev18b388d2017-07-18 16:41:48 -0400103 SkDEBUGF(("%p drawLayers(%s) : missing drawable", layerNode, layerNode->getName()));
Stan Iliev500a0c32016-10-26 10:30:09 -0400104 return;
105 }
106
107 const Rect& layerDamage = layers.entries()[i].damage;
108
109 SkCanvas* layerCanvas = layerNode->getLayerSurface()->getCanvas();
110
111 int saveCount = layerCanvas->save();
112 SkASSERT(saveCount == 1);
113
Stan Ilievb66b8bb2016-12-15 18:17:42 -0500114 layerCanvas->androidFramework_setDeviceClipRestriction(layerDamage.toSkIRect());
Stan Iliev500a0c32016-10-26 10:30:09 -0400115
116 auto savedLightCenter = mLightCenter;
117 // map current light center into RenderNode's coordinate space
118 layerNode->getSkiaLayer()->inverseTransformInWindow.mapPoint3d(mLightCenter);
119
120 const RenderProperties& properties = layerNode->properties();
121 const SkRect bounds = SkRect::MakeWH(properties.getWidth(), properties.getHeight());
122 if (properties.getClipToBounds() && layerCanvas->quickReject(bounds)) {
123 return;
124 }
125
Derek Sollenberger9552c2c2017-08-31 15:37:52 -0400126 ATRACE_FORMAT("drawLayer [%s] %.1f x %.1f", layerNode->getName(), bounds.width(), bounds.height());
127
Matt Sarett79756be2016-11-09 16:13:54 -0500128 layerNode->getSkiaLayer()->hasRenderedSinceRepaint = false;
Stan Iliev500a0c32016-10-26 10:30:09 -0400129 layerCanvas->clear(SK_ColorTRANSPARENT);
130
131 RenderNodeDrawable root(layerNode, layerCanvas, false);
132 root.forceDraw(layerCanvas);
133 layerCanvas->restoreToCount(saveCount);
Stan Iliev500a0c32016-10-26 10:30:09 -0400134 mLightCenter = savedLightCenter;
Derek Sollenbergerf7df1842017-09-05 11:15:58 -0400135
136 // cache the current context so that we can defer flushing it until
137 // either all the layers have been rendered or the context changes
138 GrContext* currentContext = layerCanvas->getGrContext();
139 if (cachedContext.get() != currentContext) {
140 if (cachedContext.get()) {
141 cachedContext->flush();
142 }
143 cachedContext.reset(SkSafeRef(currentContext));
144 }
Stan Iliev500a0c32016-10-26 10:30:09 -0400145 }
146 }
Derek Sollenbergerf7df1842017-09-05 11:15:58 -0400147
148 if (cachedContext.get()) {
149 cachedContext->flush();
150 }
Stan Iliev500a0c32016-10-26 10:30:09 -0400151}
152
153bool SkiaPipeline::createOrUpdateLayer(RenderNode* node,
Romain Guy07ae5052017-06-13 18:25:32 -0700154 const DamageAccumulator& damageAccumulator, bool wideColorGamut) {
Stan Iliev500a0c32016-10-26 10:30:09 -0400155 SkSurface* layer = node->getLayerSurface();
156 if (!layer || layer->width() != node->getWidth() || layer->height() != node->getHeight()) {
Stan Iliev08fc19a2017-07-24 10:20:33 -0400157 SkImageInfo info;
158 if (wideColorGamut) {
159 info = SkImageInfo::Make(node->getWidth(), node->getHeight(), kRGBA_F16_SkColorType,
160 kPremul_SkAlphaType);
161 } else {
162 info = SkImageInfo::MakeN32Premul(node->getWidth(), node->getHeight());
163 }
Stan Iliev500a0c32016-10-26 10:30:09 -0400164 SkSurfaceProps props(0, kUnknown_SkPixelGeometry);
165 SkASSERT(mRenderThread.getGrContext() != nullptr);
166 node->setLayerSurface(
167 SkSurface::MakeRenderTarget(mRenderThread.getGrContext(), SkBudgeted::kYes,
168 info, 0, &props));
169 if (node->getLayerSurface()) {
170 // update the transform in window of the layer to reset its origin wrt light source
171 // position
172 Matrix4 windowTransform;
173 damageAccumulator.computeCurrentTransform(&windowTransform);
174 node->getSkiaLayer()->inverseTransformInWindow = windowTransform;
175 }
176 return true;
177 }
178 return false;
179}
180
181void SkiaPipeline::destroyLayer(RenderNode* node) {
182 node->setLayerSurface(nullptr);
183}
184
185void SkiaPipeline::prepareToDraw(const RenderThread& thread, Bitmap* bitmap) {
186 GrContext* context = thread.getGrContext();
187 if (context) {
188 ATRACE_FORMAT("Bitmap#prepareToDraw %dx%d", bitmap->width(), bitmap->height());
Derek Sollenbergerfb0c8fc2017-07-26 13:53:27 -0400189 sk_sp<SkColorFilter> colorFilter;
190 auto image = bitmap->makeImage(&colorFilter);
Stan Iliev7bc3bc62017-05-24 13:28:36 -0400191 if (image.get() && !bitmap->isHardware()) {
192 SkImage_pinAsTexture(image.get(), context);
193 SkImage_unpinAsTexture(image.get(), context);
194 }
Stan Iliev500a0c32016-10-26 10:30:09 -0400195 }
196}
197
198// Encodes to PNG, unless there is already encoded data, in which case that gets
199// used.
200class PngPixelSerializer : public SkPixelSerializer {
201public:
202 bool onUseEncodedData(const void*, size_t) override { return true; }
203 SkData* onEncode(const SkPixmap& pixmap) override {
Hal Canary10219fb2016-11-23 20:41:22 -0500204 SkDynamicMemoryWStream buf;
205 return SkEncodeImage(&buf, pixmap, SkEncodedImageFormat::kPNG, 100)
206 ? buf.detachAsData().release()
207 : nullptr;
Stan Iliev500a0c32016-10-26 10:30:09 -0400208 }
209};
210
Stan Iliev23c38a92017-03-23 00:12:50 -0400211void SkiaPipeline::renderVectorDrawableCache() {
Stan Iliev3310fb12017-03-23 16:56:51 -0400212 if (!mVectorDrawables.empty()) {
213 sp<VectorDrawableAtlas> atlas = mRenderThread.cacheManager().acquireVectorDrawableAtlas();
214 auto grContext = mRenderThread.getGrContext();
215 atlas->prepareForDraw(grContext);
Derek Sollenberger9552c2c2017-08-31 15:37:52 -0400216 ATRACE_NAME("Update VectorDrawables");
Stan Iliev3310fb12017-03-23 16:56:51 -0400217 for (auto vd : mVectorDrawables) {
218 vd->updateCache(atlas, grContext);
Stan Iliev23c38a92017-03-23 00:12:50 -0400219 }
Stan Iliev3310fb12017-03-23 16:56:51 -0400220 mVectorDrawables.clear();
Stan Iliev23c38a92017-03-23 00:12:50 -0400221 }
Stan Iliev23c38a92017-03-23 00:12:50 -0400222}
223
Stan Iliev500a0c32016-10-26 10:30:09 -0400224void SkiaPipeline::renderFrame(const LayerUpdateQueue& layers, const SkRect& clip,
Romain Guy07ae5052017-06-13 18:25:32 -0700225 const std::vector<sp<RenderNode>>& nodes, bool opaque, bool wideColorGamut,
226 const Rect &contentDrawBounds, sk_sp<SkSurface> surface) {
Stan Iliev500a0c32016-10-26 10:30:09 -0400227
Stan Iliev23c38a92017-03-23 00:12:50 -0400228 renderVectorDrawableCache();
229
Stan Iliev500a0c32016-10-26 10:30:09 -0400230 // draw all layers up front
Romain Guy07ae5052017-06-13 18:25:32 -0700231 renderLayersImpl(layers, opaque, wideColorGamut);
Stan Iliev500a0c32016-10-26 10:30:09 -0400232
233 // initialize the canvas for the current frame
234 SkCanvas* canvas = surface->getCanvas();
235
236 std::unique_ptr<SkPictureRecorder> recorder;
237 bool recordingPicture = false;
238 char prop[PROPERTY_VALUE_MAX];
239 if (skpCaptureEnabled()) {
240 property_get("debug.hwui.capture_frame_as_skp", prop, "0");
Ben Wagner3aeda5c2017-03-17 17:22:01 -0400241 recordingPicture = prop[0] != '0' && access(prop, F_OK) != 0;
Stan Iliev500a0c32016-10-26 10:30:09 -0400242 if (recordingPicture) {
243 recorder.reset(new SkPictureRecorder());
244 canvas = recorder->beginRecording(surface->width(), surface->height(),
245 nullptr, SkPictureRecorder::kPlaybackDrawPicture_RecordFlag);
246 }
247 }
248
Romain Guy07ae5052017-06-13 18:25:32 -0700249 renderFrameImpl(layers, clip, nodes, opaque, wideColorGamut, contentDrawBounds, canvas);
Matt Sarettf58cc922016-11-14 18:33:38 -0500250
251 if (skpCaptureEnabled() && recordingPicture) {
252 sk_sp<SkPicture> picture = recorder->finishRecordingAsPicture();
253 if (picture->approximateOpCount() > 0) {
254 SkFILEWStream stream(prop);
255 if (stream.isValid()) {
256 PngPixelSerializer serializer;
257 picture->serialize(&stream, &serializer);
258 stream.flush();
259 SkDebugf("Captured Drawing Output (%d bytes) for frame. %s", stream.bytesWritten(), prop);
260 }
261 }
262 surface->getCanvas()->drawPicture(picture);
263 }
264
265 if (CC_UNLIKELY(Properties::debugOverdraw)) {
266 renderOverdraw(layers, clip, nodes, contentDrawBounds, surface);
267 }
268
269 ATRACE_NAME("flush commands");
270 canvas->flush();
271}
272
Stan Iliev52771272016-11-17 09:54:38 -0500273namespace {
274static Rect nodeBounds(RenderNode& node) {
275 auto& props = node.properties();
276 return Rect(props.getLeft(), props.getTop(),
277 props.getRight(), props.getBottom());
278}
279}
280
Matt Sarettf58cc922016-11-14 18:33:38 -0500281void SkiaPipeline::renderFrameImpl(const LayerUpdateQueue& layers, const SkRect& clip,
Romain Guy07ae5052017-06-13 18:25:32 -0700282 const std::vector<sp<RenderNode>>& nodes, bool opaque, bool wideColorGamut,
283 const Rect &contentDrawBounds, SkCanvas* canvas) {
Stan Ilievb66b8bb2016-12-15 18:17:42 -0500284 SkAutoCanvasRestore saver(canvas, true);
285 canvas->androidFramework_setDeviceClipRestriction(clip.roundOut());
Stan Iliev500a0c32016-10-26 10:30:09 -0400286
287 if (!opaque) {
288 canvas->clear(SK_ColorTRANSPARENT);
289 }
290
Stan Iliev52771272016-11-17 09:54:38 -0500291 if (1 == nodes.size()) {
292 if (!nodes[0]->nothingToDraw()) {
Stan Iliev52771272016-11-17 09:54:38 -0500293 RenderNodeDrawable root(nodes[0].get(), canvas);
294 root.draw(canvas);
295 }
296 } else if (0 == nodes.size()) {
297 //nothing to draw
298 } else {
299 // It there are multiple render nodes, they are laid out as follows:
300 // #0 - backdrop (content + caption)
301 // #1 - content (local bounds are at (0,0), will be translated and clipped to backdrop)
302 // #2 - additional overlay nodes
303 // Usually the backdrop cannot be seen since it will be entirely covered by the content. While
304 // resizing however it might become partially visible. The following render loop will crop the
305 // backdrop against the content and draw the remaining part of it. It will then draw the content
306 // cropped to the backdrop (since that indicates a shrinking of the window).
307 //
308 // Additional nodes will be drawn on top with no particular clipping semantics.
Stan Iliev500a0c32016-10-26 10:30:09 -0400309
Stan Iliev52771272016-11-17 09:54:38 -0500310 // Usually the contents bounds should be mContentDrawBounds - however - we will
311 // move it towards the fixed edge to give it a more stable appearance (for the moment).
312 // If there is no content bounds we ignore the layering as stated above and start with 2.
Stan Iliev500a0c32016-10-26 10:30:09 -0400313
Stan Iliev52771272016-11-17 09:54:38 -0500314 // Backdrop bounds in render target space
315 const Rect backdrop = nodeBounds(*nodes[0]);
Stan Iliev500a0c32016-10-26 10:30:09 -0400316
Stan Iliev52771272016-11-17 09:54:38 -0500317 // Bounds that content will fill in render target space (note content node bounds may be bigger)
318 Rect content(contentDrawBounds.getWidth(), contentDrawBounds.getHeight());
319 content.translate(backdrop.left, backdrop.top);
320 if (!content.contains(backdrop) && !nodes[0]->nothingToDraw()) {
321 // Content doesn't entirely overlap backdrop, so fill around content (right/bottom)
Stan Iliev500a0c32016-10-26 10:30:09 -0400322
Stan Iliev52771272016-11-17 09:54:38 -0500323 // Note: in the future, if content doesn't snap to backdrop's left/top, this may need to
324 // also fill left/top. Currently, both 2up and freeform position content at the top/left of
325 // the backdrop, so this isn't necessary.
326 RenderNodeDrawable backdropNode(nodes[0].get(), canvas);
327 if (content.right < backdrop.right) {
328 // draw backdrop to right side of content
329 SkAutoCanvasRestore acr(canvas, true);
330 canvas->clipRect(SkRect::MakeLTRB(content.right, backdrop.top,
331 backdrop.right, backdrop.bottom));
332 backdropNode.draw(canvas);
333 }
334 if (content.bottom < backdrop.bottom) {
335 // draw backdrop to bottom of content
336 // Note: bottom fill uses content left/right, to avoid overdrawing left/right fill
337 SkAutoCanvasRestore acr(canvas, true);
338 canvas->clipRect(SkRect::MakeLTRB(content.left, content.bottom,
339 content.right, backdrop.bottom));
340 backdropNode.draw(canvas);
341 }
Stan Iliev500a0c32016-10-26 10:30:09 -0400342 }
343
Stan Iliev52771272016-11-17 09:54:38 -0500344 RenderNodeDrawable contentNode(nodes[1].get(), canvas);
345 if (!backdrop.isEmpty()) {
346 // content node translation to catch up with backdrop
347 float dx = backdrop.left - contentDrawBounds.left;
348 float dy = backdrop.top - contentDrawBounds.top;
349
350 SkAutoCanvasRestore acr(canvas, true);
351 canvas->translate(dx, dy);
352 const SkRect contentLocalClip = SkRect::MakeXYWH(contentDrawBounds.left,
353 contentDrawBounds.top, backdrop.getWidth(), backdrop.getHeight());
354 canvas->clipRect(contentLocalClip);
355 contentNode.draw(canvas);
356 } else {
357 SkAutoCanvasRestore acr(canvas, true);
358 contentNode.draw(canvas);
359 }
360
361 // remaining overlay nodes, simply defer
362 for (size_t index = 2; index < nodes.size(); index++) {
363 if (!nodes[index]->nothingToDraw()) {
364 SkAutoCanvasRestore acr(canvas, true);
365 RenderNodeDrawable overlayNode(nodes[index].get(), canvas);
366 overlayNode.draw(canvas);
367 }
368 }
Stan Iliev500a0c32016-10-26 10:30:09 -0400369 }
Stan Iliev500a0c32016-10-26 10:30:09 -0400370}
371
Matt Sarett4bda6bf2016-11-07 15:43:41 -0500372void SkiaPipeline::dumpResourceCacheUsage() const {
373 int resources, maxResources;
374 size_t bytes, maxBytes;
375 mRenderThread.getGrContext()->getResourceCacheUsage(&resources, &bytes);
376 mRenderThread.getGrContext()->getResourceCacheLimits(&maxResources, &maxBytes);
377
378 SkString log("Resource Cache Usage:\n");
379 log.appendf("%8d items out of %d maximum items\n", resources, maxResources);
380 log.appendf("%8zu bytes (%.2f MB) out of %.2f MB maximum\n",
381 bytes, bytes * (1.0f / (1024.0f * 1024.0f)), maxBytes * (1.0f / (1024.0f * 1024.0f)));
382
383 ALOGD("%s", log.c_str());
384}
385
Matt Sarettf58cc922016-11-14 18:33:38 -0500386// Overdraw debugging
387
388// These colors should be kept in sync with Caches::getOverdrawColor() with a few differences.
389// This implementation:
390// (1) Requires transparent entries for "no overdraw" and "single draws".
391// (2) Requires premul colors (instead of unpremul).
392// (3) Requires RGBA colors (instead of BGRA).
393static const uint32_t kOverdrawColors[2][6] = {
394 { 0x00000000, 0x00000000, 0x2f2f0000, 0x2f002f00, 0x3f00003f, 0x7f00007f, },
395 { 0x00000000, 0x00000000, 0x2f2f0000, 0x4f004f4f, 0x5f50335f, 0x7f00007f, },
396};
397
398void SkiaPipeline::renderOverdraw(const LayerUpdateQueue& layers, const SkRect& clip,
399 const std::vector<sp<RenderNode>>& nodes, const Rect &contentDrawBounds,
400 sk_sp<SkSurface> surface) {
401 // Set up the overdraw canvas.
402 SkImageInfo offscreenInfo = SkImageInfo::MakeA8(surface->width(), surface->height());
403 sk_sp<SkSurface> offscreen = surface->makeSurface(offscreenInfo);
404 SkOverdrawCanvas overdrawCanvas(offscreen->getCanvas());
405
406 // Fake a redraw to replay the draw commands. This will increment the alpha channel
407 // each time a pixel would have been drawn.
408 // Pass true for opaque so we skip the clear - the overdrawCanvas is already zero
409 // initialized.
Romain Guy07ae5052017-06-13 18:25:32 -0700410 renderFrameImpl(layers, clip, nodes, true, false, contentDrawBounds, &overdrawCanvas);
Matt Sarettf58cc922016-11-14 18:33:38 -0500411 sk_sp<SkImage> counts = offscreen->makeImageSnapshot();
412
413 // Draw overdraw colors to the canvas. The color filter will convert counts to colors.
414 SkPaint paint;
415 const SkPMColor* colors = kOverdrawColors[static_cast<int>(Properties::overdrawColorSet)];
416 paint.setColorFilter(SkOverdrawColorFilter::Make(colors));
417 surface->getCanvas()->drawImage(counts.get(), 0.0f, 0.0f, &paint);
418}
419
Stan Iliev500a0c32016-10-26 10:30:09 -0400420} /* namespace skiapipeline */
421} /* namespace uirenderer */
422} /* namespace android */