Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make NotificationImageLoader::ScaleDownIfNeeded non-static private
NotificationImageLoader::ScaleDownIfNeeded is always called by the NotificationImageLoader::DidFinishLoading() clients with the exact type stored in NotificationImageLoader instance. We can make it private and unconditionally call it in ::DidFinishLoading() before serving the SkBitmap to the clients. This refactoring will ease the transition from CurrentTimeTicks() to clock->TimeTicks() in https://crrev.com/c/1643869. Bug: 919383 Change-Id: I8c4cb273914f976de19ea2d543c1afeac9569886 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1652931 Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Richard Knoll <knollr@chromium.org> Reviewed-by: Jeremy Roman <jbroman@chromium.org> Reviewed-by: Peter Beverloo <peter@chromium.org> Commit-Queue: Sergio Villar <svillar@igalia.com> Cr-Commit-Position: refs/heads/master@{#667976}
- Loading branch information
Showing
3 changed files
with
53 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters