gpu: Extract the gpu timing code from gpu_tracer.
commit82922f87f213ee34c2dc319b937c5137a939ac52
authordcastagna <dcastagna@chromium.org>
Thu, 12 Feb 2015 19:21:30 +0000 (12 11:21 -0800)
committerCommit bot <commit-bot@chromium.org>
Thu, 12 Feb 2015 19:22:36 +0000 (12 19:22 +0000)
tree2cb365744f18433510b00ecc7e27b778d02e30ec
parentd84033d4c99da29d3baae15784335f31a14b3c38
gpu: Extract the gpu timing code from gpu_tracer.

This commit introduces two new classes: GPUTiming and GPUTimer. The first one takes care of checking which timing GL extension to use, and the second one measures the amount of time it takes to complete a set of opengl commands.
GPUTracer and GPUTrace have been modified accordingly to use the two new classes.

BUG=

Review URL: https://codereview.chromium.org/904743002

Cr-Commit-Position: refs/heads/master@{#316020}
gpu/command_buffer/service/BUILD.gn
gpu/command_buffer/service/gpu_service_test.cc
gpu/command_buffer/service/gpu_service_test.h
gpu/command_buffer/service/gpu_timing.cc [new file with mode: 0644]
gpu/command_buffer/service/gpu_timing.h [new file with mode: 0644]
gpu/command_buffer/service/gpu_tracer.cc
gpu/command_buffer/service/gpu_tracer.h
gpu/command_buffer/service/gpu_tracer_unittest.cc
gpu/command_buffer_service.gypi