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

Side by Side Diff: ui/aura/root_window.cc

Issue 11293121: Add latency measurement system (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: create cc::LatencyInfo Created 7 years, 11 months 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ui/aura/root_window.h" 5 #include "ui/aura/root_window.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 ScheduleDraw(); 490 ScheduleDraw();
491 } 491 }
492 } 492 }
493 493
494 void RootWindow::OnCompositingAborted(ui::Compositor*) { 494 void RootWindow::OnCompositingAborted(ui::Compositor*) {
495 } 495 }
496 496
497 void RootWindow::OnCompositingLockStateChanged(ui::Compositor*) { 497 void RootWindow::OnCompositingLockStateChanged(ui::Compositor*) {
498 } 498 }
499 499
500 void RootWindow::OnReceivedLatencyInfo(ui::Compositor*,
501 const cc::LatencyInfo&) {
502 }
503
500 //////////////////////////////////////////////////////////////////////////////// 504 ////////////////////////////////////////////////////////////////////////////////
501 // RootWindow, ui::LayerDelegate implementation: 505 // RootWindow, ui::LayerDelegate implementation:
502 506
503 void RootWindow::OnDeviceScaleFactorChanged( 507 void RootWindow::OnDeviceScaleFactorChanged(
504 float device_scale_factor) { 508 float device_scale_factor) {
505 const bool cursor_is_in_bounds = 509 const bool cursor_is_in_bounds =
506 GetBoundsInScreen().Contains(Env::GetInstance()->last_mouse_location()); 510 GetBoundsInScreen().Contains(Env::GetInstance()->last_mouse_location());
507 bool cursor_visible = false; 511 bool cursor_visible = false;
508 client::CursorClient* cursor_client = client::GetCursorClient(this); 512 client::CursorClient* cursor_client = client::GetCursorClient(this);
509 if (cursor_is_in_bounds && cursor_client) { 513 if (cursor_is_in_bounds && cursor_client) {
(...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after
997 ui::MouseEvent event(ui::ET_MOUSE_MOVED, 1001 ui::MouseEvent event(ui::ET_MOUSE_MOVED,
998 orig_mouse_location, 1002 orig_mouse_location,
999 orig_mouse_location, 1003 orig_mouse_location,
1000 ui::EF_IS_SYNTHESIZED); 1004 ui::EF_IS_SYNTHESIZED);
1001 event.set_system_location(Env::GetInstance()->last_mouse_location()); 1005 event.set_system_location(Env::GetInstance()->last_mouse_location());
1002 OnHostMouseEvent(&event); 1006 OnHostMouseEvent(&event);
1003 #endif 1007 #endif
1004 } 1008 }
1005 1009
1006 } // namespace aura 1010 } // namespace aura
OLDNEW
« no previous file with comments | « ui/aura/root_window.h ('k') | ui/compositor/compositor.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698