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

Side by Side Diff: content/child/blink_platform_impl.cc

Issue 894913006: Deletes the now-unused addTrace methods that don't accept user-supplied timestamps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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 | « content/child/blink_platform_impl.h ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/child/blink_platform_impl.h" 5 #include "content/child/blink_platform_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 647 matching lines...) Expand 10 before | Expand all | Expand 10 after
658 arg_names, 658 arg_names,
659 arg_types, 659 arg_types,
660 arg_values, 660 arg_values,
661 convertable_wrappers, 661 convertable_wrappers,
662 flags); 662 flags);
663 blink::Platform::TraceEventHandle result; 663 blink::Platform::TraceEventHandle result;
664 memcpy(&result, &handle, sizeof(result)); 664 memcpy(&result, &handle, sizeof(result));
665 return result; 665 return result;
666 } 666 }
667 667
668 blink::Platform::TraceEventHandle BlinkPlatformImpl::addTraceEvent(
669 char phase,
670 const unsigned char* category_group_enabled,
671 const char* name,
672 unsigned long long id,
673 int num_args,
674 const char** arg_names,
675 const unsigned char* arg_types,
676 const unsigned long long* arg_values,
677 unsigned char flags) {
678 return addTraceEvent(phase, category_group_enabled, name, id,
679 monotonicallyIncreasingTime(),
680 num_args, arg_names, arg_types, arg_values, flags);
681 }
682
683 blink::Platform::TraceEventHandle BlinkPlatformImpl::addTraceEvent(
684 char phase,
685 const unsigned char* category_group_enabled,
686 const char* name,
687 unsigned long long id,
688 int num_args,
689 const char** arg_names,
690 const unsigned char* arg_types,
691 const unsigned long long* arg_values,
692 const blink::WebConvertableToTraceFormat* convertable_values,
693 unsigned char flags) {
694 return addTraceEvent(phase, category_group_enabled, name, id,
695 monotonicallyIncreasingTime(),
696 num_args, arg_names, arg_types, arg_values,
697 convertable_values, flags);
698 }
699
700 void BlinkPlatformImpl::updateTraceEventDuration( 668 void BlinkPlatformImpl::updateTraceEventDuration(
701 const unsigned char* category_group_enabled, 669 const unsigned char* category_group_enabled,
702 const char* name, 670 const char* name,
703 TraceEventHandle handle) { 671 TraceEventHandle handle) {
704 base::debug::TraceEventHandle traceEventHandle; 672 base::debug::TraceEventHandle traceEventHandle;
705 memcpy(&traceEventHandle, &handle, sizeof(handle)); 673 memcpy(&traceEventHandle, &handle, sizeof(handle));
706 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION( 674 TRACE_EVENT_API_UPDATE_TRACE_EVENT_DURATION(
707 category_group_enabled, name, traceEventHandle); 675 category_group_enabled, name, traceEventHandle);
708 } 676 }
709 677
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
1280 } 1248 }
1281 1249
1282 // static 1250 // static
1283 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) { 1251 void BlinkPlatformImpl::DestroyCurrentThread(void* thread) {
1284 WebThreadImplForMessageLoop* impl = 1252 WebThreadImplForMessageLoop* impl =
1285 static_cast<WebThreadImplForMessageLoop*>(thread); 1253 static_cast<WebThreadImplForMessageLoop*>(thread);
1286 delete impl; 1254 delete impl;
1287 } 1255 }
1288 1256
1289 } // namespace content 1257 } // namespace content
OLDNEW
« no previous file with comments | « content/child/blink_platform_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698