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

Issue 228653004: Reduce the number of flushes while using glQueries. (Closed)

Created:
6 years, 8 months ago by rptr
Modified:
6 years, 8 months ago
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

Reduce the number of flushes while using glQueries. BUG=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=264057

Patch Set 1 #

Total comments: 2

Patch Set 2 : "fix review comment." #

Total comments: 2

Patch Set 3 : fixing review comnts. #

Total comments: 4

Patch Set 4 : wraparound flush_gen + nits. #

Patch Set 5 : unit_test. #

Total comments: 2

Patch Set 6 : review comments + author file for first patch.. #

Total comments: 2

Patch Set 7 : addressing comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -10 lines) Patch
M AUTHORS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M gpu/command_buffer/client/query_tracker.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M gpu/command_buffer/client/query_tracker.cc View 1 2 3 3 chunks +3 lines, -7 lines 0 comments Download
M gpu/command_buffer/client/query_tracker_unittest.cc View 1 2 3 4 5 6 2 chunks +23 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
rptr
6 years, 8 months ago (2014-04-08 17:36:27 UTC) #1
rptr
Please take a look. This patch avoids few wasteful flush commands after EndQuery, if we ...
6 years, 8 months ago (2014-04-08 17:43:10 UTC) #2
Zhenyao Mo
https://chromiumcodereview.appspot.com/228653004/diff/1/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/1/gpu/command_buffer/client/query_tracker.cc#newcode175 gpu/command_buffer/client/query_tracker.cc:175: ++last_flush_; This should be last_flush_ = helper->flush_generation() instead.
6 years, 8 months ago (2014-04-08 18:55:39 UTC) #3
rptr
PTAL. https://chromiumcodereview.appspot.com/228653004/diff/1/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/1/gpu/command_buffer/client/query_tracker.cc#newcode175 gpu/command_buffer/client/query_tracker.cc:175: ++last_flush_; On 2014/04/08 18:55:40, Zhenyao Mo wrote: > ...
6 years, 8 months ago (2014-04-08 20:58:49 UTC) #4
Zhenyao Mo
https://chromiumcodereview.appspot.com/228653004/diff/20001/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/20001/gpu/command_buffer/client/query_tracker.cc#newcode175 gpu/command_buffer/client/query_tracker.cc:175: last_flush_ = helper->flush_generation(); My apology for not catching this ...
6 years, 8 months ago (2014-04-08 21:13:55 UTC) #5
rptr
PTAL. https://chromiumcodereview.appspot.com/228653004/diff/20001/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/20001/gpu/command_buffer/client/query_tracker.cc#newcode175 gpu/command_buffer/client/query_tracker.cc:175: last_flush_ = helper->flush_generation(); On 2014/04/08 21:13:56, Zhenyao Mo ...
6 years, 8 months ago (2014-04-08 22:44:16 UTC) #6
piman
https://chromiumcodereview.appspot.com/228653004/diff/40001/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/40001/gpu/command_buffer/client/query_tracker.cc#newcode172 gpu/command_buffer/client/query_tracker.cc:172: if (!(helper->flush_generation()>flush_count_)) { nit: spaces around '>'. Also, if ...
6 years, 8 months ago (2014-04-08 22:55:39 UTC) #7
rptr
please take a look. https://chromiumcodereview.appspot.com/228653004/diff/40001/gpu/command_buffer/client/query_tracker.cc File gpu/command_buffer/client/query_tracker.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/40001/gpu/command_buffer/client/query_tracker.cc#newcode172 gpu/command_buffer/client/query_tracker.cc:172: if (!(helper->flush_generation()>flush_count_)) { On 2014/04/08 ...
6 years, 8 months ago (2014-04-09 10:42:04 UTC) #8
piman
Ok, could you write a unit test for this?
6 years, 8 months ago (2014-04-09 17:02:01 UTC) #9
rptr
Hi Mo, piman, Added a testcase to check for avoiding extra flushes between a call ...
6 years, 8 months ago (2014-04-12 15:08:41 UTC) #10
piman
LGTM. I think it's ok to remove that failing expectation, I don't think it's meaningful ...
6 years, 8 months ago (2014-04-14 19:31:51 UTC) #11
rptr
Please take a look. I'm now in CLA as confirmed from Laszlo through mail today. ...
6 years, 8 months ago (2014-04-15 16:54:21 UTC) #12
Zhenyao Mo
LGTM https://chromiumcodereview.appspot.com/228653004/diff/100001/gpu/command_buffer/client/query_tracker_unittest.cc File gpu/command_buffer/client/query_tracker_unittest.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/100001/gpu/command_buffer/client/query_tracker_unittest.cc#newcode110 gpu/command_buffer/client/query_tracker_unittest.cc:110: uint32 GetHelperFlushGeneration() { return helper_->flush_generation(); } nit: this ...
6 years, 8 months ago (2014-04-15 17:04:29 UTC) #13
rptr
https://chromiumcodereview.appspot.com/228653004/diff/100001/gpu/command_buffer/client/query_tracker_unittest.cc File gpu/command_buffer/client/query_tracker_unittest.cc (right): https://chromiumcodereview.appspot.com/228653004/diff/100001/gpu/command_buffer/client/query_tracker_unittest.cc#newcode110 gpu/command_buffer/client/query_tracker_unittest.cc:110: uint32 GetHelperFlushGeneration() { return helper_->flush_generation(); } On 2014/04/15 17:04:29, ...
6 years, 8 months ago (2014-04-15 17:16:00 UTC) #14
rptr
The CQ bit was checked by puttaraju.r@samsung.com
6 years, 8 months ago (2014-04-15 17:30:06 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/puttaraju.r@samsung.com/228653004/140001
6 years, 8 months ago (2014-04-15 17:30:28 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/puttaraju.r@samsung.com/228653004/140001
6 years, 8 months ago (2014-04-16 01:20:50 UTC) #17
commit-bot: I haz the power
6 years, 8 months ago (2014-04-16 01:45:36 UTC) #18
Message was sent while issue was closed.
Change committed as 264057

Powered by Google App Engine
This is Rietveld 408576698