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/gpu_tracer.h" | 5 #include "gpu/command_buffer/service/gpu_tracer.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/debug/trace_event.h" | |
11 #include "base/strings/string_util.h" | 10 #include "base/strings/string_util.h" |
12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 12 #include "base/trace_event/trace_event.h" |
13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" | 13 #include "gpu/command_buffer/common/gles2_cmd_utils.h" |
14 #include "gpu/command_buffer/service/context_group.h" | 14 #include "gpu/command_buffer/service/context_group.h" |
15 #include "ui/gl/gl_version_info.h" | 15 #include "ui/gl/gl_version_info.h" |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 namespace gles2 { | 18 namespace gles2 { |
19 | 19 |
20 static const unsigned int kProcessInterval = 16; | 20 static const unsigned int kProcessInterval = 16; |
21 static TraceOutputter* g_outputter_thread = NULL; | 21 static TraceOutputter* g_outputter_thread = NULL; |
22 | 22 |
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
467 void GPUTracer::IssueProcessTask() { | 467 void GPUTracer::IssueProcessTask() { |
468 if (traces_.empty() || process_posted_) | 468 if (traces_.empty() || process_posted_) |
469 return; | 469 return; |
470 | 470 |
471 process_posted_ = true; | 471 process_posted_ = true; |
472 PostTask(); | 472 PostTask(); |
473 } | 473 } |
474 | 474 |
475 } // namespace gles2 | 475 } // namespace gles2 |
476 } // namespace gpu | 476 } // namespace gpu |
OLD | NEW |