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

Issue 910613003: Trigger hardware accelerated canvas GC more aggressively. (Closed)

Created:
5 years, 10 months ago by Daniel Bratell
Modified:
5 years, 10 months ago
CC:
blink-reviews, blink-reviews-html_chromium.org, dglazkov+blink
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Target Ref:
refs/heads/master
Project:
blink
Visibility:
Public.

Description

Trigger hardware accelerated canvas GC more aggressively. A hardware accelerated canvas indirectly owns a number of GPU resources and if they become too numerous we see drastic slowdowns. At the very least we should let the GC know about the cost of an HTMLCanvasElement so that it can correctly schedule garbage collects. This makes test timeouts caused by buildup of HTMLCanvasElements in canvas tests slightly less likely. BUG=450699 R=jochen@chromium.org,junov@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=190135

Patch Set 1 #

Patch Set 2 : Lowered the constant to 2 and explained it. #

Patch Set 3 : Better comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -1 line) Patch
M Source/core/html/HTMLCanvasElement.cpp View 1 2 1 chunk +10 lines, -1 line 0 comments Download

Messages

Total messages: 17 (4 generated)
Daniel Bratell
Please take a look. This is not a final, root, fix, but it's something that ...
5 years, 10 months ago (2015-02-09 10:37:07 UTC) #2
Mike West
Deferring to junov@; I'm not a good reviewer for this code.
5 years, 10 months ago (2015-02-09 11:33:51 UTC) #3
Justin Novosad
Let's see where the discussion blink-dev goes before landing this. I support this change, for ...
5 years, 10 months ago (2015-02-09 17:45:39 UTC) #4
Justin Novosad
After reading your comment on the bug https://code.google.com/p/chromium/issues/detail?id=450699#c46 I wonder if we shouldn't be fudging ...
5 years, 10 months ago (2015-02-10 17:25:51 UTC) #5
jochen (gone - plz use gerrit)
I think it would be preferable to either discard the texture memory more aggressively, or, ...
5 years, 10 months ago (2015-02-10 19:47:43 UTC) #7
Daniel Bratell
On 2015/02/10 19:47:43, jochen (slow) wrote: > I think it would be preferable to either ...
5 years, 10 months ago (2015-02-11 09:46:16 UTC) #8
jochen (gone - plz use gerrit)
On 2015/02/11 at 09:46:16, bratell wrote: > On 2015/02/10 19:47:43, jochen (slow) wrote: > > ...
5 years, 10 months ago (2015-02-12 08:28:09 UTC) #9
Daniel Bratell
On 2015/02/12 08:28:09, jochen (slow) wrote: > On 2015/02/11 at 09:46:16, bratell wrote: > > ...
5 years, 10 months ago (2015-02-12 10:56:43 UTC) #10
jochen (gone - plz use gerrit)
lgtm I guess we'll need to address the GPU resources problem indeed, as oilpan will ...
5 years, 10 months ago (2015-02-12 12:01:13 UTC) #11
Justin Novosad
On 2015/02/12 12:01:13, jochen (slow) wrote: > lgtm > > I guess we'll need to ...
5 years, 10 months ago (2015-02-12 15:42:06 UTC) #12
Daniel Bratell
On 2015/02/12 15:42:06, junov wrote: > So lgtm with a more accurate comment. Done.
5 years, 10 months ago (2015-02-13 08:56:31 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/910613003/40001
5 years, 10 months ago (2015-02-13 08:57:58 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-13 11:15:44 UTC) #17
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://src.chromium.org/viewvc/blink?view=rev&revision=190135

Powered by Google App Engine
This is Rietveld 408576698