1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/animator/SkDrawSaveLayer.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,36 @@ 1.4 + 1.5 +/* 1.6 + * Copyright 2006 The Android Open Source Project 1.7 + * 1.8 + * Use of this source code is governed by a BSD-style license that can be 1.9 + * found in the LICENSE file. 1.10 + */ 1.11 + 1.12 + 1.13 +#ifndef SkDrawSaveLayer_DEFINED 1.14 +#define SkDrawSaveLayer_DEFINED 1.15 + 1.16 +#include "SkDrawGroup.h" 1.17 +#include "SkMemberInfo.h" 1.18 + 1.19 +class SkDrawPaint; 1.20 +class SkDrawRect; 1.21 + 1.22 +class SkSaveLayer : public SkGroup { 1.23 + DECLARE_MEMBER_INFO(SaveLayer); 1.24 + SkSaveLayer(); 1.25 + virtual ~SkSaveLayer(); 1.26 + virtual bool draw(SkAnimateMaker& ); 1.27 +#ifdef SK_DUMP_ENABLED 1.28 + virtual void dump(SkAnimateMaker* ); 1.29 +#endif 1.30 + virtual void onEndElement(SkAnimateMaker& ); 1.31 +protected: 1.32 + SkDrawPaint* paint; 1.33 + SkDrawRect* bounds; 1.34 +private: 1.35 + typedef SkGroup INHERITED; 1.36 + 1.37 +}; 1.38 + 1.39 +#endif //SkDrawSaveLayer_DEFINED