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

Issue 23926013: gpu: Record GL state to trace (Closed)

Created:
7 years, 3 months ago by Sami
Modified:
7 years, 3 months ago
Reviewers:
dsinclair, nduca, piman
CC:
chromium-reviews, piman+watch_chromium.org, apatrick_chromium
Visibility:
Public.

Description

gpu: Record GL state to trace This patch adds a GL state tracer for recording information about the context state as trace event objects. This initial version only records a screenshot of the framebuffer contents at every SwapBuffers. Note that because the saving this information can be expensive, the new trace events are added under the "disabled-by-default-gpu.debug" category. BUG=284402 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=222812

Patch Set 1 #

Patch Set 2 : Reformatting. #

Patch Set 3 : git cl format ftw. #

Total comments: 8

Patch Set 4 : Address feedback. #

Total comments: 1

Patch Set 5 : Fix typo. #

Total comments: 4

Patch Set 6 : Take snapshot of default framebuffer. #

Total comments: 2

Patch Set 7 : Use GetBackbufferServiceId() instead of 0. #

Patch Set 8 : Fix build failure. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -1 line) Patch
M base/debug/trace_event.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M gpu/command_buffer/service/gles2_cmd_decoder.cc View 1 2 3 4 5 6 7 5 chunks +21 lines, -0 lines 0 comments Download
A gpu/command_buffer/service/gpu_state_tracer.h View 1 2 3 4 5 6 7 1 chunk +39 lines, -0 lines 0 comments Download
A gpu/command_buffer/service/gpu_state_tracer.cc View 1 2 3 4 5 6 7 1 chunk +131 lines, -0 lines 0 comments Download
M gpu/command_buffer_service.gypi View 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 15 (0 generated)
Sami
PTAL. N.B. I opted not to do async readpixels to keep the memory use bounded.
7 years, 3 months ago (2013-09-09 12:56:40 UTC) #1
dsinclair
https://codereview.chromium.org/23926013/diff/4001/gpu/command_buffer/service/gpu_state_tracer.cc File gpu/command_buffer/service/gpu_state_tracer.cc (right): https://codereview.chromium.org/23926013/diff/4001/gpu/command_buffer/service/gpu_state_tracer.cc#newcode77 gpu/command_buffer/service/gpu_state_tracer.cc:77: return false; Is this something that happens commonly? Should ...
7 years, 3 months ago (2013-09-09 14:25:08 UTC) #2
Sami
Thanks Dan. Another look, please? https://codereview.chromium.org/23926013/diff/4001/gpu/command_buffer/service/gpu_state_tracer.cc File gpu/command_buffer/service/gpu_state_tracer.cc (right): https://codereview.chromium.org/23926013/diff/4001/gpu/command_buffer/service/gpu_state_tracer.cc#newcode77 gpu/command_buffer/service/gpu_state_tracer.cc:77: return false; On 2013/09/09 ...
7 years, 3 months ago (2013-09-09 16:32:15 UTC) #3
dsinclair
lgtm with nit. https://codereview.chromium.org/23926013/diff/7001/gpu/command_buffer/service/gpu_state_tracer.cc File gpu/command_buffer/service/gpu_state_tracer.cc (right): https://codereview.chromium.org/23926013/diff/7001/gpu/command_buffer/service/gpu_state_tracer.cc#newcode117 gpu/command_buffer/service/gpu_state_tracer.cc:117: "GPUStateTrace::TakeSnapshot"); nit: GPUStateTracer
7 years, 3 months ago (2013-09-09 16:55:39 UTC) #4
piman
https://codereview.chromium.org/23926013/diff/15001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/23926013/diff/15001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8585 gpu/command_buffer/service/gles2_cmd_decoder.cc:8585: gpu_state_tracer_->TakeSnapshot(); A non-default framebuffer could be bound when SwapBuffers ...
7 years, 3 months ago (2013-09-09 21:25:54 UTC) #5
Sami
On 2013/09/09 21:25:54, piman wrote: > https://codereview.chromium.org/23926013/diff/15001/gpu/command_buffer/service/gles2_cmd_decoder.cc > File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): > > https://codereview.chromium.org/23926013/diff/15001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode8585 > ...
7 years, 3 months ago (2013-09-10 12:55:49 UTC) #6
piman
One last thing. https://codereview.chromium.org/23926013/diff/19001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/23926013/diff/19001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6994 gpu/command_buffer/service/gles2_cmd_decoder.cc:6994: ScopedFrameBufferBinder binder(this, 0); you want GetBackbufferServiceId() ...
7 years, 3 months ago (2013-09-10 17:40:08 UTC) #7
piman
On Tue, Sep 10, 2013 at 5:55 AM, <skyostil@chromium.org> wrote: > On 2013/09/09 21:25:54, piman ...
7 years, 3 months ago (2013-09-10 17:41:19 UTC) #8
Sami
https://codereview.chromium.org/23926013/diff/19001/gpu/command_buffer/service/gles2_cmd_decoder.cc File gpu/command_buffer/service/gles2_cmd_decoder.cc (right): https://codereview.chromium.org/23926013/diff/19001/gpu/command_buffer/service/gles2_cmd_decoder.cc#newcode6994 gpu/command_buffer/service/gles2_cmd_decoder.cc:6994: ScopedFrameBufferBinder binder(this, 0); On 2013/09/10 17:40:08, piman wrote: > ...
7 years, 3 months ago (2013-09-10 17:45:28 UTC) #9
Sami
piman@, did you have some more comments here?
7 years, 3 months ago (2013-09-11 17:53:38 UTC) #10
piman
Oh, sorry, LGTM.
7 years, 3 months ago (2013-09-11 22:04:58 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/23926013/27001
7 years, 3 months ago (2013-09-11 22:17:19 UTC) #12
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 3 months ago (2013-09-11 22:44:04 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/skyostil@chromium.org/23926013/52001
7 years, 3 months ago (2013-09-12 10:11:14 UTC) #14
commit-bot: I haz the power
7 years, 3 months ago (2013-09-12 18:05:15 UTC) #15
Message was sent while issue was closed.
Change committed as 222812

Powered by Google App Engine
This is Rietveld 408576698