Lines Matching refs:thread

63 CREATE_BRIDGE4(createContext, RenderThread* thread, bool translucent,
65 return CanvasContext::create(*args->thread, args->translucent,
75 args->thread = &mRenderThread;
249 // the render thread.
253 CREATE_BRIDGE2(invokeFunctor, RenderThread* thread, Functor* functor) {
254 CanvasContext::invokeFunctor(*args->thread, args->functor);
260 RenderThread& thread = RenderThread::getInstance();
262 args->thread = &thread;
270 thread.queue(task);
342 CREATE_BRIDGE2(trimMemory, RenderThread* thread, int level) {
343 CanvasContext::trimMemory(*args->thread, args->level);
350 RenderThread& thread = RenderThread::getInstance();
352 args->thread = &thread;
354 thread.queue(task);
412 CREATE_BRIDGE4(dumpProfileInfo, CanvasContext* context, RenderThread* thread,
422 args->thread->jankTracker().dump(args->fd);
430 args->thread = &mRenderThread;
447 CREATE_BRIDGE2(frameTimePercentile, RenderThread* thread, int percentile) {
449 args->thread->jankTracker().findPercentile(args->percentile)));
454 args->thread = &mRenderThread;
460 CREATE_BRIDGE2(dumpGraphicsMemory, int fd, RenderThread* thread) {
461 args->thread->jankTracker().dump(args->fd);
480 args->thread = &RenderThread::getInstance();
484 CREATE_BRIDGE2(setProcessStatsBuffer, RenderThread* thread, int fd) {
485 args->thread->jankTracker().switchStorageToAshmem(args->fd);
493 args->thread = &rt;
498 CREATE_BRIDGE1(rotateProcessStatsBuffer, RenderThread* thread) {
499 args->thread->jankTracker().rotateStorage();
506 args->thread = &rt;
548 // Be pseudo-thread-safe and don't use any member variables
617 CREATE_BRIDGE4(copySurfaceInto, RenderThread* thread,
619 return (void*)args->thread->readback().copySurfaceInto(*args->surface,
628 args->thread = &RenderThread::getInstance();
634 CREATE_BRIDGE2(prepareToDraw, RenderThread* thread, Bitmap* bitmap) {
635 CanvasContext::prepareToDraw(*args->thread, args->bitmap);
649 args->thread = renderThread;
655 // We expect the UI thread to take 4ms and for RT to be active from VSYNC+4ms to
667 CREATE_BRIDGE2(allocateHardwareBitmap, RenderThread* thread, SkBitmap* bitmap) {
668 sk_sp<Bitmap> hardwareBitmap = Bitmap::allocateHardwareBitmap(*args->thread, *args->bitmap);
675 args->thread = &RenderThread::getInstance();
680 CREATE_BRIDGE3(copyGraphicBufferInto, RenderThread* thread, GraphicBuffer* buffer, SkBitmap* bitmap) {
681 return (void*) args->thread->readback().copyGraphicBufferInto(args->buffer, args->bitmap);
685 RenderThread& thread = RenderThread::getInstance();
686 if (Properties::isSkiaEnabled() && gettid() == thread.getTid()) {
688 return (int) thread.readback().copyGraphicBufferInto(buffer, bitmap);
691 args->thread = &thread;
698 CREATE_BRIDGE2(onBitmapDestroyed, RenderThread* thread, uint32_t pixelRefId) {
699 args->thread->renderState().onBitmapDestroyed(args->pixelRefId);
706 RenderThread& thread = RenderThread::getInstance();
707 args->thread = &thread;
709 thread.queue(task);
733 RenderThread& thread = RenderThread::getInstance();
734 LOG_ALWAYS_FATAL_IF(gettid() == thread.getTid());
737 thread.queueAndWait(task);