Chromium Code Reviews| Index: webkit/glue/webkitplatformsupport_impl.cc |
| diff --git a/webkit/glue/webkitplatformsupport_impl.cc b/webkit/glue/webkitplatformsupport_impl.cc |
| index 91280b10af4d6464b9d3b87902fae3a2a2e0db91..3f1caddfd92ac8d7d764e09d0d349c101cc81108 100644 |
| --- a/webkit/glue/webkitplatformsupport_impl.cc |
| +++ b/webkit/glue/webkitplatformsupport_impl.cc |
| @@ -305,6 +305,44 @@ void WebKitPlatformSupportImpl::traceEventEnd(const char* name, void* id, |
| TRACE_EVENT_END_ETW(name, id, extra); |
| } |
| +const unsigned char* WebKitPlatformSupportImpl::getCategoryEnabled( |
| + const char* category_name) { |
| + return TRACE_EVENT_API_GET_CATEGORY_ENABLED(category_name); |
| +} |
| + |
| +int WebKitPlatformSupportImpl::addTraceEvent( |
| + char phase, |
| + const unsigned char* category_enabled, |
| + const char* name, |
| + unsigned long long id, |
| + int num_args, |
| + const char** arg_names, |
| + const unsigned char* arg_types, |
| + const unsigned long long* arg_values, |
| + int threshold_begin_id, |
| + long long threshold, |
| + unsigned char flags) { |
| + return TRACE_EVENT_API_ADD_TRACE_EVENT(phase, category_enabled, name, id, |
| + num_args, arg_names, arg_types, |
| + arg_values, threshold_begin_id, |
| + threshold, flags); |
| +} |
| + |
| +void WebKitPlatformSupportImpl::addCounterEvent( |
| + const unsigned char* category_enabled, |
| + const char* name, |
| + unsigned long long id, |
| + const char* arg1_name, int arg1_val, |
| + const char* arg2_name, int arg2_val, |
| + unsigned char flags) { |
| + TRACE_EVENT_API_ADD_COUNTER_EVENT(category_enabled, name, id, arg1_name, |
| + arg1_val, arg2_name, arg2_val, flags); |
| +} |
| + |
| +unsigned long long WebKitPlatformSupportImpl::getInterProcessID(void* pointer) { |
|
darin (slow to review)
2012/01/13 22:37:12
Is it necessary for the WebKit API to talk about "
nduca
2012/01/13 22:40:41
manglePointerForTracing?
jbates
2012/01/13 23:56:03
Done.
|
| + return TRACE_EVENT_API_GET_ID_FROM_POINTER(pointer); |
| +} |
| + |
| namespace { |
| WebData loadAudioSpatializationResource(WebKitPlatformSupportImpl* platform, |