diff options
-rw-r--r-- | content/browser/renderer_host/render_widget_host.cc | 2 | ||||
-rw-r--r-- | content/renderer/render_widget.cc | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/content/browser/renderer_host/render_widget_host.cc b/content/browser/renderer_host/render_widget_host.cc index 2e24c3e..37dfd4b 100644 --- a/content/browser/renderer_host/render_widget_host.cc +++ b/content/browser/renderer_host/render_widget_host.cc @@ -22,6 +22,7 @@ #include "content/common/notification_service.h" #include "content/common/result_codes.h" #include "content/common/view_messages.h" +#include "gpu/common/gpu_trace_event.h" #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderline.h" #include "ui/base/keycodes/keyboard_codes.h" #include "webkit/glue/webcursor.h" @@ -817,6 +818,7 @@ void RenderWidgetHost::OnMsgPaintAtSizeAck(int tag, const gfx::Size& size) { void RenderWidgetHost::OnMsgUpdateRect( const ViewHostMsg_UpdateRect_Params& params) { + GPU_TRACE_EVENT0("renderer_host", "RenderWidgetHost::OnMsgUpdateRect"); TimeTicks paint_start = TimeTicks::Now(); NotificationService::current()->Notify( diff --git a/content/renderer/render_widget.cc b/content/renderer/render_widget.cc index 8ecb0b3..901fbee 100644 --- a/content/renderer/render_widget.cc +++ b/content/renderer/render_widget.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Copyright (c) 2011 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -301,6 +301,7 @@ void RenderWidget::OnRequestMoveAck() { } void RenderWidget::OnUpdateRectAck() { + GPU_TRACE_EVENT0("renderer", "RenderWidget::OnUpdateRectAck"); DCHECK(update_reply_pending()); update_reply_pending_ = false; @@ -548,7 +549,7 @@ void RenderWidget::CallDoDeferredUpdate() { } void RenderWidget::DoDeferredUpdate() { - GPU_TRACE_EVENT0("render_widget", "DoDeferredUpdate"); + GPU_TRACE_EVENT0("renderer", "RenderWidget::DoDeferredUpdate"); if (!webwidget_ || update_reply_pending()) return; |