michael@0: michael@0: /* michael@0: * Copyright 2006 The Android Open Source Project michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: michael@0: #ifndef SkDrawShader_DEFINED michael@0: #define SkDrawShader_DEFINED michael@0: michael@0: #include "SkPaintParts.h" michael@0: #include "SkShader.h" michael@0: michael@0: class SkBaseBitmap; michael@0: michael@0: class SkDrawBitmapShader : public SkDrawShader { michael@0: DECLARE_DRAW_MEMBER_INFO(BitmapShader); michael@0: SkDrawBitmapShader(); michael@0: virtual bool add(); michael@0: virtual SkShader* getShader(); michael@0: protected: michael@0: SkBool filterBitmap; michael@0: SkBaseBitmap* image; michael@0: private: michael@0: typedef SkDrawShader INHERITED; michael@0: }; michael@0: michael@0: #endif // SkDrawShader_DEFINED