Home | History | Annotate | Download | only in renderthread

Lines Matching refs:Args

32 #define ARGS(method) method ## Args
45 } ARGS(name); \
46 static void* Bridge_ ## name(ARGS(name)* args)
49 LOG_ALWAYS_FATAL_IF( METHOD_INVOKE_PAYLOAD_SIZE < sizeof(ARGS(method)), \
50 "METHOD_INVOKE_PAYLOAD_SIZE %zu is smaller than sizeof(" #method "Args) %zu", \
51 METHOD_INVOKE_PAYLOAD_SIZE, sizeof(ARGS(method))); \
53 ARGS(method) *args = (ARGS(method) *) task->payload()
57 return new CanvasContext(*args->thread, args->translucent,
58 args->rootRenderNode, args->contextFactory);
65 args->translucent = translucent;
66 args->rootRenderNode = rootRenderNode;
67 args->thread = &mRenderThread;
68 args->contextFactory = contextFactory;
78 delete args->context;
85 args->context = mContext;
95 args->thread->timeLord().setFrameInterval(args->frameIntervalNanos);
101 args->thread = &mRenderThread;
102 args->frameIntervalNanos = frameIntervalNanos;
111 if (args->context->profiler().loadSystemProperties()) {
119 args->context = mContext;
124 return (void*) args->context->initialize(args->window);
129 args->context = mContext;
130 args->window = window.get();
135 args->context->updateSurface(args->window);
141 args->context = mContext;
142 args->window = window.get();
147 args->context->pauseSurface(args->window);
153 args->context = mContext;
154 args->window = window.get();
161 args->context->setup(args->width, args->height, args->lightCenter, args->lightRadius,
162 args->ambientShadowAlpha, args->spotShadowAlpha);
169 args->context = mContext;
170 args->width = width;
171 args->height = height;
172 args->lightCenter = lightCenter;
173 args->lightRadius = lightRadius;
174 args->ambientShadowAlpha = ambientShadowAlpha;
175 args->spotShadowAlpha = spotShadowAlpha;
180 args->context->setOpaque(args->opaque);
186 args->context = mContext;
187 args->opaque = opaque;
198 args->context->destroy();
204 args->context = mContext;
212 CanvasContext::invokeFunctor(*args->thread, args->functor);
220 args->thread = &thread;
221 args->functor = functor;
238 args->context->runWithGlContext(args->task);
244 args->context = mContext;
245 args->task = gltask;
250 LayerRenderer::destroyLayer(args->layer);
256 args->layer = layer;
261 Layer* layer = args->context->createTextureLayer();
263 return new DeferredLayerUpdater(*args->thread, layer);
268 args->context = mContext;
269 args->thread = &mRenderThread;
276 args->context->buildLayer(args->node);
282 args->context = mContext;
283 args->node = node;
289 bool success = args->context->copyLayerInto(args->layer, args->bitmap);
295 args->context = mContext;
296 args->layer = layer;
297 args->bitmap = bitmap;
310 args->layer->detachSurfaceTexture();
316 args->layer = layer;
321 args->context->destroyHardwareResources();
327 args->context = mContext;
332 CanvasContext::trimMemory(*args->thread, args->level);
341 args->thread = &thread;
342 args->level = level;
358 args->context->stopDrawing();
364 args->context = mContext;
369 args->context->notifyFramePending();
375 args->context = mContext;
380 args->context->profiler().dumpData(args->fd);
386 args->context = mContext;
387 args->fd = fd;
392 CanvasContext::setTextureAtlas(*args->thread, args->buffer, args->map, args->size);
393 args->buffer->decStrong(0);
399 args->thread = &mRenderThread;
400 args->buffer = buffer.get();
401 args->buffer->incStrong(0);
402 args->map = map;
403 args->size = size;