Bug 92856

Summary: [chromium] Improve garbage collector hint if page uses Canvas contexts
Product: WebKit Reporter: Ulan Degenbaev <ulan>
Component: New BugsAssignee: Ulan Degenbaev <ulan>
Status: RESOLVED FIXED    
Severity: Normal CC: abarth, haraken, japhet, kbr, webkit.review.bot
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on: 76225    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Address comments none

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.