| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 "chrome/browser/ui/views/frame/taskbar_decorator_win.h" | 5 #include "chrome/browser/ui/views/frame/taskbar_decorator_win.h" |
| 6 | 6 |
| 7 #include <shobjidl.h> | 7 #include <shobjidl.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| 11 #include "base/threading/sequenced_worker_pool.h" | |
| 12 #include "base/win/scoped_comptr.h" | 11 #include "base/win/scoped_comptr.h" |
| 13 #include "base/win/scoped_gdi_object.h" | 12 #include "base/win/scoped_gdi_object.h" |
| 14 #include "base/win/windows_version.h" | 13 #include "base/win/windows_version.h" |
| 15 #include "chrome/browser/profiles/profile_avatar_icon_util.h" | 14 #include "chrome/browser/profiles/profile_avatar_icon_util.h" |
| 16 #include "content/public/browser/browser_thread.h" | 15 #include "content/public/browser/browser_thread.h" |
| 17 #include "skia/ext/image_operations.h" | 16 #include "skia/ext/image_operations.h" |
| 18 #include "skia/ext/platform_canvas.h" | 17 #include "skia/ext/platform_canvas.h" |
| 19 #include "ui/gfx/icon_util.h" | 18 #include "ui/gfx/icon_util.h" |
| 20 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| 21 #include "ui/views/win/hwnd_util.h" | 20 #include "ui/views/win/hwnd_util.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 if (image) { | 84 if (image) { |
| 86 bitmap.reset(new SkBitmap( | 85 bitmap.reset(new SkBitmap( |
| 87 profiles::GetAvatarIconAsSquare(*image->ToSkBitmap(), 1))); | 86 profiles::GetAvatarIconAsSquare(*image->ToSkBitmap(), 1))); |
| 88 } | 87 } |
| 89 content::BrowserThread::GetBlockingPool()->PostWorkerTaskWithShutdownBehavior( | 88 content::BrowserThread::GetBlockingPool()->PostWorkerTaskWithShutdownBehavior( |
| 90 FROM_HERE, base::Bind(&SetOverlayIcon, hwnd, base::Passed(&bitmap)), | 89 FROM_HERE, base::Bind(&SetOverlayIcon, hwnd, base::Passed(&bitmap)), |
| 91 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); | 90 base::SequencedWorkerPool::CONTINUE_ON_SHUTDOWN); |
| 92 } | 91 } |
| 93 | 92 |
| 94 } // namespace chrome | 93 } // namespace chrome |
| OLD | NEW |