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

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: minor input event changes Created 8 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 unified diff | Download patch | Annotate | Revision Log
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 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 ScheduleDraw(); 479 ScheduleDraw();
480 } 480 }
481 } 481 }
482 482
483 void RootWindow::OnCompositingAborted(ui::Compositor*) { 483 void RootWindow::OnCompositingAborted(ui::Compositor*) {
484 } 484 }
485 485
486 void RootWindow::OnCompositingLockStateChanged(ui::Compositor*) { 486 void RootWindow::OnCompositingLockStateChanged(ui::Compositor*) {
487 } 487 }
488 488
489 void RootWindow::OnReceivedLatencyInfo(ui::Compositor*,
490 const WebKit::WebLatencyInfoImpl&) {
491 }
492
489 //////////////////////////////////////////////////////////////////////////////// 493 ////////////////////////////////////////////////////////////////////////////////
490 // RootWindow, ui::LayerDelegate implementation: 494 // RootWindow, ui::LayerDelegate implementation:
491 495
492 void RootWindow::OnDeviceScaleFactorChanged( 496 void RootWindow::OnDeviceScaleFactorChanged(
493 float device_scale_factor) { 497 float device_scale_factor) {
494 const bool cursor_is_in_bounds = 498 const bool cursor_is_in_bounds =
495 GetBoundsInScreen().Contains(Env::GetInstance()->last_mouse_location()); 499 GetBoundsInScreen().Contains(Env::GetInstance()->last_mouse_location());
496 bool cursor_visible = false; 500 bool cursor_visible = false;
497 client::CursorClient* cursor_client = client::GetCursorClient(this); 501 client::CursorClient* cursor_client = client::GetCursorClient(this);
498 if (cursor_is_in_bounds && cursor_client) { 502 if (cursor_is_in_bounds && cursor_client) {
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
988 ui::MouseEvent event(ui::ET_MOUSE_MOVED, 992 ui::MouseEvent event(ui::ET_MOUSE_MOVED,
989 orig_mouse_location, 993 orig_mouse_location,
990 orig_mouse_location, 994 orig_mouse_location,
991 ui::EF_IS_SYNTHESIZED); 995 ui::EF_IS_SYNTHESIZED);
992 event.set_system_location(Env::GetInstance()->last_mouse_location()); 996 event.set_system_location(Env::GetInstance()->last_mouse_location());
993 OnHostMouseEvent(&event); 997 OnHostMouseEvent(&event);
994 #endif 998 #endif
995 } 999 }
996 1000
997 } // namespace aura 1001 } // namespace aura
OLDNEW
« cc/gl_renderer.h ('K') | « 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