diff options
author | Grace Kloba <klobag@google.com> | 2010-02-03 10:24:06 -0800 |
---|---|---|
committer | Grace Kloba <klobag@google.com> | 2010-02-04 08:59:10 -0800 |
commit | ac75f56600691d318d40301204baaf840c9586f2 (patch) | |
tree | ef2e3648d49ed787c732f85bb226e68dd1f9c221 /core/java/android/webkit/CacheLoader.java | |
parent | bca1c65fe491d070470ca248e804166a33e998a7 (diff) | |
download | frameworks_base-ac75f56600691d318d40301204baaf840c9586f2.zip frameworks_base-ac75f56600691d318d40301204baaf840c9586f2.tar.gz frameworks_base-ac75f56600691d318d40301204baaf840c9586f2.tar.bz2 |
Enable StreamLoader to be loaded in a separate thread.
Move ContentLoader and FileLoader to this new way
as they involves IO. Will work on CacheLoader later.
Change StreamLoader to contain a Handler instead of
derive from a Handler so that the Handler can be
created in the thread where load() is called.
Rename StreamLoader's old "LoadListener mHandler"
to mLoadListener.
Remove unused import and unreachable exception.
Fix http://b/issue?id=2158613
This improved page_cycler performance in moz/intl by
10-30% as we are not blocked by IO any more.
Diffstat (limited to 'core/java/android/webkit/CacheLoader.java')
-rw-r--r-- | core/java/android/webkit/CacheLoader.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/webkit/CacheLoader.java b/core/java/android/webkit/CacheLoader.java index de8f888..aeb537c 100644 --- a/core/java/android/webkit/CacheLoader.java +++ b/core/java/android/webkit/CacheLoader.java @@ -43,7 +43,7 @@ class CacheLoader extends StreamLoader { protected boolean setupStreamAndSendStatus() { mDataStream = mCacheResult.inStream; mContentLength = mCacheResult.contentLength; - mHandler.status(1, 1, mCacheResult.httpStatusCode, "OK"); + mLoadListener.status(1, 1, mCacheResult.httpStatusCode, "OK"); return true; } |