summaryrefslogtreecommitdiffstats
path: root/webkit/media/buffered_data_source.h
diff options
context:
space:
mode:
authorscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 23:52:47 +0000
committerscherkus@chromium.org <scherkus@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-19 23:52:47 +0000
commit51e43878421f96d21ac21740b3bca88dc34a9d53 (patch)
treeccd8723cd4cf4501eae15b088124219e8c99aea7 /webkit/media/buffered_data_source.h
parentd914b2b089eb4255946aff2428f79f78739586a5 (diff)
downloadchromium_src-51e43878421f96d21ac21740b3bca88dc34a9d53.zip
chromium_src-51e43878421f96d21ac21740b3bca88dc34a9d53.tar.gz
chromium_src-51e43878421f96d21ac21740b3bca88dc34a9d53.tar.bz2
Fold InitializeTask() into Initialize() as the method is called on the render thread.
Since BufferedDataSource and SimpleDataSource are created and initialized on the render thread there's no need to post a task. Doing so results in some very nice video startup latency reductions as we now initiate the HTTP request as soon as we have the URL. On sites with heavy render thread traffic (i.e., lots of upfront JS processing, starting up GPU process) I measured ~50-150ms start up latency reduction on release builds. BUG=107324 Review URL: https://chromiumcodereview.appspot.com/9192030 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118386 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/media/buffered_data_source.h')
-rw-r--r--webkit/media/buffered_data_source.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/webkit/media/buffered_data_source.h b/webkit/media/buffered_data_source.h
index 8e4215f..079edd0 100644
--- a/webkit/media/buffered_data_source.h
+++ b/webkit/media/buffered_data_source.h
@@ -62,10 +62,6 @@ class BufferedDataSource : public WebDataSource {
private:
friend class BufferedDataSourceTest;
- // Posted to perform initialization on render thread and start resource
- // loading.
- void InitializeTask();
-
// Task posted to perform actual reading on the render thread.
void ReadTask(int64 position, int read_size, uint8* read_buffer);