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

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
« no previous file with comments | « 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 TRACE_EVENT_SCOPED_SAMPLING_STATE("Chrome", "Paint");
1102 1103
1103 if (!webwidget_) 1104 if (!webwidget_)
1104 return; 1105 return;
1105 1106
1106 if (!init_complete_) { 1107 if (!init_complete_) {
1107 TRACE_EVENT0("renderer", "EarlyOut_InitNotComplete"); 1108 TRACE_EVENT0("renderer", "EarlyOut_InitNotComplete");
1108 return; 1109 return;
1109 } 1110 }
1110 if (update_reply_pending_) { 1111 if (update_reply_pending_) {
1111 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending"); 1112 TRACE_EVENT0("renderer", "EarlyOut_UpdateReplyPending");
(...skipping 1296 matching lines...) Expand 10 before | Expand all | Expand 10 after
2408 2409
2409 if (!context->InitializeWithDefaultBufferSizes( 2410 if (!context->InitializeWithDefaultBufferSizes(
2410 attributes, 2411 attributes,
2411 false /* bind generates resources */, 2412 false /* bind generates resources */,
2412 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) ) 2413 CAUSE_FOR_GPU_LAUNCH_WEBGRAPHICSCONTEXT3DCOMMANDBUFFERIMPL_INITIALIZE) )
2413 return NULL; 2414 return NULL;
2414 return context.release(); 2415 return context.release();
2415 } 2416 }
2416 2417
2417 } // namespace content 2418 } // namespace content
OLDNEW
« no previous file with comments | « base/debug/trace_event_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698