Revert "gpuDrawTime should default to 0 when endTime is unknown"

This reverts commit 95cf4e7088.

Reason for revert: the fix is not working and also found that it is set to -1 on purpose

Change-Id: I3ea5553606a7824ba23909b0e36b2538d0f3d29f
This commit is contained in:
Boleyn Su
2020-11-18 03:15:29 +00:00
parent 7bd311cf7a
commit a9ce662c44

View File

@@ -159,7 +159,7 @@ public:
// GPU start time is approximated to the moment before swapBuffer is invoked.
// We could add an EGLSyncKHR fence at the beginning of the frame, but that is an overhead.
int64_t endTime = get(FrameInfoIndex::GpuCompleted);
return endTime > 0 ? endTime - get(FrameInfoIndex::SwapBuffers) : 0;
return endTime > 0 ? endTime - get(FrameInfoIndex::SwapBuffers) : -1;
}
inline int64_t& set(FrameInfoIndex index) { return mFrameInfo[static_cast<int>(index)]; }