Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(36)

Issue 397193002: Set ImageCacheSingleAllocationByteLimit to 64MB (Closed)

Created:
6 years, 5 months ago by hal.canary
Modified:
6 years, 5 months ago
Reviewers:
jamesr, reed1, reveman, jamesr1
CC:
chromium-reviews, darin-cc_chromium.org, jam
Project:
chromium
Visibility:
Public.

Description

Set ImageCacheSingleAllocationByteLimit to 64MB This variable is the maximum allocation size allowed for (high-quality) image scaling filters that require pre-scaling (and caching of the results). Skia will fallback to a filter that doesn't require pre-scaling if the selected filter would require an allocation that exceeds this limit. Motivation: If a web page scales an image by a large factor, the resulting bitmap may take up quite a bit of space - this will clobber Skia's Scaled Image Cache and other caches that share a quota with the Scaled Image Cache. See SkGraphics.h for more documentation. Future work: Someone may want to tune this value based on device memory size. BUG=389439 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=284793

Patch Set 1 #

Total comments: 4

Patch Set 2 : response to revman comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+9 lines, -0 lines) Patch
M content/renderer/render_thread_impl.cc View 1 2 chunks +9 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
hal.canary
As requested. I'm not sure the best value to put in here. The bug was ...
6 years, 5 months ago (2014-07-16 23:24:20 UTC) #1
reveman
https://codereview.chromium.org/397193002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/397193002/diff/1/content/renderer/render_thread_impl.cc#newcode907 content/renderer/render_thread_impl.cc:907: SkGraphics::SetImageCacheSingleAllocationByteLimit(64 * 1024 * 1024); Can you move "64 ...
6 years, 5 months ago (2014-07-17 15:33:21 UTC) #2
reveman
https://codereview.chromium.org/397193002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/397193002/diff/1/content/renderer/render_thread_impl.cc#newcode907 content/renderer/render_thread_impl.cc:907: SkGraphics::SetImageCacheSingleAllocationByteLimit(64 * 1024 * 1024); nit: move this call ...
6 years, 5 months ago (2014-07-17 15:36:06 UTC) #3
tomhudson
On 2014/07/17 15:33:21, reveman wrote: > "Maximum allocation size allowed for image scaling filters that ...
6 years, 5 months ago (2014-07-17 15:46:56 UTC) #4
hal.canary
https://codereview.chromium.org/397193002/diff/1/content/renderer/render_thread_impl.cc File content/renderer/render_thread_impl.cc (right): https://codereview.chromium.org/397193002/diff/1/content/renderer/render_thread_impl.cc#newcode907 content/renderer/render_thread_impl.cc:907: SkGraphics::SetImageCacheSingleAllocationByteLimit(64 * 1024 * 1024); On 2014/07/17 15:33:21, reveman ...
6 years, 5 months ago (2014-07-17 16:55:07 UTC) #5
reveman
lgtm but you also need an owner review for content/renderer/ maybe update the patch description ...
6 years, 5 months ago (2014-07-17 17:08:05 UTC) #6
hal.canary
On 2014/07/17 17:08:05, reveman wrote: > lgtm but you also need an owner review for ...
6 years, 5 months ago (2014-07-18 14:28:49 UTC) #7
reveman
please add BUG=389439 to the description. jamesr@, ping for review
6 years, 5 months ago (2014-07-22 16:24:04 UTC) #8
jamesr
lgtm
6 years, 5 months ago (2014-07-22 18:07:45 UTC) #9
hal.canary
The CQ bit was checked by halcanary@google.com
6 years, 5 months ago (2014-07-22 18:12:19 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/halcanary@google.com/397193002/20001
6 years, 5 months ago (2014-07-22 18:14:01 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: win_gpu_triggered_tests on tryserver.chromium.gpu ...
6 years, 5 months ago (2014-07-22 21:31:52 UTC) #12
commit-bot: I haz the power
6 years, 5 months ago (2014-07-22 23:14:07 UTC) #13
Message was sent while issue was closed.
Change committed as 284793

Powered by Google App Engine
This is Rietveld 408576698