| OLD | NEW |
| 1 | |
| 2 /* | 1 /* |
| 3 * Copyright 2006 The Android Open Source Project | 2 * Copyright 2006 The Android Open Source Project |
| 4 * | 3 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 7 */ | 6 */ |
| 8 | 7 |
| 9 | |
| 10 #ifndef SkDrawShader_DEFINED | 8 #ifndef SkDrawShader_DEFINED |
| 11 #define SkDrawShader_DEFINED | 9 #define SkDrawShader_DEFINED |
| 12 | 10 |
| 13 #include "SkPaintParts.h" | 11 #include "SkPaintPart.h" |
| 14 #include "SkShader.h" | 12 #include "SkShader.h" |
| 15 | 13 |
| 16 class SkBaseBitmap; | 14 class SkBaseBitmap; |
| 17 | 15 |
| 18 class SkDrawBitmapShader : public SkDrawShader { | 16 class SkDrawBitmapShader : public SkDrawShader { |
| 19 DECLARE_DRAW_MEMBER_INFO(BitmapShader); | 17 DECLARE_DRAW_MEMBER_INFO(BitmapShader); |
| 20 SkDrawBitmapShader(); | 18 SkDrawBitmapShader(); |
| 21 virtual bool add(); | 19 virtual bool add(); |
| 22 virtual SkShader* getShader(); | 20 virtual SkShader* getShader(); |
| 23 protected: | 21 protected: |
| 24 SkBool filterBitmap; | 22 SkBool filterBitmap; |
| 25 SkBaseBitmap* image; | 23 SkBaseBitmap* image; |
| 26 private: | 24 private: |
| 27 typedef SkDrawShader INHERITED; | 25 typedef SkDrawShader INHERITED; |
| 28 }; | 26 }; |
| 29 | 27 |
| 30 #endif // SkDrawShader_DEFINED | 28 #endif // SkDrawShader_DEFINED |
| OLD | NEW |