/external/mesa3d/src/gallium/drivers/swr/rasterizer/core/ |
D | threads.cpp | 257 void bindThread(SWR_CONTEXT* pContext, uint32_t threadId, uint32_t procGroupId = 0, bool bindProcGr… in bindThread() argument 260 …if (pContext->threadInfo.SINGLE_THREADED || (pContext->threadInfo.MAX_WORKER_THREADS && bindProcGr… in bindThread() 287 if (!bindProcGroup && !pContext->threadInfo.MAX_WORKER_THREADS) in bindThread() 319 uint32_t GetEnqueuedDraw(SWR_CONTEXT *pContext) in GetEnqueuedDraw() argument 321 return pContext->dcRing.GetHead(); in GetEnqueuedDraw() 325 DRAW_CONTEXT *GetDC(SWR_CONTEXT *pContext, uint32_t drawId) in GetDC() argument 327 return &pContext->dcRing[(drawId-1) % pContext->MAX_DRAWS_IN_FLIGHT]; in GetDC() 340 bool CheckDependency(SWR_CONTEXT *pContext, DRAW_CONTEXT *pDC, uint32_t lastRetiredDraw) in CheckDependency() argument 345 bool CheckDependencyFE(SWR_CONTEXT *pContext, DRAW_CONTEXT *pDC, uint32_t lastRetiredDraw) in CheckDependencyFE() argument 352 INLINE void UpdateClientStats(SWR_CONTEXT* pContext, uint32_t workerId, DRAW_CONTEXT* pDC) in UpdateClientStats() argument [all …]
|
D | api.cpp | 50 void SetupDefaultState(SWR_CONTEXT *pContext); 57 void WakeAllThreads(SWR_CONTEXT *pContext) in WakeAllThreads() argument 59 pContext->FifosNotEmpty.notify_all(); in WakeAllThreads() 73 SWR_CONTEXT *pContext = new (pContextMem) SWR_CONTEXT(); in SwrCreateContext() local 75 pContext->privateStateSize = pCreateInfo->privateStateSize; in SwrCreateContext() 77 pContext->MAX_DRAWS_IN_FLIGHT = KNOB_MAX_DRAWS_IN_FLIGHT; in SwrCreateContext() 80 pContext->MAX_DRAWS_IN_FLIGHT = pCreateInfo->MAX_DRAWS_IN_FLIGHT; in SwrCreateContext() 83 pContext->dcRing.Init(pContext->MAX_DRAWS_IN_FLIGHT); in SwrCreateContext() 84 pContext->dsRing.Init(pContext->MAX_DRAWS_IN_FLIGHT); in SwrCreateContext() 86 …pContext->pMacroTileManagerArray = (MacroTileMgr*)AlignedMalloc(sizeof(MacroTileMgr) * pContext->M… in SwrCreateContext() [all …]
|
D | threads.h | 47 SWR_CONTEXT *pContext; member 64 void CreateThreadPool(SWR_CONTEXT *pContext, THREAD_POOL *pPool); 65 void StartThreadPool(SWR_CONTEXT* pContext, THREAD_POOL* pPool); 66 void DestroyThreadPool(SWR_CONTEXT *pContext, THREAD_POOL *pPool); 69 void WorkOnFifoFE(SWR_CONTEXT *pContext, uint32_t workerId, uint32_t &curDrawFE); 70 bool WorkOnFifoBE(SWR_CONTEXT *pContext, uint32_t workerId, uint32_t &curDrawBE, TileSet &usedTiles… 71 void WorkOnCompute(SWR_CONTEXT *pContext, uint32_t workerId, uint32_t &curDrawBE); 72 int32_t CompleteDrawContext(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC); 74 void BindApiThread(SWR_CONTEXT *pContext, uint32_t apiThreadId);
|
D | clip.cpp | 166 SWR_CONTEXT *pContext = pDC->pContext; in ClipTriangles() local 176 SWR_CONTEXT *pContext = pDC->pContext; in ClipLines() local 186 SWR_CONTEXT *pContext = pDC->pContext; in ClipPoints() local 197 SWR_CONTEXT *pContext = pDC->pContext; in ClipTriangles_simd16() local 213 SWR_CONTEXT *pContext = pDC->pContext; in ClipLines_simd16() local 229 SWR_CONTEXT *pContext = pDC->pContext; in ClipPoints_simd16() local
|
D | backend.cpp | 49 SWR_CONTEXT *pContext = pDC->pContext; in ProcessComputeBE() local 76 csContext.pTGSM = pContext->ppScratch[workerId]; in ProcessComputeBE() 108 SWR_CONTEXT *pContext = pDC->pContext; in ProcessStoreTileBE() local 132 …HOTTILE *pHotTile = pContext->pHotTileMgr->GetHotTileNoLoad(pContext, pDC, macroTile, attachment, … in ProcessStoreTileBE() 149 pContext->pfnStoreTile(GetPrivateState(pDC), srcFormat, in ProcessStoreTileBE() 181 SWR_CONTEXT *pContext = pDC->pContext; in ProcessDiscardInvalidateTilesBE() local 189 HOTTILE *pHotTile = pContext->pHotTileMgr->GetHotTileNoLoad( in ProcessDiscardInvalidateTilesBE() 190 … pContext, pDC, macroTile, (SWR_RENDERTARGET_ATTACHMENT)i, pDesc->createNewTiles, numSamples); in ProcessDiscardInvalidateTilesBE() 202 SWR_CONTEXT *pContext = pDC->pContext; in BackendNullPS() local
|
D | tilemgr.cpp | 86 HOTTILE* HotTileMgr::GetHotTile(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t macroID, SWR_REN… in GetHotTile() argument 102 uint32_t numaNode = ((x ^ y) & pContext->threadPool.numaMask); in GetHotTile() 103 …hotTile.pBuffer = (uint8_t*)AllocHotTileMem(size, 64, numaNode + pContext->threadInfo.BASE_NUMA_NO… in GetHotTile() 126 uint32_t numaNode = ((x ^ y) & pContext->threadPool.numaMask); in GetHotTile() 127 …hotTile.pBuffer = (uint8_t*)AllocHotTileMem(size, 64, numaNode + pContext->threadInfo.BASE_NUMA_NO… in GetHotTile() 166 pContext->pfnStoreTile(GetPrivateState(pDC), format, attachment, in GetHotTile() 170 pContext->pfnLoadTile(GetPrivateState(pDC), format, attachment, in GetHotTile() 181 SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t macroID, in GetHotTileNoLoad() argument 379 void HotTileMgr::InitializeHotTiles(SWR_CONTEXT* pContext, DRAW_CONTEXT* pDC, uint32_t workerId, ui… in InitializeHotTiles() argument 395 …HOTTILE* pHotTile = GetHotTile(pContext, pDC, macroID, (SWR_RENDERTARGET_ATTACHMENT)(SWR_ATTACHMEN… in InitializeHotTiles() [all …]
|
D | backend_clear.cpp | 149 …HOTTILE *pHotTile = pDC->pContext->pHotTileMgr->GetHotTile(pDC->pContext, pDC, macroTile, rt, true… in ClearMacroTile() 174 SWR_CONTEXT *pContext = pDC->pContext; in ProcessClearBE() local 194 …HOTTILE *pHotTile = pContext->pHotTileMgr->GetHotTile(pContext, pDC, macroTile, (SWR_RENDERTARGET_… in ProcessClearBE() 207 …HOTTILE *pHotTile = pContext->pHotTileMgr->GetHotTile(pContext, pDC, macroTile, SWR_ATTACHMENT_DEP… in ProcessClearBE() 214 …HOTTILE *pHotTile = pContext->pHotTileMgr->GetHotTile(pContext, pDC, macroTile, SWR_ATTACHMENT_STE… in ProcessClearBE()
|
/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_crypto_handler.cpp | 125 AESCryptContext* pContext = FX_Alloc(AESCryptContext, 1); in CryptStart() local 126 pContext->m_bIV = true; in CryptStart() 127 pContext->m_BlockOffset = 0; in CryptStart() 128 CRYPT_AESSetKey(&pContext->m_Context, 16, m_EncryptKey, 32, bEncrypt); in CryptStart() 131 pContext->m_Block[i] = (uint8_t)rand(); in CryptStart() 133 CRYPT_AESSetIV(&pContext->m_Context, pContext->m_Block); in CryptStart() 135 return pContext; in CryptStart() 151 AESCryptContext* pContext = FX_Alloc(AESCryptContext, 1); in CryptStart() local 152 pContext->m_bIV = true; in CryptStart() 153 pContext->m_BlockOffset = 0; in CryptStart() [all …]
|
/external/pdfium/fpdfsdk/ |
D | fpdf_progressive.cpp | 50 CPDF_PageRenderContext* pContext = pOwnedContext.get(); in FPDF_RenderPageBitmap_Start() local 56 pContext->m_pDevice = std::move(pOwnedDevice); in FPDF_RenderPageBitmap_Start() 60 FPDF_RenderPage_Retail(pContext, page, start_x, start_y, size_x, size_y, in FPDF_RenderPageBitmap_Start() 67 if (pContext->m_pRenderer) { in FPDF_RenderPageBitmap_Start() 69 pContext->m_pRenderer->GetStatus()); in FPDF_RenderPageBitmap_Start() 83 CPDF_PageRenderContext* pContext = pPage->GetRenderContext(); in FPDF_RenderPage_Continue() local 84 if (pContext && pContext->m_pRenderer) { in FPDF_RenderPage_Continue() 86 pContext->m_pRenderer->Continue(&IPauseAdapter); in FPDF_RenderPage_Continue() 88 CFX_RenderDevice* pDevice = pContext->m_pDevice.get(); in FPDF_RenderPage_Continue() 93 pContext->m_pRenderer->GetStatus()); in FPDF_RenderPage_Continue() [all …]
|
D | fsdk_actionhandler.cpp | 162 IJS_EventContext* pContext = pRuntime->NewEventContext(); in ExecuteLinkAction() local 163 pContext->OnLink_MouseUp(pFormFillEnv); in ExecuteLinkAction() 166 bool bRet = pContext->RunScript(swJS, &csInfo); in ExecuteLinkAction() 167 pRuntime->ReleaseEventContext(pContext); in ExecuteLinkAction() 286 IJS_EventContext* pContext = pRuntime->NewEventContext(); in ExecuteScreenAction() local 288 bool bRet = pContext->RunScript(swJS, &csInfo); in ExecuteScreenAction() 289 pRuntime->ReleaseEventContext(pContext); in ExecuteScreenAction() 325 IJS_EventContext* pContext = pRuntime->NewEventContext(); in ExecuteBookMark() local 326 pContext->OnBookmark_MouseUp(pBookmark); in ExecuteBookMark() 329 bool bRet = pContext->RunScript(swJS, &csInfo); in ExecuteBookMark() [all …]
|
D | fpdfsave.cpp | 47 bool SaveXFADocumentData(CPDFXFA_Context* pContext, in SaveXFADocumentData() argument 49 if (!pContext) in SaveXFADocumentData() 52 if (!pContext->ContainsXFAForm()) in SaveXFADocumentData() 55 CXFA_FFDocView* pXFADocView = pContext->GetXFADocView(); in SaveXFADocumentData() 59 CPDF_Document* pPDFDocument = pContext->GetPDFDoc(); in SaveXFADocumentData() 195 bool SendPostSaveToXFADoc(CPDFXFA_Context* pContext) { in SendPostSaveToXFADoc() argument 196 if (!pContext) in SendPostSaveToXFADoc() 199 if (!pContext->ContainsXFAForm()) in SendPostSaveToXFADoc() 202 CXFA_FFDocView* pXFADocView = pContext->GetXFADocView(); in SendPostSaveToXFADoc() 215 pContext->ClearChangeMark(); in SendPostSaveToXFADoc() [all …]
|
D | fpdfview.cpp | 73 void RenderPageImpl(CPDF_PageRenderContext* pContext, in RenderPageImpl() argument 80 if (!pContext->m_pOptions) in RenderPageImpl() 81 pContext->m_pOptions = pdfium::MakeUnique<CPDF_RenderOptions>(); in RenderPageImpl() 83 uint32_t option_flags = pContext->m_pOptions->GetFlags(); in RenderPageImpl() 103 pContext->m_pOptions->SetFlags(option_flags); in RenderPageImpl() 107 pContext->m_pOptions->SetColorMode(CPDF_RenderOptions::kGray); in RenderPageImpl() 111 pContext->m_pOptions->SetOCContext( in RenderPageImpl() 114 pContext->m_pDevice->SaveState(); in RenderPageImpl() 115 pContext->m_pDevice->SetClip_Rect(clipping_rect); in RenderPageImpl() 116 pContext->m_pContext = pdfium::MakeUnique<CPDF_RenderContext>(pPage); in RenderPageImpl() [all …]
|
D | fpdfformfill.cpp | 151 CPDFXFA_Context* pContext = pPage->GetContext(); in FFLCommon() local 152 if (!pContext) in FFLCommon() 154 CPDF_Document* pPDFDoc = pContext->GetPDFDoc(); in FFLCommon() 512 CPDFXFA_Context* pContext = static_cast<CPDFXFA_Context*>(document); in FPDF_Widget_Undo() local 513 if (!pContext->ContainsXFAForm()) in FPDF_Widget_Undo() 524 CPDFXFA_Context* pContext = static_cast<CPDFXFA_Context*>(document); in FPDF_Widget_Redo() local 525 if (!pContext->ContainsXFAForm()) in FPDF_Widget_Redo() 536 CPDFXFA_Context* pContext = static_cast<CPDFXFA_Context*>(document); in FPDF_Widget_SelectAll() local 537 if (!pContext->ContainsXFAForm()) in FPDF_Widget_SelectAll() 550 CPDFXFA_Context* pContext = static_cast<CPDFXFA_Context*>(document); in FPDF_Widget_Copy() local [all …]
|
/external/swiftshader/third_party/PowerVR_SDK/Tools/ |
D | PVRTShadowVol.cpp | 381 const SPVRTContext * const pContext) in PVRTShadowVolMeshInitMesh() argument 390 _ASSERT(pContext && pContext->pglExt); in PVRTShadowVolMeshInitMesh() 392 if(!pContext || !pContext->pglExt) in PVRTShadowVolMeshInitMesh() 397 PVRT_UNREFERENCED_PARAMETER(pContext); in PVRTShadowVolMeshInitMesh() 418 hRes = pContext->pDev->CreateBuffer(&sVBBufferDesc, NULL, &psMesh->pivb) != S_OK; in PVRTShadowVolMeshInitMesh() 428 pContext->pDev->GetImmediateContext(&pDeviceContext); in PVRTShadowVolMeshInitMesh() 441 _ASSERT(pContext && pContext->pglExt); in PVRTShadowVolMeshInitMesh() 442 if (!pContext || !pContext->pglExt) in PVRTShadowVolMeshInitMesh() 444 pContext->pglExt->glGenBuffersARB(1, &psMesh->pivb); in PVRTShadowVolMeshInitMesh() 445 pContext->pglExt->glBindBufferARB(GL_ARRAY_BUFFER_ARB, psMesh->pivb); in PVRTShadowVolMeshInitMesh() [all …]
|
D | PVRTShadowVol.h | 115 const SPVRTContext * const pContext); 128 const SPVRTContext * const pContext); 172 const SPVRTContext * const pContext = 0); 190 const SPVRTContext * const pContext = 0); 242 const SPVRTContext * const pContext);
|
/external/pdfium/core/fxcodec/codec/ |
D | ccodec_gifmodule.cpp | 25 CFX_GifDecodeStatus CCodec_GifModule::ReadHeader(Context* pContext, in ReadHeader() argument 32 auto* context = static_cast<CFX_GifContext*>(pContext); in ReadHeader() 47 Context* pContext) { in LoadFrameInfo() argument 48 auto* context = static_cast<CFX_GifContext*>(pContext); in LoadFrameInfo() 55 CFX_GifDecodeStatus CCodec_GifModule::LoadFrame(Context* pContext, in LoadFrame() argument 58 auto* context = static_cast<CFX_GifContext*>(pContext); in LoadFrame() 79 uint32_t CCodec_GifModule::GetAvailInput(Context* pContext, in GetAvailInput() argument 81 auto* context = static_cast<CFX_GifContext*>(pContext); in GetAvailInput() 85 void CCodec_GifModule::Input(Context* pContext, in Input() argument 88 auto* context = static_cast<CFX_GifContext*>(pContext); in Input()
|
D | ccodec_bmpmodule.cpp | 34 int32_t CCodec_BmpModule::ReadHeader(Context* pContext, in ReadHeader() argument 42 auto* ctx = static_cast<CBmpContext*>(pContext); in ReadHeader() 65 int32_t CCodec_BmpModule::LoadImage(Context* pContext) { in LoadImage() argument 66 auto* ctx = static_cast<CBmpContext*>(pContext); in LoadImage() 73 uint32_t CCodec_BmpModule::GetAvailInput(Context* pContext, in GetAvailInput() argument 75 auto* ctx = static_cast<CBmpContext*>(pContext); in GetAvailInput() 79 void CCodec_BmpModule::Input(Context* pContext, in Input() argument 82 auto* ctx = static_cast<CBmpContext*>(pContext); in Input()
|
D | fx_codec_jpeg.cpp | 369 auto* pContext = reinterpret_cast<CJpegContext*>(cinfo->client_data); in _error_fatal1() local 370 longjmp(pContext->m_JumpMark, -1); in _error_fatal1() 375 auto* pContext = reinterpret_cast<CJpegContext*>(cinfo->client_data); in _src_skip_data1() local 376 pContext->m_SkipSize = (unsigned int)(num - cinfo->src->bytes_in_buffer); in _src_skip_data1() 421 auto* pContext = new CJpegContext(); in Start() local 422 if (setjmp(pContext->m_JumpMark) == -1) in Start() 425 jpeg_create_decompress(&pContext->m_Info); in Start() 426 pContext->m_Info.src = &pContext->m_SrcMgr; in Start() 427 pContext->m_SkipSize = 0; in Start() 428 return pdfium::WrapUnique(pContext); in Start() [all …]
|
D | ccodec_jpegmodule.h | 46 void Input(Context* pContext, const uint8_t* src_buf, uint32_t src_size); 49 int ReadHeader(Context* pContext, int* width, int* height, int* nComps); 51 int ReadHeader(Context* pContext, 58 bool StartScanline(Context* pContext, int down_scale); 59 bool ReadScanline(Context* pContext, uint8_t* dest_buf); 60 uint32_t GetAvailInput(Context* pContext, uint8_t** avail_buf_ptr);
|
D | ccodec_pngmodule.cpp | 110 auto* pContext = in _png_get_header_func() local 112 if (!pContext) in _png_get_header_func() 133 if (!pContext->m_pDelegate->PngReadHeader(width, height, bpc, pass, in _png_get_header_func() 135 png_error(pContext->m_pPng, "Read Header Callback Error"); in _png_get_header_func() 156 png_error(pContext->m_pPng, "Not Support Output Palette Now"); in _png_get_header_func() 182 auto* pContext = in _png_get_row_func() local 184 if (!pContext) in _png_get_row_func() 188 if (!pContext->m_pDelegate->PngAskScanlineBuf(row_num, &src_buf)) in _png_get_row_func() 194 pContext->m_pDelegate->PngFillScanlineBufCompleted(pass, row_num); in _png_get_row_func() 237 bool CCodec_PngModule::Input(Context* pContext, in Input() argument [all …]
|
/external/pdfium/core/fxcrt/ |
D | fx_random.cpp | 85 MTContext* pContext = FX_Alloc(MTContext, 1); in FX_Random_MT_Start() local 86 uint32_t* pBuf = pContext->mt; in FX_Random_MT_Start() 91 pContext->mti = MT_N; in FX_Random_MT_Start() 92 return pContext; in FX_Random_MT_Start() 95 uint32_t FX_Random_MT_Generate(void* pContext) { in FX_Random_MT_Generate() argument 96 MTContext* pMTC = static_cast<MTContext*>(pContext); in FX_Random_MT_Generate() 122 void FX_Random_MT_Close(void* pContext) { in FX_Random_MT_Close() argument 123 FX_Free(pContext); in FX_Random_MT_Close() 127 void* pContext = ContextFromNextGlobalSeed(); in FX_Random_GenerateMT() local 129 *pBuffer++ = FX_Random_MT_Generate(pContext); in FX_Random_GenerateMT() [all …]
|
/external/icu/icu4c/source/common/ |
D | cmemory.cpp | 33 static const void *pContext; variable 56 return (*pAlloc)(pContext, s); in uprv_malloc() 75 (*pFree)(pContext, buffer); in uprv_realloc() 82 return (*pRealloc)(pContext, buffer, size); in uprv_realloc() 97 (*pFree)(pContext, buffer); in uprv_free() 125 pContext = context; in u_setMemoryFunctions() 133 pContext = NULL; in cmemory_cleanup()
|
/external/python/cpython2/Modules/ |
D | _lsprof.c | 375 ProfilerContext *pContext; in ptrace_enter_call() local 393 pContext = pObj->freelistProfilerContext; in ptrace_enter_call() 394 if (pContext) { in ptrace_enter_call() 395 pObj->freelistProfilerContext = pContext->previous; in ptrace_enter_call() 399 pContext = (ProfilerContext*) in ptrace_enter_call() 401 if (pContext == NULL) { in ptrace_enter_call() 406 initContext(pObj, pContext, profEntry); in ptrace_enter_call() 418 ProfilerContext *pContext; in ptrace_leave_call() local 420 pContext = pObj->currentProfilerContext; in ptrace_leave_call() 421 if (pContext == NULL) in ptrace_leave_call() [all …]
|
/external/python/cpython3/Modules/ |
D | _lsprof.c | 374 ProfilerContext *pContext; in ptrace_enter_call() local 392 pContext = pObj->freelistProfilerContext; in ptrace_enter_call() 393 if (pContext) { in ptrace_enter_call() 394 pObj->freelistProfilerContext = pContext->previous; in ptrace_enter_call() 398 pContext = (ProfilerContext*) in ptrace_enter_call() 400 if (pContext == NULL) { in ptrace_enter_call() 405 initContext(pObj, pContext, profEntry); in ptrace_enter_call() 417 ProfilerContext *pContext; in ptrace_leave_call() local 419 pContext = pObj->currentProfilerContext; in ptrace_leave_call() 420 if (pContext == NULL) in ptrace_leave_call() [all …]
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_annotlist.cpp | 164 CPDF_RenderContext* pContext, in DisplayPass() argument 202 if (pContext) { in DisplayPass() 203 pAnnot->DrawInContext(pPage, pContext, &matrix, CPDF_Annot::Normal); in DisplayPass() 213 CPDF_RenderContext* pContext, in DisplayAnnots() argument 220 DisplayPass(pPage, pDevice, pContext, bPrinting, pUser2Device, false, in DisplayAnnots() 224 DisplayPass(pPage, pDevice, pContext, bPrinting, pUser2Device, true, in DisplayAnnots() 230 CPDF_RenderContext* pContext, in DisplayAnnots() argument 237 DisplayAnnots(pPage, nullptr, pContext, bPrinting, pMatrix, dwAnnotFlags, in DisplayAnnots()
|