Called in place of OnRenderStart..OnRenderEnd When a DirectDraw image is drawn
| 226 | // Called in place of OnRenderStart..OnRenderEnd |
| 227 | // When a DirectDraw image is drawn |
| 228 | void CBaseVideoRenderer2::OnDirectRender(IMediaSample *pMediaSample) |
| 229 | { |
| 230 | m_trRenderAvg = 0; |
| 231 | m_trRenderLast = 5000000; // If we mode switch, we do NOT want this |
| 232 | // to inhibit the new average getting going! |
| 233 | // so we set it to half a second |
| 234 | RecordFrameLateness(m_trLate, m_trFrame); |
| 235 | ThrottleWait(); |
| 236 | } // OnDirectRender |
| 237 | |
| 238 | // Called just before we start drawing. All we do is to get the current clock |
| 239 | // time (from the system) and return. We have to store the start render time |
nothing calls this directly
no outgoing calls
no test coverage detected