blob: fcbf1b21c06af18dce25f13fb064cebc66581b39 [file] [log] [blame]
Robert Phillips96601082018-05-29 16:13:26 -04001/*
2 * Copyright 2018 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
Mike Kleinc0bd9f92019-04-23 12:05:21 -05008#include "tools/DDLTileHelper.h"
Robert Phillips96601082018-05-29 16:13:26 -04009
Mike Kleinc0bd9f92019-04-23 12:05:21 -050010#include "include/core/SkCanvas.h"
11#include "include/core/SkDeferredDisplayListRecorder.h"
12#include "include/core/SkPicture.h"
13#include "include/core/SkSurface.h"
14#include "include/core/SkSurfaceCharacterization.h"
15#include "src/core/SkDeferredDisplayListPriv.h"
16#include "src/core/SkTaskGroup.h"
Robert Phillips7b0ed552020-02-20 12:45:19 -050017#include "src/gpu/GrContextPriv.h"
Mike Kleinc0bd9f92019-04-23 12:05:21 -050018#include "src/image/SkImage_Gpu.h"
19#include "tools/DDLPromiseImageHelper.h"
Robert Phillips96601082018-05-29 16:13:26 -040020
Robert Phillips19f466d2020-02-26 10:27:07 -050021void DDLTileHelper::TileData::init(int id,
Robert Phillips11c67672020-04-23 15:10:03 -040022 GrContext* context,
Robert Phillips19f466d2020-02-26 10:27:07 -050023 const SkSurfaceCharacterization& dstSurfaceCharacterization,
24 const SkIRect& clip) {
Robert Phillipsa865a3a2020-02-14 10:49:39 -050025 fID = id;
Robert Phillipsa865a3a2020-02-14 10:49:39 -050026 fClip = clip;
27
Robert Phillips19f466d2020-02-26 10:27:07 -050028 fCharacterization = dstSurfaceCharacterization.createResized(clip.width(), clip.height());
Robert Phillipsa865a3a2020-02-14 10:49:39 -050029 SkASSERT(fCharacterization.isValid());
Robert Phillips11c67672020-04-23 15:10:03 -040030
31 GrBackendFormat backendFormat = context->defaultBackendFormat(fCharacterization.colorType(),
32 GrRenderable::kYes);
33 SkDEBUGCODE(const GrCaps* caps = context->priv().caps());
34 SkASSERT(caps->isFormatTexturable(backendFormat));
35
36 fCallbackContext.reset(new PromiseImageCallbackContext(context, backendFormat));
Robert Phillips96601082018-05-29 16:13:26 -040037}
38
Robert Phillipsa865a3a2020-02-14 10:49:39 -050039DDLTileHelper::TileData::~TileData() {}
40
Robert Phillips96601082018-05-29 16:13:26 -040041void DDLTileHelper::TileData::createTileSpecificSKP(SkData* compressedPictureData,
42 const DDLPromiseImageHelper& helper) {
Robert Phillips7a3197b2018-09-26 21:18:23 +000043 SkASSERT(!fReconstitutedPicture);
Robert Phillips96601082018-05-29 16:13:26 -040044
Robert Phillips7a3197b2018-09-26 21:18:23 +000045 // This is bending the DDLRecorder contract! The promise images in the SKP should be
46 // created by the same recorder used to create the matching DDL.
47 SkDeferredDisplayListRecorder recorder(fCharacterization);
Robert Phillips96601082018-05-29 16:13:26 -040048
Robert Phillips7a3197b2018-09-26 21:18:23 +000049 fReconstitutedPicture = helper.reinflateSKP(&recorder, compressedPictureData, &fPromiseImages);
Robert Phillipse8e2bb12018-09-27 14:26:47 -040050
Adlai Holler7580ad42020-06-24 13:45:25 -040051 auto ddl = recorder.detach();
Chris Dalton6b498102019-08-01 14:14:52 -060052 if (ddl->priv().numRenderTasks()) {
Robert Phillipse8e2bb12018-09-27 14:26:47 -040053 // TODO: remove this once skbug.com/8424 is fixed. If the DDL resulting from the
Greg Danielf41b2bd2019-08-22 16:19:24 -040054 // reinflation of the SKPs contains opsTasks that means some image subset operation
Robert Phillipse8e2bb12018-09-27 14:26:47 -040055 // created a draw.
56 fReconstitutedPicture.reset();
57 }
Robert Phillips96601082018-05-29 16:13:26 -040058}
59
60void DDLTileHelper::TileData::createDDL() {
Robert Phillips24a8e9e2020-03-06 20:26:28 +000061 SkASSERT(!fDisplayList && fReconstitutedPicture);
Robert Phillips96601082018-05-29 16:13:26 -040062
Robert Phillips7a3197b2018-09-26 21:18:23 +000063 SkDeferredDisplayListRecorder recorder(fCharacterization);
64
65 // DDL TODO: the DDLRecorder's GrContext isn't initialized until getCanvas is called.
66 // Maybe set it up in the ctor?
Robert Phillips24a8e9e2020-03-06 20:26:28 +000067 SkCanvas* recordingCanvas = recorder.getCanvas();
Robert Phillips7a3197b2018-09-26 21:18:23 +000068
69 // Because we cheated in createTileSpecificSKP and used the wrong DDLRecorder, the GrContext's
70 // stored in fReconstitutedPicture's promise images are incorrect. Patch them with the correct
71 // one now.
72 for (int i = 0; i < fPromiseImages.count(); ++i) {
Robert Phillips24a8e9e2020-03-06 20:26:28 +000073 GrContext* newContext = recordingCanvas->getGrContext();
Robert Phillips7a3197b2018-09-26 21:18:23 +000074
75 if (fPromiseImages[i]->isTextureBacked()) {
Jim Van Verth21bd60d2018-10-12 15:00:20 -040076 SkImage_GpuBase* gpuImage = (SkImage_GpuBase*) fPromiseImages[i].get();
Robert Phillips7a3197b2018-09-26 21:18:23 +000077 gpuImage->resetContext(sk_ref_sp(newContext));
78 }
79 }
Robert Phillips96601082018-05-29 16:13:26 -040080
Robert Phillips24a8e9e2020-03-06 20:26:28 +000081 recordingCanvas->clipRect(SkRect::MakeWH(fClip.width(), fClip.height()));
82 recordingCanvas->translate(-fClip.fLeft, -fClip.fTop);
Robert Phillips96601082018-05-29 16:13:26 -040083
84 // Note: in this use case we only render a picture to the deferred canvas
85 // but, more generally, clients will use arbitrary draw calls.
Robert Phillips24a8e9e2020-03-06 20:26:28 +000086 recordingCanvas->drawPicture(fReconstitutedPicture);
Robert Phillips96601082018-05-29 16:13:26 -040087
Robert Phillips7a3197b2018-09-26 21:18:23 +000088 fDisplayList = recorder.detach();
Robert Phillips96601082018-05-29 16:13:26 -040089}
90
Robert Phillips11c67672020-04-23 15:10:03 -040091void DDLTileHelper::createComposeDDL() {
92 SkASSERT(!fComposeDDL);
93
94 SkDeferredDisplayListRecorder recorder(fDstCharacterization);
95
96 SkCanvas* recordingCanvas = recorder.getCanvas();
97
98 for (int i = 0; i < this->numTiles(); ++i) {
99 TileData* tile = &fTiles[i];
100
101 sk_sp<SkImage> promiseImage = tile->makePromiseImage(&recorder);
102
103 SkIRect clipRect = tile->clipRect();
104
105 SkASSERT(clipRect.width() == promiseImage->width() &&
106 clipRect.height() == promiseImage->height());
107
108 recordingCanvas->drawImage(promiseImage, clipRect.fLeft, clipRect.fTop);
109 }
110
111 fComposeDDL = recorder.detach();
Robert Phillips889d6132020-06-16 11:11:33 -0400112 SkASSERT(fComposeDDL);
Robert Phillips11c67672020-04-23 15:10:03 -0400113}
114
Robert Phillips6eb5cb92020-03-05 12:52:45 -0500115void DDLTileHelper::TileData::precompile(GrContext* context) {
116 SkASSERT(fDisplayList);
117
118 SkDeferredDisplayList::ProgramIterator iter(context, fDisplayList.get());
119 for (; !iter.done(); iter.next()) {
120 iter.compile();
121 }
122}
123
Robert Phillips8472a3d2020-04-16 16:27:45 -0400124sk_sp<SkSurface> DDLTileHelper::TileData::makeWrappedTileDest(GrContext* context) {
Robert Phillips11c67672020-04-23 15:10:03 -0400125 SkASSERT(fCallbackContext && fCallbackContext->promiseImageTexture());
126
127 auto promiseImageTexture = fCallbackContext->promiseImageTexture();
128 if (!promiseImageTexture->backendTexture().isValid()) {
Robert Phillips8472a3d2020-04-16 16:27:45 -0400129 return nullptr;
130 }
Robert Phillips7ae9d2f2020-04-15 10:58:15 -0400131
Robert Phillips11c67672020-04-23 15:10:03 -0400132 // Here we are, unfortunately, aliasing the backend texture held by the SkPromiseImageTexture.
133 // Both the tile's destination surface and the promise image used to draw the tile will be
134 // backed by the same backendTexture - unbeknownst to Ganesh.
Robert Phillips8472a3d2020-04-16 16:27:45 -0400135 return SkSurface::MakeFromBackendTexture(context,
Robert Phillips11c67672020-04-23 15:10:03 -0400136 promiseImageTexture->backendTexture(),
Robert Phillips8472a3d2020-04-16 16:27:45 -0400137 fCharacterization.origin(),
138 fCharacterization.sampleCount(),
139 fCharacterization.colorType(),
140 fCharacterization.refColorSpace(),
141 &fCharacterization.surfaceProps());
142}
143
144void DDLTileHelper::TileData::drawSKPDirectly(GrContext* context) {
145 SkASSERT(!fDisplayList && !fTileSurface && fReconstitutedPicture);
146
147 fTileSurface = this->makeWrappedTileDest(context);
148 if (fTileSurface) {
149 SkCanvas* tileCanvas = fTileSurface->getCanvas();
Robert Phillips24a8e9e2020-03-06 20:26:28 +0000150
151 tileCanvas->clipRect(SkRect::MakeWH(fClip.width(), fClip.height()));
152 tileCanvas->translate(-fClip.fLeft, -fClip.fTop);
153
154 tileCanvas->drawPicture(fReconstitutedPicture);
155
Robert Phillips8472a3d2020-04-16 16:27:45 -0400156 // We can't snap an image here bc, since we're using wrapped backend textures for the
157 // surfaces, that would incur a copy.
Robert Phillips24a8e9e2020-03-06 20:26:28 +0000158 }
159}
160
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500161void DDLTileHelper::TileData::draw(GrContext* context) {
Robert Phillips8472a3d2020-04-16 16:27:45 -0400162 SkASSERT(fDisplayList && !fTileSurface);
Robert Phillips96601082018-05-29 16:13:26 -0400163
Robert Phillips11c67672020-04-23 15:10:03 -0400164 // The tile's surface needs to be held until after the DDL is flushed bc the DDL doesn't take
165 // a ref on its destination proxy.
166 // TODO: make the DDL (or probably the drawing manager) take a ref on the destination proxy
167 // (maybe in GrDrawingManager::addDDLTarget).
Robert Phillips8472a3d2020-04-16 16:27:45 -0400168 fTileSurface = this->makeWrappedTileDest(context);
169 if (fTileSurface) {
Adlai Holler7580ad42020-06-24 13:45:25 -0400170 fTileSurface->draw(fDisplayList);
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500171
Robert Phillips8472a3d2020-04-16 16:27:45 -0400172 // We can't snap an image here bc, since we're using wrapped backend textures for the
173 // surfaces, that would incur a copy.
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500174 }
Robert Phillips96601082018-05-29 16:13:26 -0400175}
176
Robert Phillips96601082018-05-29 16:13:26 -0400177void DDLTileHelper::TileData::reset() {
178 // TODO: when DDLs are re-renderable we don't need to do this
179 fDisplayList = nullptr;
Robert Phillips11c67672020-04-23 15:10:03 -0400180
Robert Phillips8472a3d2020-04-16 16:27:45 -0400181 fTileSurface = nullptr;
182}
183
Robert Phillips11c67672020-04-23 15:10:03 -0400184sk_sp<SkImage> DDLTileHelper::TileData::makePromiseImage(SkDeferredDisplayListRecorder* recorder) {
185 SkASSERT(fCallbackContext);
186
187 // The promise image gets a ref on the promise callback context
188 sk_sp<SkImage> promiseImage = recorder->makePromiseTexture(
189 fCallbackContext->backendFormat(),
190 fClip.width(),
191 fClip.height(),
192 GrMipMapped::kNo,
193 GrSurfaceOrigin::kBottomLeft_GrSurfaceOrigin,
194 fCharacterization.colorType(),
195 kPremul_SkAlphaType,
196 fCharacterization.refColorSpace(),
197 PromiseImageCallbackContext::PromiseImageFulfillProc,
198 PromiseImageCallbackContext::PromiseImageReleaseProc,
199 PromiseImageCallbackContext::PromiseImageDoneProc,
200 (void*)this->refCallbackContext().release(),
201 SkDeferredDisplayListRecorder::PromiseImageApiVersion::kNew);
202 fCallbackContext->wasAddedToImage();
203
204 return promiseImage;
205}
206
Robert Phillips8472a3d2020-04-16 16:27:45 -0400207void DDLTileHelper::TileData::CreateBackendTexture(GrContext* context, TileData* tile) {
208 SkASSERT(context->priv().asDirectContext());
Robert Phillips11c67672020-04-23 15:10:03 -0400209 SkASSERT(tile->fCallbackContext && !tile->fCallbackContext->promiseImageTexture());
Robert Phillips8472a3d2020-04-16 16:27:45 -0400210
Robert Phillips11c67672020-04-23 15:10:03 -0400211 GrBackendTexture beTex = context->createBackendTexture(tile->fCharacterization);
212 tile->fCallbackContext->setBackendTexture(beTex);
Robert Phillips8472a3d2020-04-16 16:27:45 -0400213}
214
215void DDLTileHelper::TileData::DeleteBackendTexture(GrContext* context, TileData* tile) {
216 SkASSERT(context->priv().asDirectContext());
Robert Phillips11c67672020-04-23 15:10:03 -0400217 SkASSERT(tile->fCallbackContext);
218
Robert Phillips8472a3d2020-04-16 16:27:45 -0400219 // TODO: it seems that, on the Linux bots, backend texture creation is failing
220 // a lot (skbug.com/10142)
Robert Phillips11c67672020-04-23 15:10:03 -0400221 SkASSERT(!tile->fCallbackContext->promiseImageTexture() ||
222 tile->fCallbackContext->promiseImageTexture()->backendTexture().isValid());
Robert Phillips8472a3d2020-04-16 16:27:45 -0400223
224 tile->fTileSurface = nullptr;
Robert Phillips11c67672020-04-23 15:10:03 -0400225
226 SkASSERT(tile->fCallbackContext->unique());
227 tile->fCallbackContext.reset();
Robert Phillips96601082018-05-29 16:13:26 -0400228}
229
230///////////////////////////////////////////////////////////////////////////////////////////////////
231
Robert Phillips11c67672020-04-23 15:10:03 -0400232DDLTileHelper::DDLTileHelper(GrContext* context,
Robert Phillips19f466d2020-02-26 10:27:07 -0500233 const SkSurfaceCharacterization& dstChar,
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500234 const SkIRect& viewport,
235 int numDivisions)
Robert Phillips11c67672020-04-23 15:10:03 -0400236 : fNumDivisions(numDivisions)
Adlai Holler8e821232020-05-11 13:33:59 -0400237 , fTiles(numDivisions * numDivisions)
Robert Phillips11c67672020-04-23 15:10:03 -0400238 , fDstCharacterization(dstChar) {
Robert Phillips96601082018-05-29 16:13:26 -0400239 SkASSERT(fNumDivisions > 0);
Robert Phillips96601082018-05-29 16:13:26 -0400240
241 int xTileSize = viewport.width()/fNumDivisions;
242 int yTileSize = viewport.height()/fNumDivisions;
243
244 // Create the destination tiles
245 for (int y = 0, yOff = 0; y < fNumDivisions; ++y, yOff += yTileSize) {
246 int ySize = (y < fNumDivisions-1) ? yTileSize : viewport.height()-yOff;
247
248 for (int x = 0, xOff = 0; x < fNumDivisions; ++x, xOff += xTileSize) {
249 int xSize = (x < fNumDivisions-1) ? xTileSize : viewport.width()-xOff;
250
251 SkIRect clip = SkIRect::MakeXYWH(xOff, yOff, xSize, ySize);
252
253 SkASSERT(viewport.contains(clip));
254
Robert Phillips11c67672020-04-23 15:10:03 -0400255 fTiles[y*fNumDivisions+x].init(y*fNumDivisions+x, context, dstChar, clip);
Robert Phillips96601082018-05-29 16:13:26 -0400256 }
257 }
258}
259
260void DDLTileHelper::createSKPPerTile(SkData* compressedPictureData,
261 const DDLPromiseImageHelper& helper) {
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500262 for (int i = 0; i < this->numTiles(); ++i) {
Robert Phillips96601082018-05-29 16:13:26 -0400263 fTiles[i].createTileSpecificSKP(compressedPictureData, helper);
264 }
265}
266
267void DDLTileHelper::createDDLsInParallel() {
268#if 1
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500269 SkTaskGroup().batch(this->numTiles(), [&](int i) { fTiles[i].createDDL(); });
Robert Phillips11c67672020-04-23 15:10:03 -0400270 SkTaskGroup().add([this]{ this->createComposeDDL(); });
Robert Phillipsf18c7562018-06-13 09:01:36 -0400271 SkTaskGroup().wait();
Robert Phillips96601082018-05-29 16:13:26 -0400272#else
273 // Use this code path to debug w/o threads
Robert Phillips24a8e9e2020-03-06 20:26:28 +0000274 for (int i = 0; i < this->numTiles(); ++i) {
Robert Phillips96601082018-05-29 16:13:26 -0400275 fTiles[i].createDDL();
276 }
Robert Phillips11c67672020-04-23 15:10:03 -0400277 this->createComposeDDL();
Robert Phillips96601082018-05-29 16:13:26 -0400278#endif
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500279}
Robert Phillips96601082018-05-29 16:13:26 -0400280
Robert Phillips7b0ed552020-02-20 12:45:19 -0500281// On the gpu thread:
282// precompile any programs
283// replay the DDL into a surface to make the tile image
284// compose the tile image into the main canvas
285static void do_gpu_stuff(GrContext* context, DDLTileHelper::TileData* tile) {
Robert Phillips7b0ed552020-02-20 12:45:19 -0500286
287 // TODO: schedule program compilation as their own tasks
Robert Phillips6eb5cb92020-03-05 12:52:45 -0500288 tile->precompile(context);
Robert Phillips7b0ed552020-02-20 12:45:19 -0500289
290 tile->draw(context);
Robert Phillips5dbcca52020-05-29 10:41:33 -0400291
292 // TODO: remove this flush once DDLs are reffed by the drawing manager
293 context->flushAndSubmit();
294
295 tile->dropDDL();
Robert Phillips7b0ed552020-02-20 12:45:19 -0500296}
297
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500298// We expect to have more than one recording thread but just one gpu thread
299void DDLTileHelper::kickOffThreadedWork(SkTaskGroup* recordingTaskGroup,
300 SkTaskGroup* gpuTaskGroup,
301 GrContext* gpuThreadContext) {
302 SkASSERT(recordingTaskGroup && gpuTaskGroup && gpuThreadContext);
303
304 for (int i = 0; i < this->numTiles(); ++i) {
305 TileData* tile = &fTiles[i];
306
307 // On a recording thread:
308 // generate the tile's DDL
309 // schedule gpu-thread processing of the DDL
310 // Note: a finer grained approach would be add a scheduling task which would evaluate
311 // which DDLs were ready to be rendered based on their prerequisites
312 recordingTaskGroup->add([tile, gpuTaskGroup, gpuThreadContext]() {
313 tile->createDDL();
314
315 gpuTaskGroup->add([gpuThreadContext, tile]() {
Robert Phillips7b0ed552020-02-20 12:45:19 -0500316 do_gpu_stuff(gpuThreadContext, tile);
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500317 });
318 });
319 }
Robert Phillips11c67672020-04-23 15:10:03 -0400320
321 recordingTaskGroup->add([this] { this->createComposeDDL(); });
Robert Phillips96601082018-05-29 16:13:26 -0400322}
323
Robert Phillips5dbcca52020-05-29 10:41:33 -0400324// Only called from ViaDDL
Robert Phillips6eb5cb92020-03-05 12:52:45 -0500325void DDLTileHelper::precompileAndDrawAllTiles(GrContext* context) {
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500326 for (int i = 0; i < this->numTiles(); ++i) {
Robert Phillips6eb5cb92020-03-05 12:52:45 -0500327 fTiles[i].precompile(context);
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500328 fTiles[i].draw(context);
Robert Phillips96601082018-05-29 16:13:26 -0400329 }
Robert Phillips96601082018-05-29 16:13:26 -0400330}
331
Robert Phillips5dbcca52020-05-29 10:41:33 -0400332// Only called from skpbench
Robert Phillips24a8e9e2020-03-06 20:26:28 +0000333void DDLTileHelper::interleaveDDLCreationAndDraw(GrContext* context) {
334 for (int i = 0; i < this->numTiles(); ++i) {
335 fTiles[i].createDDL();
336 fTiles[i].draw(context);
337 }
338}
339
Robert Phillips5dbcca52020-05-29 10:41:33 -0400340// Only called from skpbench
Robert Phillips24a8e9e2020-03-06 20:26:28 +0000341void DDLTileHelper::drawAllTilesDirectly(GrContext* context) {
342 for (int i = 0; i < this->numTiles(); ++i) {
343 fTiles[i].drawSKPDirectly(context);
344 }
345}
346
Robert Phillips11c67672020-04-23 15:10:03 -0400347void DDLTileHelper::dropCallbackContexts() {
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500348 for (int i = 0; i < this->numTiles(); ++i) {
Robert Phillips11c67672020-04-23 15:10:03 -0400349 fTiles[i].dropCallbackContext();
Robert Phillips96601082018-05-29 16:13:26 -0400350 }
351}
352
353void DDLTileHelper::resetAllTiles() {
Robert Phillipsa865a3a2020-02-14 10:49:39 -0500354 for (int i = 0; i < this->numTiles(); ++i) {
Robert Phillips96601082018-05-29 16:13:26 -0400355 fTiles[i].reset();
356 }
Robert Phillips11c67672020-04-23 15:10:03 -0400357 fComposeDDL.reset();
Robert Phillips96601082018-05-29 16:13:26 -0400358}
Robert Phillips8472a3d2020-04-16 16:27:45 -0400359
360void DDLTileHelper::createBackendTextures(SkTaskGroup* taskGroup, GrContext* context) {
361 SkASSERT(context->priv().asDirectContext());
362
363 if (taskGroup) {
364 for (int i = 0; i < this->numTiles(); ++i) {
365 TileData* tile = &fTiles[i];
366
367 taskGroup->add([context, tile]() { TileData::CreateBackendTexture(context, tile); });
368 }
369 } else {
370 for (int i = 0; i < this->numTiles(); ++i) {
371 TileData::CreateBackendTexture(context, &fTiles[i]);
372 }
373 }
374}
375
376void DDLTileHelper::deleteBackendTextures(SkTaskGroup* taskGroup, GrContext* context) {
377 SkASSERT(context->priv().asDirectContext());
378
379 if (taskGroup) {
380 for (int i = 0; i < this->numTiles(); ++i) {
381 TileData* tile = &fTiles[i];
382
383 taskGroup->add([context, tile]() { TileData::DeleteBackendTexture(context, tile); });
384 }
385 } else {
386 for (int i = 0; i < this->numTiles(); ++i) {
387 TileData::DeleteBackendTexture(context, &fTiles[i]);
388 }
389 }
390}