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

Issue 2558933003: Cache GL's viewport on the GPU command buffer client side. (Closed)

Created:
4 years ago by Zhenyao Mo
Modified:
4 years ago
CC:
chromium-reviews, piman+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Cache GL's viewport on the GPU command buffer client side. This is to tune the perf of a demo where glGetInteger(GL_VIEWPORT) is frequently called. BUG=671872 TEST= R=kbr@chromium.org 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/c95386fb055bd88bc65debba5e9ea817cd272b6b Cr-Commit-Position: refs/heads/master@{#437702}

Patch Set 1 #

Total comments: 1

Patch Set 2 : fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -21 lines) Patch
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/client_context_state.h View 1 chunk +8 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/client_context_state.cc View 2 chunks +13 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 5 chunks +42 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_impl_autogen.h View 1 chunk +0 lines, -19 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 chunks +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/capabilities.h View 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/common/capabilities.cc View 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gl_utils.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 1 chunk +6 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 19 (12 generated)
Zhenyao Mo
kbr: PTAL
4 years ago (2016-12-08 01:14:06 UTC) #3
Ken Russell (switch to Gerrit)
Thanks Mo, that's great. LGTM https://codereview.chromium.org/2558933003/diff/1/gpu/command_buffer/client/gles2_implementation_unittest.cc File gpu/command_buffer/client/gles2_implementation_unittest.cc (right): https://codereview.chromium.org/2558933003/diff/1/gpu/command_buffer/client/gles2_implementation_unittest.cc#newcode473 gpu/command_buffer/client/gles2_implementation_unittest.cc:473: capabilities.max_viewport_width = kMaxViewportHeight; max_viewport_height. ...
4 years ago (2016-12-08 01:59:32 UTC) #5
Zhenyao Mo
kbr: I did a minor fix in the CL to make the bots happy. Could ...
4 years ago (2016-12-09 21:49:33 UTC) #9
Ken Russell (switch to Gerrit)
Still LGTM.
4 years ago (2016-12-09 22:00:17 UTC) #11
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/2558933003/20001
4 years ago (2016-12-09 23:14:34 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years ago (2016-12-09 23:49:33 UTC) #17
commit-bot: I haz the power
4 years ago (2016-12-12 14:58:46 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/c95386fb055bd88bc65debba5e9ea817cd272b6b
Cr-Commit-Position: refs/heads/master@{#437702}

Powered by Google App Engine
This is Rietveld 408576698