Home | History | Annotate | Download | only in renderthread

Lines Matching refs:Args

33 #define ARGS(method) method ## Args
46 } ARGS(name); \
47 static void* Bridge_ ## name(ARGS(name)* args)
50 LOG_ALWAYS_FATAL_IF( METHOD_INVOKE_PAYLOAD_SIZE < sizeof(ARGS(method)), \
51 "METHOD_INVOKE_PAYLOAD_SIZE %zu is smaller than sizeof(" #method "Args) %zu", \
52 METHOD_INVOKE_PAYLOAD_SIZE, sizeof(ARGS(method))); \
54 ARGS(method) *args = (ARGS(method) *) task->payload()
58 return new CanvasContext(*args->thread, args->translucent,
59 args->rootRenderNode, args->contextFactory);
66 args->translucent = translucent;
67 args->rootRenderNode = rootRenderNode;
68 args->thread = &mRenderThread;
69 args->contextFactory = contextFactory;
79 delete args->context;
86 args->context = mContext;
96 args->context->setSwapBehavior(args->swapBehavior);
102 args->context = mContext;
103 args->swapBehavior = swapBehavior;
112 if (args->context->profiler().consumeProperties()) {
120 args->context = mContext;
125 args->context->setName(std::string(args->name));
131 args->context = mContext;
132 args->name = name;
137 args->context->initialize(args->surface);
143 args->context = mContext;
144 args->surface = surface.get();
149 args->context->updateSurface(args->surface);
155 args->context = mContext;
156 args->surface = surface.get();
161 return (void*) args->context->pauseSurface(args->surface);
166 args->context = mContext;
167 args->surface = surface.get();
172 args->context->setStopped(args->stopped);
178 args->context = mContext;
179 args->stopped = stopped;
185 args->context->setup(args->width, args->height, args->lightRadius,
186 args->ambientShadowAlpha, args->spotShadowAlpha);
193 args->context = mContext;
194 args->width = width;
195 args->height = height;
196 args->lightRadius = lightRadius;
197 args->ambientShadowAlpha = ambientShadowAlpha;
198 args->spotShadowAlpha = spotShadowAlpha;
203 args->context->setLightCenter(args->lightCenter);
209 args->context = mContext;
210 args->lightCenter = lightCenter;
215 args->context->setOpaque(args->opaque);
221 args->context = mContext;
222 args->opaque = opaque;
235 args->context->destroy(args->observer);
241 args->context = mContext;
242 args->observer = observer;
250 CanvasContext::invokeFunctor(*args->thread, args->functor);
258 args->thread = &thread;
259 args->functor = functor;
271 args->context->runWithGlContext(args->task);
277 args->context = mContext;
278 args->task = gltask;
283 Layer* layer = args->context->createTextureLayer();
290 args->context = mContext;
297 args->context->buildLayer(args->node, args->observer);
303 args->context = mContext;
304 args->node = node;
305 args->observer = observer;
311 bool success = args->context->copyLayerInto(args->layer, args->bitmap);
317 args->context = mContext;
318 args->layer = layer;
319 args->bitmap = &bitmap;
332 args->layer->detachSurfaceTexture();
338 args->layer = layer;
343 args->context->destroyHardwareResources(args->observer);
349 args->context = mContext;
350 args->observer = observer;
355 CanvasContext::trimMemory(*args->thread, args->level);
364 args->thread = &thread;
365 args->level = level;
371 Properties::overrideProperty(args->name, args->value);
377 args->name = name;
378 args->value = value;
392 UNUSED(args);
398 UNUSED(args);
403 args->context->stopDrawing();
409 args->context = mContext;
414 args->context->notifyFramePending();
420 args->context = mContext;
426 args->context->profiler().dumpData(args->fd);
427 if (args->dumpFlags & DumpFlags::FrameStats) {
428 args->context->dumpFrames(args->fd);
430 if (args->dumpFlags & DumpFlags::Reset) {
431 args->context->resetFrameStats();
433 if (args->dumpFlags & DumpFlags::JankStats) {
434 args->thread->jankTracker().dump(args->fd);
441 args->context = mContext;
442 args->thread = &mRenderThread;
443 args->fd = fd;
444 args->dumpFlags = dumpFlags;
449 args->context->resetFrameStats();
455 args->context = mContext;
460 args->thread->jankTracker().dump(args->fd);
462 FILE *file = fdopen(args->fd, "a");
482 args->fd = fd;
483 args->thread = &RenderThread::getInstance();
489 CanvasContext::setTextureAtlas(*args->thread, args->buffer, args->map, args->size);
490 args->buffer->decStrong(nullptr);
496 args->thread = &mRenderThread;
497 args->buffer = buffer.get();
498 args->buffer->incStrong(nullptr);
499 args->map = map;
500 args->size = size;
505 args->thread->jankTracker().switchStorageToAshmem(args->fd);
506 close(args->fd);
512 args->thread = &mRenderThread;
513 args->fd = dup(fd);
518 args->context->addRenderNode(args->node, args->placeFront);
524 args->context = mContext;
525 args->node = node;
526 args->placeFront = placeFront;
531 args->context->removeRenderNode(args->node);
537 args->context = mContext;
538 args->node = node;
543 args->context->prepareAndDraw(args
549 args->context = mContext;
550 args->node = node;
557 args->context->setContentDrawBounds(args->left, args->top, args->right, args->bottom);
563 args->context = mContext;
564 args->left = left;
565 args->top = top;
566 args->right = right;
567 args->bottom = bottom;
572 args->context->serializeDisplayListTree();
578 args->context = mContext;
584 args->context->addFrameMetricsObserver(args->frameStatsObserver);
585 if (args->frameStatsObserver != nullptr) {
586 args->frameStatsObserver->decStrong(args->context);
593 args->context = mContext;
594 args->frameStatsObserver = observer;
603 args->context->removeFrameMetricsObserver(args->frameStatsObserver);
604 if (args->frameStatsObserver != nullptr) {
605 args->frameStatsObserver->decStrong(args->context);
612 args->context = mContext;
613 args->frameStatsObserver = observer;
622 return (void*) Readback::copySurfaceInto(*args->thread,
623 *args->surface, args->bitmap);
628 args->bitmap = bitmap;
629 args->surface = surface.get();
630 args->thread = &RenderThread::getInstance();