Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Issue 593233002: Modified GPU command signature hash to use a binary representation. (Closed)

Created:
6 years, 3 months ago by David Yen
Modified:
6 years, 2 months ago
Reviewers:
vmiura
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Modified 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. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -22 lines) Patch
M gpu/command_buffer/service/framebuffer_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/framebuffer_manager.cc View 1 2 3 4 chunks +24 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/renderbuffer_manager.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/renderbuffer_manager.cc View 1 2 3 2 chunks +38 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/texture_manager.cc View 1 2 3 3 chunks +94 lines, -12 lines 0 comments Download

Messages

Total messages: 15 (2 generated)
David Yen
I was not able to get the exact numbers you were, but with this change ...
6 years, 3 months ago (2014-09-23 18:53:06 UTC) #2
vmiura
Nice! I'll run a profile with this. I've made some additional suggestions. https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc File gpu/command_buffer/service/framebuffer_manager.cc ...
6 years, 3 months ago (2014-09-23 20:26:48 UTC) #3
David Yen
https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc File gpu/command_buffer/service/framebuffer_manager.cc (right): https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc#newcode509 gpu/command_buffer/service/framebuffer_manager.cc:509: std::string signature; On 2014/09/23 20:26:47, vmiura wrote: > I ...
6 years, 3 months ago (2014-09-23 20:45:24 UTC) #4
David Yen
On 2014/09/23 20:45:24, David Yen wrote: > https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc > File gpu/command_buffer/service/framebuffer_manager.cc (right): > > https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc#newcode509 ...
6 years, 3 months ago (2014-09-23 22:22:28 UTC) #5
vmiura
https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc File gpu/command_buffer/service/framebuffer_manager.cc (right): https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc#newcode513 gpu/command_buffer/service/framebuffer_manager.cc:513: signature.push_back('|'); On 2014/09/23 20:45:24, David Yen wrote: > On ...
6 years, 3 months ago (2014-09-23 22:37:17 UTC) #6
David Yen
https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc File gpu/command_buffer/service/framebuffer_manager.cc (right): https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc#newcode513 gpu/command_buffer/service/framebuffer_manager.cc:513: signature.push_back('|'); On 2014/09/23 22:37:17, vmiura wrote: > On 2014/09/23 ...
6 years, 3 months ago (2014-09-23 22:42:51 UTC) #7
David Yen
On 2014/09/23 22:42:51, David Yen wrote: > https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc > File gpu/command_buffer/service/framebuffer_manager.cc (right): > > https://codereview.chromium.org/593233002/diff/1/gpu/command_buffer/service/framebuffer_manager.cc#newcode513 ...
6 years, 3 months ago (2014-09-24 16:37:45 UTC) #8
vmiura
LGTM modulo nits.
6 years, 2 months ago (2014-09-26 23:36:23 UTC) #9
vmiura
https://codereview.chromium.org/593233002/diff/40001/gpu/command_buffer/service/framebuffer_manager.cc File gpu/command_buffer/service/framebuffer_manager.cc (right): https://codereview.chromium.org/593233002/diff/40001/gpu/command_buffer/service/framebuffer_manager.cc#newcode538 gpu/command_buffer/service/framebuffer_manager.cc:538: } nit: DCHECK(signature.size() == signature_size) will help this from ...
6 years, 2 months ago (2014-09-26 23:36:36 UTC) #10
David Yen
https://codereview.chromium.org/593233002/diff/40001/gpu/command_buffer/service/framebuffer_manager.cc File gpu/command_buffer/service/framebuffer_manager.cc (right): https://codereview.chromium.org/593233002/diff/40001/gpu/command_buffer/service/framebuffer_manager.cc#newcode538 gpu/command_buffer/service/framebuffer_manager.cc:538: } On 2014/09/26 23:36:36, vmiura wrote: > nit: DCHECK(signature.size() ...
6 years, 2 months ago (2014-09-29 16:42:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/593233002/60001
6 years, 2 months ago (2014-09-29 17:37:24 UTC) #13
commit-bot: I haz the power
Committed patchset #4 (id:60001) as c2a116e9f37dee8edc326c2c575454896de51de8
6 years, 2 months ago (2014-09-29 18:16:28 UTC) #14
commit-bot: I haz the power
6 years, 2 months ago (2014-09-29 18:17:42 UTC) #15
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/cb0173111c9234f9718ed14cca6fbf45841deac7
Cr-Commit-Position: refs/heads/master@{#297209}

Powered by Google App Engine
This is Rietveld 408576698