Skip to content

Commit

Permalink
[Android WebView] Don't cache bitmap used for SW draw.
Browse files Browse the repository at this point in the history
Caching the bitmap creates a problem when we have more than one
WebView on the screen at once, as they end up sharing the same
Bitmap.

BUG=

Review URL: https://chromiumcodereview.appspot.com/16833002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@206019 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
benm@chromium.org committed Jun 13, 2013
1 parent e46a7c5 commit 96d89f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion android_webview/browser/in_process_view_renderer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ bool InProcessViewRenderer::DrawSWInternal(jobject java_canvas,
if (pixels == NULL) {
TRACE_EVENT0("android_webview", "Render to Aux Bitmap");
ScopedJavaLocalRef<jobject> jbitmap(java_helper_->CreateBitmap(
env, clip.width(), clip.height(), true));
env, clip.width(), clip.height(), false));
if (!jbitmap.obj()) {
TRACE_EVENT_INSTANT0("android_webview", "Bitmap Alloc Fail",
TRACE_EVENT_SCOPE_THREAD);
Expand Down

0 comments on commit 96d89f8

Please sign in to comment.