[Webkit-unassigned] [Bug 78404] [chromium] Replace RefPtr with OwnPtr for CCLayerImpl tree structure

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 15 15:09:12 PST 2012


https://bugs.webkit.org/show_bug.cgi?id=78404





--- Comment #9 from Tien-Ren Chen <trchen at chromium.org>  2012-02-15 15:09:12 PST ---
The new patch addresses the problem with LayerChromium reference holding.

It is done by more template indirection. I agree it is a bit nasty. The biggest problem with different LayerList type in main and CC thread is the difference in accessing the raw pointer. I have to write something like:

inline static LayerChromium* getRawPtr(const RefPtr<LayerChromium>& ptr) { return ptr.get(); }
inline static CCLayerImpl* getRawPtr(CCLayerImpl* ptr) { return ptr; }

I wish WTF::Vector has something similar to WTF::HashMap::peek...

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list