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

Unified Diff: chrome/utility/chrome_content_utility_client.h

Issue 482163002: Large wallpaper decoding in utility process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resize image in utility process to fit IPC message size limit Created 6 years, 4 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
Index: chrome/utility/chrome_content_utility_client.h
diff --git a/chrome/utility/chrome_content_utility_client.h b/chrome/utility/chrome_content_utility_client.h
index e70106469d00a52775e65e8b875be8cb29ff97ea..738ba40bbee2f3174ff258a02138e3b2fdc776f2 100644
--- a/chrome/utility/chrome_content_utility_client.h
+++ b/chrome/utility/chrome_content_utility_client.h
@@ -32,12 +32,16 @@ class ChromeContentUtilityClient : public content::ContentUtilityClient {
static void PreSandboxStartup();
// Shared with extensions::ExtensionsHandler.
- static void DecodeImage(const std::vector<unsigned char>& encoded_data);
+ static SkBitmap DecodeImage(const std::vector<unsigned char>& encoded_data,
+ bool shrink_to_fit);
bshe 2014/08/29 19:56:26 nit: indent is off
Greg Levin 2014/09/04 16:39:19 Done.
+ static void DecodeImageAndSend(const std::vector<unsigned char>& encoded_data,
+ bool shrink_to_fit);
private:
// IPC message handlers.
void OnUnpackWebResource(const std::string& resource_data);
- void OnDecodeImage(const std::vector<unsigned char>& encoded_data);
+ void OnDecodeImage(const std::vector<unsigned char>& encoded_data,
+ bool shrink_to_fit);
void OnRobustJPEGDecodeImage(
const std::vector<unsigned char>& encoded_data);

Powered by Google App Engine
This is Rietveld 408576698