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

Side by Side Diff: content/renderer/render_widget.cc

Issue 18587004: Add a sampling tracing to RenderWidget::DoDeferredUpdate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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 | Annotate | Revision Log
« base/debug/trace_event.h ('K') | « base/debug/trace_event_unittest.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 "content/renderer/render_widget.h" 5 #include "content/renderer/render_widget.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/debug/trace_event.h" 9 #include "base/debug/trace_event.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 1081 matching lines...) Expand 10 before | Expand all | Expand 10 after
1092 1092
1093 void RenderWidget::DoDeferredUpdateAndSendInputAck() { 1093 void RenderWidget::DoDeferredUpdateAndSendInputAck() {
1094 DoDeferredUpdate(); 1094 DoDeferredUpdate();
1095 1095
1096 if (pending_input_event_ack_) 1096 if (pending_input_event_ack_)
1097 Send(pending_input_event_ack_.release()); 1097 Send(pending_input_event_ack_.release());
1098 } 1098 }
1099 1099
1100 void RenderWidget::DoDeferredUpdate() { 1100 void RenderWidget::DoDeferredUpdate() {
1101 TRACE_EVENT0("renderer", "RenderWidget::DoDeferredUpdate"); 1101 TRACE_EVENT0("renderer", "RenderWidget::DoDeferredUpdate");
1102 // Not supported in split-dll build. http://crbug.com/256965
1103 #if !defined(CHROME_SPLIT_DLL)
nduca 2013/07/03 09:54:34 can we push the disable call into the implementati
haraken 2013/07/04 02:03:16 Done.
1104 TRACE_EVENT_SAMPLING_STATE_SCOPE("Chrome", "Paint");
1105 #endif
1102 1106
1103 if (!webwidget_) 1107 if (!webwidget_)
1104 return; 1108 return;
1105 1109
1106 if (!init_complete_) { 1110 if (!init_complete_) {
1107 TRACE_EVENT0("renderer", "EarlyOut_InitNotComplete"); 1111 TRACE_EVENT0("renderer", "EarlyOut_InitNotComplete");
1108 return; 1112 return;
1109 } 1113 }
1110 if (update_reply_pending_) { 1114 if (update_reply_pending_) {
1111 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending"); 1115 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending");
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 2412
2409 if (!context->InitializeWithDefaultBufferSizes( 2413 if (!context->InitializeWithDefaultBufferSizes(
2410 attributes, 2414 attributes,
2411 false /* bind generates resources */, 2415 false /* bind generates resources */,
2412 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) ) 2416 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) )
2413 return NULL; 2417 return NULL;
2414 return context.release(); 2418 return context.release();
2415 } 2419 }
2416 2420
2417 } // namespace content 2421 } // namespace content
OLDNEW
« base/debug/trace_event.h ('K') | « base/debug/trace_event_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698