Commit 0e738ae9 authored by Robert Liao's avatar Robert Liao Committed by Commit Bot

Move DrawTaskbarDecoration's Call of SetOverlayIcon to Use the COM STA Task Runner

BUG=706512

Change-Id: I933e2b06530b9d164a33966e9b70125729fc80ff
Reviewed-on: https://chromium-review.googlesource.com/572404Reviewed-by: default avatarPeter Kasting <pkasting@chromium.org>
Commit-Queue: Robert Liao <robliao@chromium.org>
Cr-Commit-Position: refs/heads/master@{#486950}
parent bb317b9c
...@@ -82,11 +82,10 @@ void DrawTaskbarDecoration(gfx::NativeWindow window, const gfx::Image* image) { ...@@ -82,11 +82,10 @@ void DrawTaskbarDecoration(gfx::NativeWindow window, const gfx::Image* image) {
bitmap.reset(new SkBitmap( bitmap.reset(new SkBitmap(
profiles::GetAvatarIconAsSquare(*image->ToSkBitmap(), 1))); profiles::GetAvatarIconAsSquare(*image->ToSkBitmap(), 1)));
} }
// TODO(robliao): Annotate this task with .WithCOM() once supported. base::CreateCOMSTATaskRunnerWithTraits(
// https://crbug.com/662122 {base::MayBlock(), base::TaskPriority::USER_VISIBLE})
base::PostTaskWithTraits( ->PostTask(FROM_HERE,
FROM_HERE, {base::MayBlock(), base::TaskPriority::USER_VISIBLE}, base::Bind(&SetOverlayIcon, hwnd, base::Passed(&bitmap)));
base::Bind(&SetOverlayIcon, hwnd, base::Passed(&bitmap)));
} }
} // namespace chrome } // namespace chrome
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