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

Unified Diff: ui/aura/root_window.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 | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 53b8829208d428a892b3d2038a874fd678a63c0b..775a6acd264b9c24c77f967f23a201f1be320000 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -903,11 +903,17 @@ void RootWindow::OnHostPaint(const gfx::Rect& damage_rect) {
}
void RootWindow::OnHostMoved(const gfx::Point& origin) {
+ TRACE_EVENT1("ui", "RootWindow::OnHostMoved",
+ "origin", origin.ToString());
+
FOR_EACH_OBSERVER(RootWindowObserver, observers_,
OnRootWindowHostMoved(this, origin));
}
void RootWindow::OnHostResized(const gfx::Size& size) {
+ TRACE_EVENT1("ui", "RootWindow::OnHostResized",
+ "size", size.ToString());
+
DispatchHeldEvents();
// The compositor should have the same size as the native root window host.
// Get the latest scale from display because it might have been changed.
« no previous file with comments | « content/browser/web_contents/web_contents_view_aura.cc ('k') | ui/base/x/x11_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698