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

Issue 2306833002: cc: Prevent allocating memory buffers too large in tests. (Closed)

Created:
4 years, 3 months ago by danakj
Modified:
4 years, 3 months ago
Reviewers:
jbudorick, enne (OOO)
CC:
cc-bugs_chromium.org, chromium-reviews, jbudorick, piman
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Prevent allocating memory buffers too large in tests. We were OOMing a unit test on lollipop devices since we were using a resource larger than MAX_TEXTURE_SIZE which is 2048, so we had a bitmap of size: (100 * 2048 / 9.9, 15 * 2048 / 9.9) = (20687, 3104) Which is an ARGB32 bitmap so 4 bytes per pixel: 256,849,792 bytes. With this patch we have (100 * 512 / 9.9, 15 * 512 / 9.9) = (5172, 776) Which is 4,013,472 which will fit in memory much easier. R=enne BUG=642333 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/dd8e0f1980106ae0b0ff3ca86034b115c955d61b Cr-Commit-Position: refs/heads/master@{#416289}

Patch Set 1 #

Patch Set 2 : scrollbartexsize: . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -0 lines) Patch
M cc/layers/scrollbar_layer_unittest.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (10 generated)
danakj
4 years, 3 months ago (2016-09-02 01:10:16 UTC) #3
enne (OOO)
lgtm
4 years, 3 months ago (2016-09-02 17:20:55 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2306833002/20001
4 years, 3 months ago (2016-09-02 17:21:31 UTC) #11
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 3 months ago (2016-09-02 17:25:26 UTC) #12
commit-bot: I haz the power
Patchset 2 (id:??) landed as https://crrev.com/dd8e0f1980106ae0b0ff3ca86034b115c955d61b Cr-Commit-Position: refs/heads/master@{#416289}
4 years, 3 months ago (2016-09-02 17:27:31 UTC) #14
jbudorick
A little late: fix verified on sprout.
4 years, 3 months ago (2016-09-02 17:38:06 UTC) #16
danakj
4 years, 3 months ago (2016-09-02 20:02:51 UTC) #17
Message was sent while issue was closed.
On Fri, Sep 2, 2016 at 10:38 AM, <jbudorick@chromium.org> wrote:

> A little late: fix verified on sprout.
>

Thanks :)

-- 
You received this message because you are subscribed to the Google Groups
"Chromium-reviews" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to chromium-reviews+unsubscribe@chromium.org.

Powered by Google App Engine
This is Rietveld 408576698