Index: gpu/command_buffer/service/gles2_cmd_decoder.cc |
diff --git a/gpu/command_buffer/service/gles2_cmd_decoder.cc b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
index 6b254e0966bb8ad2de4ee746bf53e6f7cb3dc269..c02dcb5dd355d9591022fb90d99dd86f41f854eb 100644 |
--- a/gpu/command_buffer/service/gles2_cmd_decoder.cc |
+++ b/gpu/command_buffer/service/gles2_cmd_decoder.cc |
@@ -2445,8 +2445,6 @@ bool GLES2DecoderImpl::Initialize( |
surfaceless_ = surface->IsSurfaceless() && !offscreen; |
set_initialized(); |
- gpu_tracer_.reset(new GPUTracer(this)); |
- gpu_state_tracer_ = GPUStateTracer::Create(&state_); |
if (base::CommandLine::ForCurrentProcess()->HasSwitch( |
switches::kEnableGPUDebugging)) { |
@@ -2476,6 +2474,10 @@ bool GLES2DecoderImpl::Initialize( |
if (!attrib_parser.Parse(attribs)) |
return false; |
+ // Create GPU Tracer for timing values. |
+ gpu_tracer_.reset(new GPUTracer(this)); |
+ gpu_state_tracer_ = GPUStateTracer::Create(&state_); |
vmiura
2015/02/24 23:57:58
nit: I think GPUStateTracer is not related to GPUT
David Yen
2015/02/25 01:47:35
Done.
|
+ |
// Save the loseContextWhenOutOfMemory context creation attribute. |
lose_context_when_out_of_memory_ = |
attrib_parser.lose_context_when_out_of_memory; |