OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/gpu_trace_event.h" | 5 #include "gpu/common/gpu_trace_event.h" |
6 | 6 |
7 #include "base/format_macros.h" | 7 #include "base/format_macros.h" |
8 #include "base/process_util.h" | 8 #include "base/process_util.h" |
9 #include "base/stringprintf.h" | 9 #include "base/stringprintf.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 event.argValues[0] = arg1val; | 321 event.argValues[0] = arg1val; |
322 event.argNames[1] = arg2name; | 322 event.argNames[1] = arg2name; |
323 event.argValues[1] = arg2val; | 323 event.argValues[1] = arg2val; |
324 COMPILE_ASSERT(TRACE_MAX_NUM_ARGS == 2, TraceEvent_arc_count_out_of_sync); | 324 COMPILE_ASSERT(TRACE_MAX_NUM_ARGS == 2, TraceEvent_arc_count_out_of_sync); |
325 if (logged_events_.size() == TRACE_EVENT_BUFFER_SIZE && | 325 if (logged_events_.size() == TRACE_EVENT_BUFFER_SIZE && |
326 buffer_full_callback_.get()) | 326 buffer_full_callback_.get()) |
327 buffer_full_callback_->Run(); | 327 buffer_full_callback_->Run(); |
328 } | 328 } |
329 | 329 |
330 } // namespace gpu | 330 } // namespace gpu |
OLD | NEW |