Bug 92856 - [chromium] Improve garbage collector hint if page uses Canvas contexts
Summary: [chromium] Improve garbage collector hint if page uses Canvas contexts
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: New Bugs (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Ulan Degenbaev
URL:
Keywords:
Depends on: 76225
Blocks:
  Show dependency treegraph
 
Reported: 2012-08-01 02:26 PDT by Ulan Degenbaev
Modified: 2012-08-02 02:26 PDT (History)
5 users (show)

See Also:


Attachments
Patch (5.30 KB, patch)
2012-08-01 02:36 PDT, Ulan Degenbaev
no flags Details | Formatted Diff | Diff
Address comments (5.31 KB, patch)
2012-08-02 01:44 PDT, Ulan Degenbaev
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ulan Degenbaev 2012-08-01 02:26:04 PDT
[chromium] Improve garbage collector hint if page uses Canvas contexts
Comment 1 Ulan Degenbaev 2012-08-01 02:36:53 PDT
Created attachment 155766 [details]
Patch
Comment 2 Adam Barth 2012-08-01 11:24:06 PDT
Comment on attachment 155766 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=155766&action=review

> Source/WebCore/bindings/v8/V8Binding.h:229
> +        void setGarbageCollectionHint() { m_garbageCollectionHint = true; }
> +        void clearGarbageCollectionHint() { m_garbageCollectionHint = false; }
> +        bool isGarbageCollectionHint() const { return m_garbageCollectionHint; }

How about:

void setShouldCollectGarbageSoon(bool flag) { m_shouldCollectGarbageSoon = flag; }
bool shouldCollectGarbageSoon() const { return m_shouldCollectGarbageSoon; }
Comment 3 Kenneth Russell 2012-08-01 15:01:15 PDT
Comment on attachment 155766 [details]
Patch

LGTM too; abarth's naming changes sound reasonable.
Comment 4 Ulan Degenbaev 2012-08-02 01:44:34 PDT
Created attachment 156006 [details]
Address comments
Comment 5 Ulan Degenbaev 2012-08-02 01:51:10 PDT
Thanks, renamed and rebased. Could you send to CQ after review? I forgot to set the CQ request flag.
Comment 6 WebKit Review Bot 2012-08-02 02:26:53 PDT
Comment on attachment 156006 [details]
Address comments

Clearing flags on attachment: 156006

Committed r124431: <http://trac.webkit.org/changeset/124431>
Comment 7 WebKit Review Bot 2012-08-02 02:26:57 PDT
All reviewed patches have been landed.  Closing bug.