Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" | 5 #include "gpu/command_buffer/service/gles2_cmd_decoder.h" |
| 6 | 6 |
| 7 #include <stdio.h> | 7 #include <stdio.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 2324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2335 const scoped_refptr<gfx::GLContext>& context, | 2335 const scoped_refptr<gfx::GLContext>& context, |
| 2336 bool offscreen, | 2336 bool offscreen, |
| 2337 const gfx::Size& size, | 2337 const gfx::Size& size, |
| 2338 const DisallowedFeatures& disallowed_features, | 2338 const DisallowedFeatures& disallowed_features, |
| 2339 const std::vector<int32>& attribs) { | 2339 const std::vector<int32>& attribs) { |
| 2340 TRACE_EVENT0("gpu", "GLES2DecoderImpl::Initialize"); | 2340 TRACE_EVENT0("gpu", "GLES2DecoderImpl::Initialize"); |
| 2341 DCHECK(context->IsCurrent(surface.get())); | 2341 DCHECK(context->IsCurrent(surface.get())); |
| 2342 DCHECK(!context_.get()); | 2342 DCHECK(!context_.get()); |
| 2343 | 2343 |
| 2344 set_initialized(); | 2344 set_initialized(); |
| 2345 gpu_tracer_ = GPUTracer::Create(this); | 2345 gpu_tracer_ = scoped_ptr<GPUTracer>(new GPUTracer(this)); |
|
vmiura
2014/07/29 23:45:30
gpu_tracer_.reset(new GPUTracer(this));
David Yen
2014/08/04 22:20:05
Done.
| |
| 2346 gpu_state_tracer_ = GPUStateTracer::Create(&state_); | 2346 gpu_state_tracer_ = GPUStateTracer::Create(&state_); |
| 2347 // TODO(vmiura): Enable changing gpu_trace_level_ at runtime | 2347 // TODO(vmiura): Enable changing gpu_trace_level_ at runtime |
| 2348 gpu_trace_level_ = 2; | 2348 gpu_trace_level_ = 2; |
| 2349 gpu_trace_commands_ = false; | 2349 gpu_trace_commands_ = false; |
| 2350 | 2350 |
| 2351 if (CommandLine::ForCurrentProcess()->HasSwitch( | 2351 if (CommandLine::ForCurrentProcess()->HasSwitch( |
| 2352 switches::kEnableGPUDebugging)) { | 2352 switches::kEnableGPUDebugging)) { |
| 2353 set_debug(true); | 2353 set_debug(true); |
| 2354 } | 2354 } |
| 2355 | 2355 |
| (...skipping 8563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 10919 } | 10919 } |
| 10920 } | 10920 } |
| 10921 | 10921 |
| 10922 // Include the auto-generated part of this file. We split this because it means | 10922 // Include the auto-generated part of this file. We split this because it means |
| 10923 // we can easily edit the non-auto generated parts right here in this file | 10923 // we can easily edit the non-auto generated parts right here in this file |
| 10924 // instead of having to edit some template or the code generator. | 10924 // instead of having to edit some template or the code generator. |
| 10925 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" | 10925 #include "gpu/command_buffer/service/gles2_cmd_decoder_autogen.h" |
| 10926 | 10926 |
| 10927 } // namespace gles2 | 10927 } // namespace gles2 |
| 10928 } // namespace gpu | 10928 } // namespace gpu |
| OLD | NEW |