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

Issue 2468123002: Change BufferManager::RequestBufferAccess signatures to avoid sprintfs. (Closed)

Created:
4 years, 1 month ago by Ken Russell (switch to Gerrit)
Modified:
4 years, 1 month ago
Reviewers:
Zhenyao Mo, piman
CC:
chromium-reviews, piman+watch_chromium.org, marcheu
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change BufferManager::RequestBufferAccess signatures to avoid sprintfs. Using varargs and va_list eliminates the cost of string construction in the callers. BUG=661186, 654201 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Committed: https://crrev.com/49f47242e1c13505573e4c469a5f61f7f65f886b Cr-Commit-Position: refs/heads/master@{#429375}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Simplified one RequestBufferAccess variant causing nested va_list usage. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+54 lines, -27 lines) Patch
M gpu/command_buffer/service/buffer_manager.h View 1 3 chunks +11 lines, -2 lines 0 comments Download
M gpu/command_buffer/service/buffer_manager.cc View 1 4 chunks +40 lines, -22 lines 1 comment Download
M gpu/command_buffer/service/vertex_attrib_manager.cc View 1 chunk +3 lines, -3 lines 0 comments Download

Messages

Total messages: 15 (7 generated)
Ken Russell (switch to Gerrit)
zmo or piman: please review. Thanks. Please see https://bugs.chromium.org/p/chromium/issues/detail?id=661186#c9 for profiles before and after this ...
4 years, 1 month ago (2016-11-02 02:58:07 UTC) #3
piman
https://codereview.chromium.org/2468123002/diff/1/gpu/command_buffer/service/buffer_manager.cc File gpu/command_buffer/service/buffer_manager.cc (right): https://codereview.chromium.org/2468123002/diff/1/gpu/command_buffer/service/buffer_manager.cc#newcode818 gpu/command_buffer/service/buffer_manager.cc:818: std::string message_tag = base::StringPrintV(error_message_format, varargs); According to http://en.cppreference.com/w/cpp/utility/variadic/va_list, we ...
4 years, 1 month ago (2016-11-02 17:27:41 UTC) #4
Zhenyao Mo
lgtm Thanks for fixing this
4 years, 1 month ago (2016-11-02 17:31:18 UTC) #5
Ken Russell (switch to Gerrit)
https://codereview.chromium.org/2468123002/diff/1/gpu/command_buffer/service/buffer_manager.cc File gpu/command_buffer/service/buffer_manager.cc (right): https://codereview.chromium.org/2468123002/diff/1/gpu/command_buffer/service/buffer_manager.cc#newcode818 gpu/command_buffer/service/buffer_manager.cc:818: std::string message_tag = base::StringPrintV(error_message_format, varargs); On 2016/11/02 17:27:41, piman ...
4 years, 1 month ago (2016-11-02 18:29:01 UTC) #8
piman
lgtm
4 years, 1 month ago (2016-11-02 18:41:08 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2468123002/20001
4 years, 1 month ago (2016-11-02 18:58:03 UTC) #12
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 1 month ago (2016-11-02 19:57:58 UTC) #13
commit-bot: I haz the power
4 years, 1 month ago (2016-11-02 20:01:35 UTC) #15
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/49f47242e1c13505573e4c469a5f61f7f65f886b
Cr-Commit-Position: refs/heads/master@{#429375}

Powered by Google App Engine
This is Rietveld 408576698