static void _DPI_RDMA0_IRQ_Handler(unsigned int param) { if (param & 4) { MMProfileLog(MTKFB_MMP_Events.ScreenUpdate, MMProfileFlagEnd); dpiIntCallback(DISP_DPI_SCREEN_UPDATE_END_INT); } if (param & 8) { MMProfileLog(MTKFB_MMP_Events.ScreenUpdate, MMProfileFlagEnd); } if (param & 2) { MMProfileLog(MTKFB_MMP_Events.ScreenUpdate, MMProfileFlagStart); dpiIntCallback(DISP_DPI_SCREEN_UPDATE_START_INT); #if (ENABLE_DPI_INTERRUPT == 0) if(dpiIntCallback) dpiIntCallback(DISP_DPI_VSYNC_INT); #endif } if (param & 0x20) { dpiIntCallback(DISP_DPI_TARGET_LINE_INT); } }
bool CPTLog(CPT_Event event, CPT_LogType type) { if(!gbInit) { return true; } switch(type){ case CPTFlagStart: MMProfileLog(gMMPEvent[event], MMProfileFlagStart); break; case CPTFlagEnd: MMProfileLog(gMMPEvent[event], MMProfileFlagEnd); break; case CPTFlagPulse: MMProfileLog(gMMPEvent[event], MMProfileFlagPulse); break; case CPTFlagSeparator: MMProfileLog(gMMPEvent[event], MMProfileFlagEventSeparator); break; default: break; } return true; }
void MMProfileLog_J(JNIEnv *env, jobject thiz, jint event, jint type) { MMProfileLog((MMP_Event)event, (MMP_LogType)type); }