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

Issue 509723002: Added support for GPU Tracing on mobile devices which support it. (Closed)

Created:
6 years, 3 months ago by David Yen
Modified:
6 years, 3 months ago
Reviewers:
vmiura, piman
CC:
chromium-reviews, piman+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Added support for GPU Tracing on mobile devices which support it. Newer mobile devices may support the Open GL extension EXT_disjoint_timer_query, these devices can now be traced in Chrome. R=vmiura@chromium.org BUG= https://code.google.com/p/chromium/issues/detail?id=397294 TEST= trybots Committed: https://crrev.com/882e1b72498ddeaa0236b03f26710783b36df20c Cr-Commit-Position: refs/heads/master@{#293150}

Patch Set 1 #

Total comments: 6

Patch Set 2 : Fixed unit test #

Total comments: 4

Patch Set 3 : Replaced DiscardTrace() with simply clear(), rely on destructor to always delete trace queries. #

Patch Set 4 : Merged ARB/EXT variants for glGenQueries, glDeleteQueries, and glQueryCounter #

Patch Set 5 : Fixed unit tests, added unit tests for disjoint timer trace #

Patch Set 6 : Do not collapse genQueries with genQueriesARB/EXT #

Patch Set 7 : Combined glGetQueryObject ARB/EXT calls #

Patch Set 8 : removed gl ARB calls which don't exist #

Patch Set 9 : Fixed unit tests #

Patch Set 10 : Fixed another gpu tracer unittest issue #

Total comments: 10

Patch Set 11 : Simplified and collapsed glGetQueryObject bindings #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -122 lines) Patch
M gpu/command_buffer/service/gpu_tracer.h View 1 2 3 4 5 4 chunks +12 lines, -5 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer.cc View 1 2 3 4 5 6 7 8 9 10 8 chunks +115 lines, -63 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer_unittest.cc View 1 2 3 4 5 6 7 8 9 10 4 chunks +77 lines, -49 lines 0 comments Download
M ui/gl/generate_bindings.py View 1 2 3 4 5 6 7 8 9 10 3 chunks +6 lines, -5 lines 0 comments Download
M ui/gl/gl_bindings.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (3 generated)
David Yen
6 years, 3 months ago (2014-08-26 23:11:23 UTC) #1
vmiura
6 years, 3 months ago (2014-08-26 23:13:58 UTC) #2
vmiura
vmiura@chromium.org changed reviewers: + piman@chromium.org
6 years, 3 months ago (2014-08-26 23:15:00 UTC) #3
vmiura
+piman for ui/ changes
6 years, 3 months ago (2014-08-26 23:15:00 UTC) #4
piman
https://codereview.chromium.org/509723002/diff/20001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/509723002/diff/20001/gpu/command_buffer/service/gpu_tracer.cc#newcode173 gpu/command_buffer/service/gpu_tracer.cc:173: GLuint64 beg_stamp = 0; nit: no abbreviations. begin_stamp? https://codereview.chromium.org/509723002/diff/20001/ui/gl/generate_bindings.py ...
6 years, 3 months ago (2014-08-26 23:43:57 UTC) #5
vmiura
Looks mostly good. Could we unit test kTracerTypeDisjointTimer case, for normal behavior and disjoint event ...
6 years, 3 months ago (2014-08-26 23:47:26 UTC) #6
David Yen
https://codereview.chromium.org/509723002/diff/20001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/509723002/diff/20001/gpu/command_buffer/service/gpu_tracer.cc#newcode173 gpu/command_buffer/service/gpu_tracer.cc:173: GLuint64 beg_stamp = 0; On 2014/08/26 23:43:57, piman (OOO) ...
6 years, 3 months ago (2014-08-27 17:03:14 UTC) #7
piman
On Wed, Aug 27, 2014 at 10:03 AM, <dyen@chromium.org> wrote: > > https://codereview.chromium.org/509723002/diff/20001/gpu/ > command_buffer/service/gpu_tracer.cc ...
6 years, 3 months ago (2014-08-27 18:16:42 UTC) #8
David Yen
I will add some unit tests after I sort out which GL functions to call. ...
6 years, 3 months ago (2014-08-27 19:47:45 UTC) #9
David Yen
On 2014/08/27 18:16:42, piman (OOO) wrote: > On Wed, Aug 27, 2014 at 10:03 AM, ...
6 years, 3 months ago (2014-08-27 19:49:40 UTC) #10
piman
On Wed, Aug 27, 2014 at 12:49 PM, <dyen@chromium.org> wrote: > On 2014/08/27 18:16:42, piman ...
6 years, 3 months ago (2014-08-27 20:39:08 UTC) #11
David Yen
On 2014/08/27 20:39:08, piman (OOO) wrote: > On Wed, Aug 27, 2014 at 12:49 PM, ...
6 years, 3 months ago (2014-08-29 19:53:38 UTC) #12
piman
https://codereview.chromium.org/509723002/diff/180001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/509723002/diff/180001/gpu/command_buffer/service/gpu_tracer.cc#newcode109 gpu/command_buffer/service/gpu_tracer.cc:109: glQueryCounter(queries_[0], GL_TIMESTAMP_EXT); nit: GL_TIMESTAMP_EXT and GL_TIMESTAMP have the same ...
6 years, 3 months ago (2014-09-02 18:41:44 UTC) #13
David Yen
https://codereview.chromium.org/509723002/diff/180001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/509723002/diff/180001/gpu/command_buffer/service/gpu_tracer.cc#newcode109 gpu/command_buffer/service/gpu_tracer.cc:109: glQueryCounter(queries_[0], GL_TIMESTAMP_EXT); On 2014/09/02 18:41:44, piman (OOO) wrote: > ...
6 years, 3 months ago (2014-09-02 18:45:37 UTC) #14
piman
On Tue, Sep 2, 2014 at 11:45 AM, <dyen@chromium.org> wrote: > > https://codereview.chromium.org/509723002/diff/180001/gpu/ > command_buffer/service/gpu_tracer.cc ...
6 years, 3 months ago (2014-09-02 18:51:10 UTC) #15
David Yen
https://codereview.chromium.org/509723002/diff/180001/gpu/command_buffer/service/gpu_tracer.cc File gpu/command_buffer/service/gpu_tracer.cc (right): https://codereview.chromium.org/509723002/diff/180001/gpu/command_buffer/service/gpu_tracer.cc#newcode109 gpu/command_buffer/service/gpu_tracer.cc:109: glQueryCounter(queries_[0], GL_TIMESTAMP_EXT); On 2014/09/02 18:45:36, David Yen wrote: > ...
6 years, 3 months ago (2014-09-02 22:03:56 UTC) #16
piman
LGTM, thank you!
6 years, 3 months ago (2014-09-03 00:04:01 UTC) #17
vmiura
LGTM.
6 years, 3 months ago (2014-09-03 00:31:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dyen@chromium.org/509723002/200001
6 years, 3 months ago (2014-09-03 15:24:41 UTC) #20
commit-bot: I haz the power
Committed patchset #11 (id:200001) as c82d6befbe5f80991027ae2dad3952ad8ff758eb
6 years, 3 months ago (2014-09-03 16:39:24 UTC) #23
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:26:10 UTC) #24
Message was sent while issue was closed.
Patchset 11 (id:??) landed as
https://crrev.com/882e1b72498ddeaa0236b03f26710783b36df20c
Cr-Commit-Position: refs/heads/master@{#293150}

Powered by Google App Engine
This is Rietveld 408576698