summaryrefslogtreecommitdiffstats
path: root/android_webview/native
diff options
context:
space:
mode:
authorbenm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-14 00:53:56 +0000
committerbenm@chromium.org <benm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-06-14 00:53:56 +0000
commit9eef585de4ccc9de28d7596b0169e06abd4c4866 (patch)
treeb37f38461bec3032975f88f3deee33c3e1e175c6 /android_webview/native
parent0d0b4a4e77be5bcd40895f814241a1ea233f1a22 (diff)
downloadchromium_src-9eef585de4ccc9de28d7596b0169e06abd4c4866.zip
chromium_src-9eef585de4ccc9de28d7596b0169e06abd4c4866.tar.gz
chromium_src-9eef585de4ccc9de28d7596b0169e06abd4c4866.tar.bz2
[Android WebView] Remove caching of Bitmaps used for SW draw.
Remove the temporary hack that was introduced to improve SW rendering performance by caching the Bitmap we drew into as this creates problems when there's more than one bitmap on screen at once (as they both end up using the same bitmap). Review URL: https://chromiumcodereview.appspot.com/16415010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206256 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/native')
-rw-r--r--android_webview/native/java_browser_view_renderer_helper.cc9
-rw-r--r--android_webview/native/java_browser_view_renderer_helper.h3
2 files changed, 4 insertions, 8 deletions
diff --git a/android_webview/native/java_browser_view_renderer_helper.cc b/android_webview/native/java_browser_view_renderer_helper.cc
index 2cb984f..04278ad 100644
--- a/android_webview/native/java_browser_view_renderer_helper.cc
+++ b/android_webview/native/java_browser_view_renderer_helper.cc
@@ -21,13 +21,10 @@ JavaBrowserViewRendererHelper::~JavaBrowserViewRendererHelper() {
ScopedJavaLocalRef<jobject> JavaBrowserViewRendererHelper::CreateBitmap(
JNIEnv* env,
int width,
- int height,
- bool cache_result) {
- TRACE_EVENT1("android_webview", "RendererHelper::CreateBitmap",
- "cache_result", cache_result);
+ int height) {
+ TRACE_EVENT0("android_webview", "RendererHelper::CreateBitmap");
return width <= 0 || height <= 0 ? ScopedJavaLocalRef<jobject>() :
- Java_JavaBrowserViewRendererHelper_createBitmap(env, width, height,
- cache_result);
+ Java_JavaBrowserViewRendererHelper_createBitmap(env, width, height);
}
void JavaBrowserViewRendererHelper::DrawBitmapIntoCanvas(
diff --git a/android_webview/native/java_browser_view_renderer_helper.h b/android_webview/native/java_browser_view_renderer_helper.h
index 74c72e2..40732d0 100644
--- a/android_webview/native/java_browser_view_renderer_helper.h
+++ b/android_webview/native/java_browser_view_renderer_helper.h
@@ -22,8 +22,7 @@ class JavaBrowserViewRendererHelper : public BrowserViewRenderer::JavaHelper {
virtual base::android::ScopedJavaLocalRef<jobject> CreateBitmap(
JNIEnv* env,
int width,
- int height,
- bool cache_result) OVERRIDE;
+ int height) OVERRIDE;
virtual void DrawBitmapIntoCanvas(
JNIEnv* env,
const base::android::JavaRef<jobject>& jbitmap,