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

Unified Diff: chrome/browser/ui/gtk/custom_button.cc

Issue 8800029: GTK: Add TRACE_EVENTs around gtk ui events. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fix nit Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/gtk/custom_button.cc
diff --git a/chrome/browser/ui/gtk/custom_button.cc b/chrome/browser/ui/gtk/custom_button.cc
index 2b25796f22f6dae528f6884f11bdb3eb0f84b5b1..d70c2e8aee14debd222c5451e30a79d8c58b4c70 100644
--- a/chrome/browser/ui/gtk/custom_button.cc
+++ b/chrome/browser/ui/gtk/custom_button.cc
@@ -6,6 +6,7 @@
#include "base/basictypes.h"
#include "base/logging.h"
+#include "base/debug/trace_event.h"
#include "chrome/browser/ui/gtk/gtk_chrome_button.h"
#include "chrome/browser/ui/gtk/gtk_theme_service.h"
#include "chrome/browser/ui/gtk/gtk_util.h"
@@ -72,6 +73,7 @@ int CustomDrawButtonBase::Height() const {
gboolean CustomDrawButtonBase::OnExpose(GtkWidget* widget,
GdkEventExpose* e,
gdouble hover_state) {
+ TRACE_EVENT0("ui::gtk", "CustomDrawButtonBase::OnExpose");
int paint_state = paint_override_ >= 0 ?
paint_override_ : gtk_widget_get_state(widget);
@@ -332,6 +334,7 @@ void CustomDrawButton::SetBackground(SkColor color,
gboolean CustomDrawButton::OnCustomExpose(GtkWidget* sender,
GdkEventExpose* e) {
+ UNSHIPPED_TRACE_EVENT0("ui::gtk", "CustomDrawButtonBase::OnCustomExpose");
if (UseGtkTheme()) {
// Continue processing this expose event.
return FALSE;

Powered by Google App Engine
This is Rietveld 408576698