New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 673794 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Android MediaRouter only (left Chro...
Closed: Jan 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Android
Pri: 3
Type: Bug



Sign in to add a comment

Reduce the memory pressure when passing bitmap in WebContentsImpl::onDownloadImageFinished through JNI

Project Member Reported by zqzh...@chromium.org, Dec 13 2016

Issue description

Currently WebContentsImpl::onDownloadImageFinished() passes the downloaded bitmap through JNI synchronously, which keeps both the native bitmap and Java bitmap on the stack, which increases the memory pressure. If the user then does memory-heavy jobs on the callback, it will have higher chance to hit OOMs.

Since WebContents::DownloadImage() is already async, we can post a task to notify that the image has been downloaded to reduce the memory pressure.
 
Description: Show this description
Components: Internals>Media>Session
Status: Available (was: Started)
Cc: avayvod@chromium.org mlamouri@chromium.org
Status: WontFix (was: Available)

Sign in to add a comment