OSDN Git Service

Don't deep copy animations, prepare animations on both trees
authorJohn Reck <jreck@google.com>
Sat, 3 Dec 2011 03:12:05 +0000 (19:12 -0800)
committerChris Craik <ccraik@google.com>
Tue, 6 Dec 2011 01:01:13 +0000 (17:01 -0800)
commitc6151a04881a67d08d91237891fbc7cb82927219
tree5a68a6baf72fe12d82f3a3d44e4e8eab87c87ff3
parent3fb3b3e0e16ce89f589b71ba2cc5942f42f0ac27
Don't deep copy animations, prepare animations on both trees

 Bug: 5699085

Previously, animations were copied along with layer trees from the webkit to UI
thread. This changes that to instead use a single object per animation with
refcounting so that animations are kept consistent.

Additionally, animations are now run on both the painting and drawing trees in
the tree manager so that animated content clipped correctly during a tree swap.

Change-Id: I79f0c0e47b717f9fdddf303eb7ec29efc4950aaf
Source/WebCore/platform/graphics/android/AndroidAnimation.cpp
Source/WebCore/platform/graphics/android/AndroidAnimation.h
Source/WebCore/platform/graphics/android/LayerAndroid.cpp
Source/WebCore/platform/graphics/android/LayerAndroid.h
Source/WebCore/platform/graphics/android/TreeManager.cpp
Source/WebKit/android/nav/WebView.cpp