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

Issue 419073008: Simplified GPU Tracer by removing parent base class. (Closed)

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

Description

Simplified GPU Tracer by removing parent base class. Since the Tracer factory is implemented within gpu_tracer, it is simpler to have the GPUTracer be a flat class rather than implementing the noop behavior in a different object through inheritance. This CL does not change any functionality but simply flattens GPUTracer and combines the code for GPUTracerImpl and GPUTracerARBTimerQuery. BUG= https://code.google.com/p/chromium/issues/detail?id=397294 TEST= trybots Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=290710

Patch Set 1 #

Total comments: 8

Patch Set 2 : rebase #

Patch Set 3 : Applied Victor's suggestions #

Patch Set 4 : Fixed chromium style warning #

Patch Set 5 : Fixed paren mismatch #

Total comments: 2

Patch Set 6 : Added explicit to GPUTracer #

Patch Set 7 : Re-enabled gpu.service to use gl queries #

Unified diffs Side-by-side diffs Delta from patch set Stats (+178 lines, -206 lines) Patch
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gpu_tracer.h View 1 2 3 4 5 6 1 chunk +49 lines, -11 lines 0 comments Download
M gpu/command_buffer/service/gpu_tracer.cc View 1 2 3 4 5 6 4 chunks +128 lines, -194 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
David Yen
I have simplified the GPUTracer class in this CL, feel free to add any other ...
6 years, 5 months ago (2014-07-25 22:28:35 UTC) #1
vmiura
+jbauman for review. https://codereview.chromium.org/419073008/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/419073008/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode2345 gpu/command_buffer/service/gles2_cmd_decoder.cc:2345: gpu_tracer_ = scoped_ptr<GPUTracer>(new GPUTracer(this)); gpu_tracer_.reset(new GPUTracer(this)); ...
6 years, 4 months ago (2014-07-29 23:45:31 UTC) #2
David Yen
https://codereview.chromium.org/419073008/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/419073008/diff/1/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode2345 gpu/command_buffer/service/gles2_cmd_decoder.cc:2345: gpu_tracer_ = scoped_ptr<GPUTracer>(new GPUTracer(this)); On 2014/07/29 23:45:30, vmiura wrote: ...
6 years, 4 months ago (2014-08-04 22:20:06 UTC) #3
David Yen
I've rebased this CL with master and merged the changes with the GPU Trace simplification ...
6 years, 4 months ago (2014-08-08 16:45:35 UTC) #4
vmiura
LGTM with nit, thanks. https://codereview.chromium.org/419073008/diff/80001/gpu/command_buffer/service/gpu_tracer.h File gpu/command_buffer/service/gpu_tracer.h (right): https://codereview.chromium.org/419073008/diff/80001/gpu/command_buffer/service/gpu_tracer.h#newcode48 gpu/command_buffer/service/gpu_tracer.h:48: GPUTracer(gles2::GLES2Decoder* decoder); nit: explicit
6 years, 4 months ago (2014-08-14 19:43:06 UTC) #5
David Yen
https://codereview.chromium.org/419073008/diff/80001/gpu/command_buffer/service/gpu_tracer.h File gpu/command_buffer/service/gpu_tracer.h (right): https://codereview.chromium.org/419073008/diff/80001/gpu/command_buffer/service/gpu_tracer.h#newcode48 gpu/command_buffer/service/gpu_tracer.h:48: GPUTracer(gles2::GLES2Decoder* decoder); On 2014/08/14 19:43:05, vmiura wrote: > nit: ...
6 years, 4 months ago (2014-08-19 20:01:31 UTC) #6
jbauman
lgtm
6 years, 4 months ago (2014-08-19 20:02:17 UTC) #7
jbauman
lgtm lgtm
6 years, 4 months ago (2014-08-19 20:02:17 UTC) #8
David Yen
The CQ bit was checked by dyen@chromium.org
6 years, 4 months ago (2014-08-19 22:30:19 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dyen@chromium.org/419073008/120001
6 years, 4 months ago (2014-08-19 22:31:30 UTC) #10
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_tests_recipe on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-19 23:12:17 UTC) #11
commit-bot: I haz the power
6 years, 4 months ago (2014-08-20 00:12:08 UTC) #12
Message was sent while issue was closed.
Committed patchset #7 (120001) as 290710

Powered by Google App Engine
This is Rietveld 408576698