Commit 83da8673 authored by Hajime Hoshi's avatar Hajime Hoshi Committed by Commit Bot

Remove Timer usages from ScrollableArea

This is part of efforts to replace default timer task runners with
other appropriate task runners in the renderer.

Bug: 624694, 804694
Change-Id: Ibe59f2d49e197f7badc2832482de7849c4e2da09
Reviewed-on: https://chromium-review.googlesource.com/923875Reviewed-by: default avatarAlexander Timin <altimin@chromium.org>
Reviewed-by: default avatarKentaro Hara <haraken@chromium.org>
Commit-Queue: Hajime Hoshi <hajimehoshi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#537725}
parent 2c188088
......@@ -35,10 +35,12 @@
#include "platform/PlatformChromeClient.h"
#include "platform/graphics/GraphicsLayer.h"
#include "platform/instrumentation/tracing/TraceEvent.h"
#include "platform/scheduler/child/web_scheduler.h"
#include "platform/scroll/MainThreadScrollingReason.h"
#include "platform/scroll/ProgrammaticScrollAnimator.h"
#include "platform/scroll/ScrollbarTheme.h"
#include "platform/scroll/SmoothScrollSequencer.h"
#include "public/platform/Platform.h"
static const int kPixelsPerLineStep = 40;
static const float kMinFractionToStepWhenPaging = 0.875f;
......@@ -620,7 +622,8 @@ void ScrollableArea::ShowOverlayScrollbars() {
return;
if (!fade_overlay_scrollbars_timer_) {
fade_overlay_scrollbars_timer_.reset(new Timer<ScrollableArea>(
fade_overlay_scrollbars_timer_.reset(new TaskRunnerTimer<ScrollableArea>(
Platform::Current()->MainThread()->Scheduler()->CompositorTaskRunner(),
this, &ScrollableArea::FadeOverlayScrollbarsTimerFired));
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment