DescriptionModified GPU command signature hash to use a binary representation.
FrameBuffer::GetStatus() was spending most of the time doing in printf,
I've modified it to generate signatures using a binary representation
instead. Now most of the time is spent allocating memory. If further
optimization is necessary we can precalculate the signature size
as well.
BUG= https://code.google.com/p/chromium/issues/detail?id=338035
TEST= profile FrameBuffer::GetStatus()
Committed: https://crrev.com/cb0173111c9234f9718ed14cca6fbf45841deac7
Cr-Commit-Position: refs/heads/master@{#297209}
Patch Set 1 #
Total comments: 9
Patch Set 2 : reserve space, append binary data using structs #Patch Set 3 : Utilize constructor with memset to ensure padding is zeroed out #
Total comments: 6
Patch Set 4 : DCHECK signature size, fixed comments. #
Messages
Total messages: 15 (2 generated)
|