| Index: gpu/command_buffer/service/gpu_timing.cc
|
| diff --git a/gpu/command_buffer/service/gpu_timing.cc b/gpu/command_buffer/service/gpu_timing.cc
|
| index 6ab3e831f387515c351e1319dd584725f2533d1b..8716448a4ad507c714a1b7c8a061271763d18906 100644
|
| --- a/gpu/command_buffer/service/gpu_timing.cc
|
| +++ b/gpu/command_buffer/service/gpu_timing.cc
|
| @@ -5,7 +5,6 @@
|
| #include "gpu/command_buffer/service/gpu_timing.h"
|
|
|
| #include "base/time/time.h"
|
| -#include "ui/gl/gl_bindings.h"
|
| #include "ui/gl/gl_context.h"
|
| #include "ui/gl/gl_version_info.h"
|
|
|
| @@ -24,11 +23,11 @@ GPUTimer::~GPUTimer() {
|
| void GPUTimer::Start() {
|
| // GL_TIMESTAMP and GL_TIMESTAMP_EXT both have the same value.
|
| glQueryCounter(queries_[0], GL_TIMESTAMP);
|
| + offset_ = gpu_timing_->CalculateTimerOffset();
|
| }
|
|
|
| void GPUTimer::End() {
|
| end_requested_ = true;
|
| - offset_ = gpu_timing_->CalculateTimerOffset();
|
| glQueryCounter(queries_[1], GL_TIMESTAMP);
|
| }
|
|
|
|
|