| Index: ash/wm/video_detector.cc
|
| diff --git a/ash/wm/video_detector.cc b/ash/wm/video_detector.cc
|
| index f0a7aaac908db0fcf62bf3dd66ee1984f9e4a1b1..816a9c427a8e8ac4a015621919a17391787940bf 100644
|
| --- a/ash/wm/video_detector.cc
|
| +++ b/ash/wm/video_detector.cc
|
| @@ -84,8 +84,9 @@ void VideoDetector::OnWindowInitialized(aura::Window* window) {
|
| observer_manager_.Add(window);
|
| }
|
|
|
| -void VideoDetector::OnWindowPaintScheduled(aura::Window* window,
|
| - const gfx::Rect& region) {
|
| +void VideoDetector::OnDelegatedFrameDamage(
|
| + aura::Window* window,
|
| + const gfx::Rect& damage_rect_in_dip) {
|
| if (is_shutting_down_)
|
| return;
|
| linked_ptr<WindowInfo>& info = window_infos_[window];
|
| @@ -94,7 +95,7 @@ void VideoDetector::OnWindowPaintScheduled(aura::Window* window,
|
|
|
| base::TimeTicks now =
|
| !now_for_test_.is_null() ? now_for_test_ : base::TimeTicks::Now();
|
| - if (info->RecordUpdateAndCheckForVideo(region, now))
|
| + if (info->RecordUpdateAndCheckForVideo(damage_rect_in_dip, now))
|
| MaybeNotifyObservers(window, now);
|
| }
|
|
|
|
|