Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: webkit/glue/webkitplatformsupport_impl.cc

Issue 13590005: Add a ConvertableToTraceFormat type to the trace framework. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ppapi/shared_impl/ppb_trace_event_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "webkit/glue/webkitplatformsupport_impl.h" 5 #include "webkit/glue/webkitplatformsupport_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 461 matching lines...) Expand 10 before | Expand all | Expand 10 after
472 const unsigned char* category_enabled, 472 const unsigned char* category_enabled,
473 const char* name, 473 const char* name,
474 unsigned long long id, 474 unsigned long long id,
475 int num_args, 475 int num_args,
476 const char** arg_names, 476 const char** arg_names,
477 const unsigned char* arg_types, 477 const unsigned char* arg_types,
478 const unsigned long long* arg_values, 478 const unsigned long long* arg_values,
479 unsigned char flags) { 479 unsigned char flags) {
480 TRACE_EVENT_API_ADD_TRACE_EVENT(phase, category_enabled, name, id, 480 TRACE_EVENT_API_ADD_TRACE_EVENT(phase, category_enabled, name, id,
481 num_args, arg_names, arg_types, 481 num_args, arg_names, arg_types,
482 arg_values, flags); 482 arg_values, NULL, flags);
483 } 483 }
484 484
485 485
486 namespace { 486 namespace {
487 487
488 WebData loadAudioSpatializationResource(WebKitPlatformSupportImpl* platform, 488 WebData loadAudioSpatializationResource(WebKitPlatformSupportImpl* platform,
489 const char* name) { 489 const char* name) {
490 #ifdef IDR_AUDIO_SPATIALIZATION_T000_P000 490 #ifdef IDR_AUDIO_SPATIALIZATION_T000_P000
491 const size_t kExpectedSpatializationNameLength = 31; 491 const size_t kExpectedSpatializationNameLength = 31;
492 if (strlen(name) != kExpectedSpatializationNameLength) { 492 if (strlen(name) != kExpectedSpatializationNameLength) {
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
956 return NULL; 956 return NULL;
957 scoped_ptr<WebDiscardableMemoryImpl> discardable( 957 scoped_ptr<WebDiscardableMemoryImpl> discardable(
958 new WebDiscardableMemoryImpl()); 958 new WebDiscardableMemoryImpl());
959 if (discardable->InitializeAndLock(bytes)) 959 if (discardable->InitializeAndLock(bytes))
960 return discardable.release(); 960 return discardable.release();
961 return NULL; 961 return NULL;
962 } 962 }
963 963
964 964
965 } // namespace webkit_glue 965 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « ppapi/shared_impl/ppb_trace_event_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698