DescriptionThe GLARBTimerTrace implementation previously used the 'this' pointer for it's
event 'id'. The 'this' pointers are not unique since memory is recycled with
repeated alloc & free. Trace output could appear jumbled in chrome://tracing
as in BUG=331161
.
Moved the event 'id' assignment into a TraceOutputter which manages output to
TRACE_EVENT and maintains an incrementing event 'id'.
Added a unit test for the GLARBTimerTrace.
BUG=331161
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=243657
Patch Set 1 #Patch Set 2 : Fixed lint errors. #
Total comments: 3
Patch Set 3 : Fix previous comments. #Patch Set 4 : Fix new line at eof. #
Total comments: 10
Patch Set 5 : Fix nits. Use thread as member vs inheritance. #Patch Set 6 : Fixed GPU_EXPORT issue. #Patch Set 7 : Fixed another GPU_EXPORT issue. #
Messages
Total messages: 11 (0 generated)
|