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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Feb 13 15:17:31 PST 2012


--- Comment #5 from Tien-Ren Chen <trchen at chromium.org>  2012-02-13 15:17:31 PST ---
Now I think of it, we still need some way to do inter-layer referencing. The scrolling layer need to know its two scrollbar layers, and the scrollbar layer also needs to know its scrolling layer.

I have two proposed implementation:

A. Keep a ID-->Layer HashMap in CCLayerTreeHostImpl, so the CCLayerImpl only remembers the layer ID, look up the layer pointer on demand.

B. Add another pass in TreeSynchronizer to resolve the pointers after the layer tree has been constructed.

Personally I prefer the second implementation, any comments?

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