DescriptionFix stale compositor references from ui::Layer
This is needed to fix some issues in tests exposed by the WebKit compositor. The
problem is that sometimes during the teardown paths, some layers have stale a
pointer to the compositor that has already been destroyed. The WebKit layer
(rightfully) calls ScheduleDraw when the layer hierarchy is changed, exposing
the issue.
We now always walk back to the root layer to find the compositor, and reset the
pointer when the compositor's root changes (or it gets destroyed).
BUG=99524
TEST=views_unittest, aura_unittest, compositor_unittests with (and without) use_webkit_compositor=1
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110223
Patch Set 1 #
Total comments: 6
Patch Set 2 : Add tests, use GetRoot in GetCompositor #Patch Set 3 : Reset root layer when destroyed #Patch Set 4 : Fix linux_touch build #
Messages
Total messages: 11 (0 generated)
|