Refactor D2D code, Add CAnimation stub.