Descriptiongpu: Extract the gpu timing code from gpu_tracer.
This commit introduces two new classes: GPUTiming and GPUTimer. The first one takes care of checking which timing GL extension to use, and the second one measures the amount of time it takes to complete a set of opengl commands.
GPUTracer and GPUTrace have been modified accordingly to use the two new classes.
BUG=
Committed: https://crrev.com/82922f87f213ee34c2dc319b937c5137a939ac52
Cr-Commit-Position: refs/heads/master@{#316020}
Patch Set 1 #Patch Set 2 : Fix cl.exe warning: 'const unsigned char' : forcing value to bool 'true' or 'false' #
Total comments: 16
Patch Set 3 : Remove a useless float conversion that screwed up timings. Address first review comments. #Patch Set 4 : Fix indentation. #
Total comments: 2
Patch Set 5 : Reset g_fakeCPUTime to 0. #
Messages
Total messages: 26 (8 generated)
|