Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3326)

Unified Diff: chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc

Issue 2715153006: Set desired_image_size when decoding images for NTP Tile icons. (Closed)
Patch Set: comment formatting Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
diff --git a/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc b/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
index dec4b9b4d37756d728755d15a64c57d03447a43e..9cb023b806ac8a80bf044541f9ddb474571634a4 100644
--- a/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
+++ b/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
@@ -17,6 +17,7 @@
#include "components/wallpaper/wallpaper_layout.h"
#include "content/public/browser/browser_thread.h"
#include "ui/gfx/codec/png_codec.h"
+#include "ui/gfx/geometry/size.h"
#include "ui/gfx/image/image.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_util.h"
@@ -109,7 +110,8 @@ void ArcWallpaperService::OnInstanceClosed() {
void ArcWallpaperService::SetWallpaper(const std::vector<uint8_t>& data) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
ImageDecoder::Cancel(this);
- ImageDecoder::StartWithOptions(this, data, ImageDecoder::DEFAULT_CODEC, true);
+ ImageDecoder::StartWithOptions(this, data, ImageDecoder::DEFAULT_CODEC, true,
+ gfx::Size());
}
void ArcWallpaperService::GetWallpaper(const GetWallpaperCallback& callback) {
« no previous file with comments | « no previous file | chrome/browser/chromeos/hats/hats_notification_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698