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

Issue 1129253006: std::bitset solution for GL Query cache. (Closed)

Created:
5 years, 7 months ago by Daniel Bratell
Modified:
5 years, 7 months ago
Reviewers:
reveman, jbauman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

std::bitset solution for GL Query cache. This uses even less memory (a few hundred bytes) by sacrificing some worst case performance (in the order of a microsecond per query) and maintainability. Estimated memory savings will be 9-12 KB. (3 KB per QuerySyncManager). BUG=485536 R=reveman@chromium.org,jbauman@chromium.org Committed: https://crrev.com/f06df73a8298d34510531fb489be6a189ee71a13 Cr-Commit-Position: refs/heads/master@{#330933}

Patch Set 1 #

Patch Set 2 : Cleaned up. #

Total comments: 2

Patch Set 3 : Removed optimizations #

Total comments: 2

Patch Set 4 : Different DCHECKs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -17 lines) Patch
M gpu/command_buffer/client/client_test_helper.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/client/query_tracker.h View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M gpu/command_buffer/client/query_tracker.cc View 1 2 3 3 chunks +17 lines, -12 lines 0 comments Download
M gpu/command_buffer/client/query_tracker_unittest.cc View 1 2 3 chunks +56 lines, -1 line 0 comments Download

Messages

Total messages: 12 (2 generated)
reveman
https://codereview.chromium.org/1129253006/diff/20001/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://codereview.chromium.org/1129253006/diff/20001/gpu/command_buffer/client/query_tracker.cc#newcode75 gpu/command_buffer/client/query_tracker.cc:75: // O(n^2) for the common scenario. is this really ...
5 years, 7 months ago (2015-05-18 19:58:43 UTC) #1
Daniel Bratell
On 2015/05/18 19:58:43, reveman wrote: > https://codereview.chromium.org/1129253006/diff/20001/gpu/command_buffer/client/query_tracker.cc > File gpu/command_buffer/client/query_tracker.cc (right): > > https://codereview.chromium.org/1129253006/diff/20001/gpu/command_buffer/client/query_tracker.cc#newcode75 > ...
5 years, 7 months ago (2015-05-19 07:37:26 UTC) #2
reveman
On 2015/05/19 at 07:37:26, bratell wrote: > On 2015/05/18 19:58:43, reveman wrote: > > https://codereview.chromium.org/1129253006/diff/20001/gpu/command_buffer/client/query_tracker.cc ...
5 years, 7 months ago (2015-05-19 18:13:30 UTC) #3
Daniel Bratell
On 2015/05/19 18:13:30, reveman wrote: > I don't think we need to worry much about ...
5 years, 7 months ago (2015-05-20 14:18:10 UTC) #4
reveman
lgtm with nits https://codereview.chromium.org/1129253006/diff/40001/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://codereview.chromium.org/1129253006/diff/40001/gpu/command_buffer/client/query_tracker.cc#newcode88 gpu/command_buffer/client/query_tracker.cc:88: DCHECK(info.bucket->in_use_queries.count() > 0); nit: please use ...
5 years, 7 months ago (2015-05-20 14:35:14 UTC) #5
Daniel Bratell
Done! jbauman, I think we need your final approval still?
5 years, 7 months ago (2015-05-20 15:00:20 UTC) #6
jbauman
lgtm
5 years, 7 months ago (2015-05-20 22:50:12 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1129253006/60001
5 years, 7 months ago (2015-05-21 09:34:11 UTC) #10
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-21 12:08:44 UTC) #11
commit-bot: I haz the power
5 years, 7 months ago (2015-05-21 12:09:34 UTC) #12
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/f06df73a8298d34510531fb489be6a189ee71a13
Cr-Commit-Position: refs/heads/master@{#330933}

Powered by Google App Engine
This is Rietveld 408576698