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

Issue 1188013004: Added support for Time Elapsed queries through the command buffer. (Closed)

Created:
5 years, 6 months ago by David Yen
Modified:
5 years, 5 months ago
CC:
chromium-reviews, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, binji+watch_chromium.org, tzik, yzshen+watch_chromium.org, abarth-chromium, Aaron Boodman, teravest+watch_chromium.org, yusukes+watch_chromium.org, raymes+watch_chromium.org, bradnelson+warch_chromium.org, piman+watch_chromium.org, darin (slow to review), ben+mojo_chromium.org, ihf+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Added support for Time Elapsed queries through the command buffer. This CL adds support for Time Elapsed queries through the command buffer. Since it was easy to support, I have also added support for getting the current TimeStamp through GetInteger64(), GetInteger()...etc. Note that this is different from getting the GPU timestamp using QueryCounter which is asynchronous. BUG=345227 TEST=trybots Committed: https://crrev.com/1b6a2940fcb25df247b9f8b795e84e1ca5742904 Cr-Commit-Position: refs/heads/master@{#336743}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Removed ppapi support #

Total comments: 6

Patch Set 3 : rebase #

Patch Set 4 : Use saturated cast #

Patch Set 5 : bad upload before #

Total comments: 2

Patch Set 6 : Added comment #

Patch Set 7 : Autogen files again #

Patch Set 8 : Include glcontext #

Patch Set 9 : rebase #

Patch Set 10 : Removed extra line #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -87 lines) Patch
M gpu/GLES2/gl2chromium_autogen.h View 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/build_gles2_cmd_buffer.py View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_c_lib_autogen.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation.cc View 1 2 3 4 5 6 7 8 9 5 chunks +81 lines, -46 lines 1 comment Download
M gpu/command_buffer/client/gles2_implementation_autogen.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_implementation_unittest.cc View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_autogen.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_autogen.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_interface_stub_impl_autogen.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_autogen.h View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/client/gles2_trace_implementation_impl_autogen.h View 1 2 1 chunk +7 lines, -0 lines 0 comments Download
M gpu/command_buffer/client/query_tracker.h View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -2 lines 0 comments Download
M gpu/command_buffer/client/query_tracker.cc View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -5 lines 0 comments Download
M gpu/command_buffer/cmd_buffer_functions.txt View 1 2 1 chunk +1 line, -0 lines 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 8 2 chunks +16 lines, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder_unittest.cc View 5 chunks +20 lines, -16 lines 0 comments Download
M gpu/command_buffer/service/query_manager.h View 3 chunks +11 lines, -0 lines 0 comments Download
M gpu/command_buffer/service/query_manager.cc View 1 2 3 4 5 6 7 5 chunks +75 lines, -0 lines 0 comments Download
M mojo/gpu/mojo_gles2_impl_autogen.h View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
M mojo/gpu/mojo_gles2_impl_autogen.cc View 1 2 1 chunk +5 lines, -0 lines 0 comments Download
M ui/gl/gpu_timing.h View 1 chunk +0 lines, -3 lines 0 comments Download
M ui/gl/gpu_timing.cc View 2 chunks +4 lines, -6 lines 0 comments Download
M ui/gl/gpu_timing_fake.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/gl/gpu_timing_fake.cc View 4 chunks +7 lines, -7 lines 0 comments Download

Messages

Total messages: 31 (8 generated)
David Yen
Sorry for all the big changes to review, thanks for all your reviews so far! ...
5 years, 6 months ago (2015-06-17 23:32:30 UTC) #4
David Yen
https://codereview.chromium.org/1188013004/diff/1/gpu/command_buffer/build_gles2_cmd_buffer.py File gpu/command_buffer/build_gles2_cmd_buffer.py (right): https://codereview.chromium.org/1188013004/diff/1/gpu/command_buffer/build_gles2_cmd_buffer.py#newcode3756 gpu/command_buffer/build_gles2_cmd_buffer.py:3756: 'extension': "disjoint_timer_query_EXT", Does anyone know what this extension string ...
5 years, 6 months ago (2015-06-17 23:38:31 UTC) #5
bbudge
ppapi lgtm
5 years, 6 months ago (2015-06-17 23:45:03 UTC) #6
David Yen
On 2015/06/17 23:45:03, bbudge wrote: > ppapi lgtm Strange, getting a compile error for the ...
5 years, 6 months ago (2015-06-18 17:08:19 UTC) #7
David Yen
ping
5 years, 6 months ago (2015-06-23 17:24:53 UTC) #8
no sievers
So sounds like you want to implement this for webgl. +kbr, bajones. https://codereview.chromium.org/1188013004/diff/20001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc ...
5 years, 6 months ago (2015-06-23 21:45:28 UTC) #10
bajones
On 2015/06/23 21:45:28, sievers wrote: > @bajones: Do we support GL_TRANSFORM_FEEDBACK_PRIMITIVES_WRITTEN yet w/the > experimental ...
5 years, 6 months ago (2015-06-23 21:53:29 UTC) #11
David Yen
https://codereview.chromium.org/1188013004/diff/20001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/1188013004/diff/20001/gpu/command_buffer/client/gles2_implementation.cc#newcode706 gpu/command_buffer/client/gles2_implementation.cc:706: *params = static_cast<GLint>( On 2015/06/23 21:45:27, sievers wrote: > ...
5 years, 6 months ago (2015-06-23 23:35:33 UTC) #12
bajones
On 2015/06/23 23:35:33, David Yen wrote: > On 2015/06/23 21:45:27, sievers wrote: > > @bajones: ...
5 years, 6 months ago (2015-06-23 23:41:31 UTC) #13
David Yen
On 2015/06/23 23:41:31, bajones wrote: > On 2015/06/23 23:35:33, David Yen wrote: > > On ...
5 years, 6 months ago (2015-06-24 17:28:16 UTC) #14
no sievers
lgtm. but please double-check with kbr@ or bajones@ that this will work for webgl, and ...
5 years, 6 months ago (2015-06-24 23:40:42 UTC) #15
David Yen
ping kbr@ and bajones@, any comments regarding webgl? https://codereview.chromium.org/1188013004/diff/80001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/1188013004/diff/80001/gpu/command_buffer/client/gles2_implementation.cc#newcode4944 gpu/command_buffer/client/gles2_implementation.cc:4944: *params ...
5 years, 6 months ago (2015-06-25 18:38:13 UTC) #16
Ken Russell (switch to Gerrit)
Thank you for pushing this through and sorry for the delay reviewing. This LGTM overall, ...
5 years, 6 months ago (2015-06-26 16:30:18 UTC) #17
David Yen
On 2015/06/26 16:30:18, Ken Russell wrote: > Thank you for pushing this through and sorry ...
5 years, 6 months ago (2015-06-26 16:36:09 UTC) #18
David Yen
ping vmiura for empty mojo changes.
5 years, 6 months ago (2015-06-26 16:54:01 UTC) #19
David Yen
On 2015/06/26 16:54:01, David Yen wrote: > ping vmiura for empty mojo changes. Forgot that ...
5 years, 6 months ago (2015-06-26 22:24:49 UTC) #21
Zhenyao Mo
David, I am not a mojo/ owner.
5 years, 5 months ago (2015-06-30 01:16:00 UTC) #22
Zhenyao Mo
Actually I am. LGTM then.
5 years, 5 months ago (2015-06-30 01:23:46 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1188013004/180001
5 years, 5 months ago (2015-06-30 06:45:45 UTC) #26
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 5 months ago (2015-06-30 08:50:08 UTC) #27
commit-bot: I haz the power
Patchset 10 (id:??) landed as https://crrev.com/1b6a2940fcb25df247b9f8b795e84e1ca5742904 Cr-Commit-Position: refs/heads/master@{#336743}
5 years, 5 months ago (2015-06-30 08:51:11 UTC) #28
michaeln
https://codereview.chromium.org/1188013004/diff/180001/gpu/command_buffer/client/gles2_implementation.cc File gpu/command_buffer/client/gles2_implementation.cc (right): https://codereview.chromium.org/1188013004/diff/180001/gpu/command_buffer/client/gles2_implementation.cc#newcode1009 gpu/command_buffer/client/gles2_implementation.cc:1009: * base::Time::kNanosecondsPerMicrosecond; Hello, we're seeing crashes on this line ...
5 years, 5 months ago (2015-07-01 20:00:43 UTC) #30
amineer
5 years, 5 months ago (2015-07-01 20:28:40 UTC) #31
Message was sent while issue was closed.
A revert of this CL (patchset #10 id:180001) has been created in
https://codereview.chromium.org/1222563003/ by amineer@chromium.org.

The reason for reverting is: May be causing crashes
BUG=506120.

Powered by Google App Engine
This is Rietveld 408576698