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

Unified Diff: ui/base/x/x11_util.cc

Issue 56053005: linux_aura: Improve window drag performance. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT Created 7 years, 1 month 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
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/x/x11_util.cc
diff --git a/ui/base/x/x11_util.cc b/ui/base/x/x11_util.cc
index 348a9c1489854af6c549ff47b9599dab386fe943..812fcf5f8d62e1aa4e772e41d16e920dac166445 100644
--- a/ui/base/x/x11_util.cc
+++ b/ui/base/x/x11_util.cc
@@ -22,6 +22,7 @@
#include "base/bind.h"
#include "base/command_line.h"
+#include "base/debug/trace_event.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
@@ -586,6 +587,8 @@ void ClearX11DefaultRootWindow() {
}
bool IsWindowVisible(XID window) {
+ TRACE_EVENT0("ui", "IsWindowVisible");
+
XWindowAttributes win_attributes;
if (!XGetWindowAttributes(gfx::GetXDisplay(), window, &win_attributes))
return false;
@@ -620,6 +623,8 @@ bool GetWindowRect(XID window, gfx::Rect* rect) {
bool WindowContainsPoint(XID window, gfx::Point screen_loc) {
+ TRACE_EVENT0("ui", "WindowContainsPoint");
+
gfx::Rect window_rect;
if (!GetWindowRect(window, &window_rect))
return false;
« no previous file with comments | « ui/aura/root_window.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698