summaryrefslogtreecommitdiffstats
path: root/chrome/browser/image_decoder.h
diff options
context:
space:
mode:
authordcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-12 04:18:17 +0000
committerdcheng@chromium.org <dcheng@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-12 04:18:17 +0000
commitcdc8a3ed999010e02a7a211fde639826eed2ecb8 (patch)
tree5e2e7bb8765fd9468019436a7f31122c6a36ab77 /chrome/browser/image_decoder.h
parent89f7314b6823a1267008dd7b1d3e7bb53bb75049 (diff)
downloadchromium_src-cdc8a3ed999010e02a7a211fde639826eed2ecb8.zip
chromium_src-cdc8a3ed999010e02a7a211fde639826eed2ecb8.tar.gz
chromium_src-cdc8a3ed999010e02a7a211fde639826eed2ecb8.tar.bz2
Remove trampoline between threads in SupportedImageTypeValidator.
It's not necessary to trampoline between the IO thread and the blocking worker pool. The actual image decoding takes place in another process anyway; the task runner is merely used to invoke the callbacks. BUG=none Review URL: https://chromiumcodereview.appspot.com/16703003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@205721 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/image_decoder.h')
-rw-r--r--chrome/browser/image_decoder.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/chrome/browser/image_decoder.h b/chrome/browser/image_decoder.h
index 4a7dfda..f2cca72 100644
--- a/chrome/browser/image_decoder.h
+++ b/chrome/browser/image_decoder.h
@@ -43,7 +43,8 @@ class ImageDecoder : public content::UtilityProcessHostClient {
const std::string& image_data,
ImageCodec image_codec);
- // Starts image decoding on current thread of |task_runner|.
+ // Starts asynchronous image decoding. Once finished, the callback will be
+ // posted back to |task_runner|.
void Start(scoped_refptr<base::SequencedTaskRunner> task_runner);
const std::vector<unsigned char>& get_image_data() const {