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

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: ax 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/image_decoder.h » ('j') | chrome/browser/image_decoder.cc » ('J')
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 25cb3ca7b3189c2c5b5fb6397a4e6bea5c5393a2..554963e1be099e122cf476db1fe8ed9e16039013 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/image_decoder.h » ('j') | chrome/browser/image_decoder.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698