summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 17:48:51 +0000
committernduca@chromium.org <nduca@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-24 17:48:51 +0000
commitc5218767c5e188fdcf69af0c1dc25aa364769520 (patch)
tree558827d39c932800fffac1b51dc5b7e3da4214ee
parentebbdaaba3a14b0e5c0f028bf5c58bcdf76f2ec74 (diff)
downloadchromium_src-c5218767c5e188fdcf69af0c1dc25aa364769520.zip
chromium_src-c5218767c5e188fdcf69af0c1dc25aa364769520.tar.gz
chromium_src-c5218767c5e188fdcf69af0c1dc25aa364769520.tar.bz2
Add GPU_TRACE instrumentation for updateRectAck
Review URL: http://codereview.chromium.org/6732006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79292 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--content/browser/renderer_host/render_widget_host.cc2
-rw-r--r--content/renderer/render_widget.cc5
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;