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

Unified Diff: chrome/browser/image_decoder.h

Issue 11968044: Fix login visual hitch on chromebook (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 11 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 | « chrome/browser/chromeos/login/wallpaper_manager.cc ('k') | chrome/browser/image_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/image_decoder.h
diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h
index 24f4d89bad6070486eb3b985f6a22b52143744f3..4a7dfda542f0ecc4d8c76f5423112ed3419179d1 100644
--- a/chrome/browser/image_decoder.h
+++ b/chrome/browser/image_decoder.h
@@ -9,7 +9,8 @@
#include <vector>
#include "base/compiler_specific.h"
-#include "content/public/browser/browser_thread.h"
+#include "base/memory/ref_counted.h"
+#include "base/threading/sequenced_worker_pool.h"
#include "content/public/browser/utility_process_host_client.h"
class SkBitmap;
@@ -42,8 +43,8 @@ class ImageDecoder : public content::UtilityProcessHostClient {
const std::string& image_data,
ImageCodec image_codec);
- // Starts image decoding.
- void Start();
+ // Starts image decoding on current thread of |task_runner|.
+ void Start(scoped_refptr<base::SequencedTaskRunner> task_runner);
const std::vector<unsigned char>& get_image_data() const {
return image_data_;
@@ -68,7 +69,7 @@ class ImageDecoder : public content::UtilityProcessHostClient {
Delegate* delegate_;
std::vector<unsigned char> image_data_;
const ImageCodec image_codec_;
- content::BrowserThread::ID target_thread_id_;
+ scoped_refptr<base::SequencedTaskRunner> task_runner_;
DISALLOW_COPY_AND_ASSIGN(ImageDecoder);
};
« no previous file with comments | « chrome/browser/chromeos/login/wallpaper_manager.cc ('k') | chrome/browser/image_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698